1 #include <twr_module_pir.h>
@ TWR_GPIO_P8
GPIO channel P8.
@ TWR_GPIO_P9
GPIO channel P9.
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.
struct twr_pyq1648_t twr_pyq1648_t
PYQ1648 instance.
void twr_pyq1648_set_sensitivity(twr_pyq1648_t *self, twr_pyq1648_sensitivity_t sensitivity)
Set PYQ1648 sensitivity.
void twr_pyq1648_init(twr_pyq1648_t *self, twr_gpio_channel_t gpio_channel_serin, twr_gpio_channel_t gpio_channel_dl)
Initialize PYQ1648 driver.
twr_pyq1648_sensitivity_t
Possible sensitivities.
void twr_pyq1648_set_event_handler(twr_pyq1648_t *self, void(*event_handler)(twr_pyq1648_t *, twr_pyq1648_event_t, void *), void *event_param)
Set callback function.
twr_pyq1648_event_t
Callback events.