Searched refs:NEC_UNIT (Results 1 - 1 of 1) sorted by relevance
/linux-4.4.14/drivers/media/rc/ |
H A D | ir-nec-decoder.c | 20 #define NEC_UNIT 562500 /* ns */ macro 21 #define NEC_HEADER_PULSE (16 * NEC_UNIT) 22 #define NECX_HEADER_PULSE (8 * NEC_UNIT) /* Less common NEC variant */ 23 #define NEC_HEADER_SPACE (8 * NEC_UNIT) 24 #define NEC_REPEAT_SPACE (4 * NEC_UNIT) 25 #define NEC_BIT_PULSE (1 * NEC_UNIT) 26 #define NEC_BIT_0_SPACE (1 * NEC_UNIT) 27 #define NEC_BIT_1_SPACE (3 * NEC_UNIT) 28 #define NEC_TRAILER_PULSE (1 * NEC_UNIT) 29 #define NEC_TRAILER_SPACE (10 * NEC_UNIT) /* even longer in reality */ 73 if (eq_margin(ev.duration, NEC_HEADER_PULSE, NEC_UNIT * 2)) { ir_nec_decode() 76 } else if (eq_margin(ev.duration, NECX_HEADER_PULSE, NEC_UNIT / 2)) ir_nec_decode() 89 if (eq_margin(ev.duration, NEC_HEADER_SPACE, NEC_UNIT)) { ir_nec_decode() 92 } else if (eq_margin(ev.duration, NEC_REPEAT_SPACE, NEC_UNIT / 2)) { ir_nec_decode() 109 if (!eq_margin(ev.duration, NEC_BIT_PULSE, NEC_UNIT / 2)) ir_nec_decode() 121 NEC_TRAILER_SPACE, NEC_UNIT / 2)) { ir_nec_decode() 131 if (eq_margin(ev.duration, NEC_BIT_1_SPACE, NEC_UNIT / 2)) ir_nec_decode() 133 else if (!eq_margin(ev.duration, NEC_BIT_0_SPACE, NEC_UNIT / 2)) ir_nec_decode() 148 if (!eq_margin(ev.duration, NEC_TRAILER_PULSE, NEC_UNIT / 2)) ir_nec_decode() 158 if (!geq_margin(ev.duration, NEC_TRAILER_SPACE, NEC_UNIT / 2)) ir_nec_decode()
|
Completed in 244 milliseconds