36 #if SYS_CFG_PRESENT == 1 37 #include "sys_config.h" 40 #ifndef RTC_USED_TSSP_DETECT 41 #define RTC_USED_TSSP_DETECT 0 44 #ifndef EGU_USED_TSSP_DETECT 45 #define EGU_USED_TSSP_DETECT 0 48 #ifndef PPI_CH_USED_TSSP_DETECT_1 49 #define PPI_CH_USED_TSSP_DETECT_1 7 52 #ifndef PPI_CH_USED_TSSP_DETECT_2 53 #define PPI_CH_USED_TSSP_DETECT_2 8 56 #ifndef GPIOTE_CH_USED_TSSP_DETECT 57 #define GPIOTE_CH_USED_TSSP_DETECT 7 61 #ifndef TSSP_DETECT_FREQ 63 #define TSSP_DETECT_FREQ MS_TIMER_FREQ 65 #define TSSP_DETECT_FREQ 32768 70 #define TSSP_DETECT_TICKS_MS(ms) ((uint32_t) ROUNDED_DIV( (TSSP_DETECT_FREQ*(uint64_t)(ms)) , 1000) ) 92 void (*tssp_missed_handler) (void);
95 void (*tssp_detect_handler) (uint32_t ticks);
void tssp_detect_window_stop(void)
Function to stop IR missed window detection.
void tssp_detect_pulse_detect(void)
Function to start module is pulse detecting mode.
void tssp_detect_init(tssp_detect_config_t *tssp_detect_config)
Function to initialize IR detect sub-module.
void tssp_detect_window_sync(uint32_t sync_ms)
Function to Synchronize TSSP detector to IR transmitter which is being used.
Structure to store information required to use this module.
uint32_t window_duration_ticks
void tssp_detect_pulse_stop(void)
Function to stop IR pulse detection.
void tssp_detect_window_detect(void)
Function to start IR pulse detection.