63 #ifndef CODEBASE_PERIPHERAL_MODULES_PIR_SENSE_H_ 64 #define CODEBASE_PERIPHERAL_MODULES_PIR_SENSE_H_ 69 #if SYS_CFG_PRESENT == 1 70 #include "sys_config.h" 72 #ifndef SAADC_CHANNEL_USED_PIR_SENSE 73 #define SAADC_CHANNEL_USED_PIR_SENSE 0 76 #ifndef PPI_CHANNEL_USED_PIR_SENSE_1 77 #define PPI_CHANNEL_USED_PIR_SENSE_1 0 80 #ifndef PPI_CHANNEL_USED_PIR_SENSE_2 81 #define PPI_CHANNEL_USED_PIR_SENSE_2 1 84 #ifndef PPI_CHANNEL_USED_PIR_SENSE_3 85 #define PPI_CHANNEL_USED_PIR_SENSE_3 2 88 #ifndef RTC_USED_PIR_SENSE 89 #define RTC_USED_PIR_SENSE 0 97 uint32_t sense_interval_ms;
101 uint32_t irq_priority;
103 void (*handler)(int32_t adc_val);
uint32_t pir_offset_analog_in
The analog input number of PIR signal.
void pir_sense_stop(void)
Disable the peripherals involved - SAADC, PPIs and RTC0.
uint32_t pir_signal_analog_in
The sampling interval in ms.
void pir_sense_start(pir_sense_cfg *init)
uint32_t threshold
The analog input number of PIR offset.
Stucture for passing the configuration for initializing the PIR Sense module.