Lines Matching full:pulse
19 * This protocol has 30 bits. The format is one IMON_UNIT header pulse,
21 * one IMON_UNIT field with the actual bit (1=space, 0=pulse).
22 * The check field is always space for some bits, for others it is pulse if
27 * the lower bits are all set, iow. the last pulse is for the lowest
98 * ir_imon_decode() - Decode one iMON pulse or space
100 * @ev: the struct ir_raw_event descriptor of the pulse/space
102 * This function returns -EINVAL if the pulse violates the state machine
117 TO_STR(ev.pulse)); in ir_imon_decode()
130 if (!ev.pulse && ev.duration > MS_TO_NS(10)) in ir_imon_decode()
143 if (ev.pulse) { in ir_imon_decode()
151 data->last_chk = ev.pulse; in ir_imon_decode()
152 else if (ev.pulse) in ir_imon_decode()
158 if (!ev.pulse) in ir_imon_decode()
172 if (ev.pulse) in ir_imon_decode()
184 TO_STR(ev.pulse)); in ir_imon_decode()
207 int i, pulse; in ir_imon_encode() local
215 pulse = !(scancode & (BIT(i) | BIT(i + 1))); in ir_imon_encode()
217 pulse = 0; in ir_imon_encode()
219 if (pulse == e->pulse) { in ir_imon_encode()
224 init_ir_raw_event_duration(++e, pulse, IMON_UNIT); in ir_imon_encode()
227 pulse = !(scancode & BIT(i)); in ir_imon_encode()
229 if (pulse == e->pulse) { in ir_imon_encode()
234 init_ir_raw_event_duration(++e, pulse, IMON_UNIT); in ir_imon_encode()
238 if (e->pulse) in ir_imon_encode()