Firmware SDK
twr_ir_rx.h
1 #ifndef _TWR_IR_RX_H
2 #define _TWR_IR_RX_H
3 
4 #include <twr_common.h>
5 
6 typedef enum
7 {
9  TWR_IR_RX_NEC_FORMAT = 0,
10 
12  TWR_IR_RX_NEC_FORMAT_REPEAT = 1
13 
14 } twr_ir_rx_event_t;
15 
17 
18 void twr_ir_rx_init();
19 
23 
24 void twr_ir_rx_set_event_handler(void (*event_handler)(twr_ir_rx_event_t, void *), void *event_param);
25 
27 
28 void twr_ir_rx_get_code(uint32_t *nec_code);
29 
30 #endif //_TWR_IR_RX_H