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
87 * ir_imon_decode() - Decode one iMON pulse or space
89 * @ev: the struct ir_raw_event descriptor of the pulse/space
91 * This function returns -EINVAL if the pulse violates the state machine
105 data->state, data->count, ev.duration, TO_STR(ev.pulse)); in ir_imon_decode()
118 if (!ev.pulse && ev.duration > MS_TO_US(10)) in ir_imon_decode()
131 if (ev.pulse) { in ir_imon_decode()
139 data->last_chk = ev.pulse; in ir_imon_decode()
140 else if (ev.pulse) in ir_imon_decode()
146 if (!ev.pulse) in ir_imon_decode()
160 if (ev.pulse) in ir_imon_decode()
171 data->state, data->count, ev.duration, TO_STR(ev.pulse)); in ir_imon_decode()
194 int i, pulse; in ir_imon_encode() local
202 pulse = !(scancode & (BIT(i) | BIT(i + 1))); in ir_imon_encode()
204 pulse = 0; in ir_imon_encode()
206 if (pulse == e->pulse) { in ir_imon_encode()
211 init_ir_raw_event_duration(++e, pulse, IMON_UNIT); in ir_imon_encode()
214 pulse = !(scancode & BIT(i)); in ir_imon_encode()
216 if (pulse == e->pulse) { in ir_imon_encode()
221 init_ir_raw_event_duration(++e, pulse, IMON_UNIT); in ir_imon_encode()
225 if (e->pulse) in ir_imon_encode()