pir_t Struct Reference

device descriptor for a PIR sensor More...

Detailed Description

device descriptor for a PIR sensor

Definition at line 55 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.
 

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