1 #ifndef _TWR_MODULE_PIR_H
2 #define _TWR_MODULE_PIR_H
4 #include <twr_pyq1648.h>
void twr_module_pir_set_sensitivity(twr_module_pir_t *self, twr_module_pir_sensitivity_t sensitivity)
Set sensor sensitivity.
twr_module_pir_event_t
Callback events.
twr_module_pir_sensitivity_t
Motion detection sensitivity.
void twr_module_pir_set_event_handler(twr_module_pir_t *self, void(*event_handler)(twr_module_pir_t *, twr_module_pir_event_t, void *), void *event_param)
Set callback function.
void twr_module_pir_init(twr_module_pir_t *self)
Initialize PIR Module.
struct twr_pyq1648_t twr_module_pir_t
HARDWARIO PIR Module instance.
@ TWR_MODULE_PIR_EVENT_MOTION
Motion event.
@ TWR_MODULE_PIR_EVENT_ERROR
Error event.
@ TWR_MODULE_PIR_SENSITIVITY_LOW
Low sensitivity.
@ TWR_MODULE_PIR_SENSITIVITY_MEDIUM
Medium sensitivity.
@ TWR_MODULE_PIR_SENSITIVITY_VERY_HIGH
Very high sensitivity.
@ TWR_MODULE_PIR_SENSITIVITY_HIGH
High sensitivity.
struct twr_pyq1648_t twr_pyq1648_t
PYQ1648 instance.
@ TWR_PYQ1648_SENSITIVITY_HIGH
High sensitivity.
@ TWR_PYQ1648_SENSITIVITY_VERY_HIGH
Very high sensitivity.
@ TWR_PYQ1648_SENSITIVITY_LOW
Low sensitivity.
@ TWR_PYQ1648_SENSITIVITY_MEDIUM
Medium sensitivity.
@ TWR_PYQ1648_EVENT_ERROR
Error event.
@ TWR_PYQ1648_EVENT_MOTION
Update event.