Lines Matching refs:SANYO_UNIT
20 #define SANYO_UNIT 563 /* us */ macro
21 #define SANYO_HEADER_PULSE (16 * SANYO_UNIT)
22 #define SANYO_HEADER_SPACE (8 * SANYO_UNIT)
23 #define SANYO_BIT_PULSE (1 * SANYO_UNIT)
24 #define SANYO_BIT_0_SPACE (1 * SANYO_UNIT)
25 #define SANYO_BIT_1_SPACE (3 * SANYO_UNIT)
26 #define SANYO_REPEAT_SPACE (150 * SANYO_UNIT)
27 #define SANYO_TRAILER_PULSE (1 * SANYO_UNIT)
28 #define SANYO_TRAILER_SPACE (10 * SANYO_UNIT) /* in fact, 42 */
70 if (eq_margin(ev.duration, SANYO_HEADER_PULSE, SANYO_UNIT / 2)) { in ir_sanyo_decode()
82 if (eq_margin(ev.duration, SANYO_HEADER_SPACE, SANYO_UNIT / 2)) { in ir_sanyo_decode()
93 if (!eq_margin(ev.duration, SANYO_BIT_PULSE, SANYO_UNIT / 2)) in ir_sanyo_decode()
103 if (!data->count && geq_margin(ev.duration, SANYO_REPEAT_SPACE, SANYO_UNIT / 2)) { in ir_sanyo_decode()
111 if (eq_margin(ev.duration, SANYO_BIT_1_SPACE, SANYO_UNIT / 2)) in ir_sanyo_decode()
113 else if (!eq_margin(ev.duration, SANYO_BIT_0_SPACE, SANYO_UNIT / 2)) in ir_sanyo_decode()
128 if (!eq_margin(ev.duration, SANYO_TRAILER_PULSE, SANYO_UNIT / 2)) in ir_sanyo_decode()
138 if (!geq_margin(ev.duration, SANYO_TRAILER_SPACE, SANYO_UNIT / 2)) in ir_sanyo_decode()