Loading...
Searching...
No Matches
pir_t Struct Reference

device descriptor for a PIR sensor More...

Detailed Description

device descriptor for a PIR sensor

Definition at line 54 of file pir.h.

#include <pir.h>

Data Fields

uint64_t start_active_time
 Time when PIR starts to be active.
 
uint64_t accum_active_time
 Accumulated active time.
 
uint64_t last_read_time
 Last time when PIR status is read.
 
kernel_pid_t msg_thread_pid
 thread to msg on irq
 
bool active
 Indicate PIR is active or not.
 
pir_params_t p
 Configuration parameters.
 

Field Documentation

◆ accum_active_time

uint64_t pir_t::accum_active_time

Accumulated active time.

Definition at line 56 of file pir.h.

◆ active

bool pir_t::active

Indicate PIR is active or not.

Definition at line 59 of file pir.h.

◆ last_read_time

uint64_t pir_t::last_read_time

Last time when PIR status is read.

Definition at line 57 of file pir.h.

◆ msg_thread_pid

kernel_pid_t pir_t::msg_thread_pid

thread to msg on irq

Definition at line 58 of file pir.h.

◆ p

pir_params_t pir_t::p

Configuration parameters.

Definition at line 60 of file pir.h.

◆ start_active_time

uint64_t pir_t::start_active_time

Time when PIR starts to be active.

Definition at line 55 of file pir.h.


The documentation for this struct was generated from the following file: