Lines Matching full:pulse
2 // rc-ir-raw.c - handle IR pulse/space events
37 TO_STR(ev.pulse)); in ir_raw_event_thread()
38 if (raw->prev_ev.reset && ev.pulse == 0) in ir_raw_event_thread()
39 dev_warn_once(&dev->dev, "timing event after reset should be pulse"); in ir_raw_event_thread()
65 * ir_raw_event_store() - pass a pulse/space duration to the raw ir decoders
67 * @ev: the struct ir_raw_event descriptor of the pulse/space
70 * pulse/space duration for the raw ir decoding state machines. Pulses are
80 ev->duration, TO_STR(ev->pulse)); in ir_raw_event_store()
92 * ir_raw_event_store_edge() - notify raw ir decoders of the start of a pulse/space
94 * @pulse: true for pulse, false for space
97 * store the beginning of an ir pulse or space (or the start/end of ir
102 int ir_raw_event_store_edge(struct rc_dev *dev, bool pulse) in ir_raw_event_store_edge() argument
112 ev.pulse = !pulse; in ir_raw_event_store_edge()
119 * ir_raw_event_store_with_timeout() - pass a pulse/space duration to the raw
123 * @ev: the struct ir_raw_event descriptor of the pulse/space
126 * pulse/space duration for the raw ir decoding state machines, schedules
158 * ir_raw_event_store_with_filter() - pass next pulse/space to decoders with some processing
175 if (dev->idle && !ev->pulse) in ir_raw_event_store_with_filter()
182 else if (ev->pulse == dev->raw->this_ev.pulse) in ir_raw_event_store_with_filter()
190 if (!ev->pulse && dev->timeout && in ir_raw_event_store_with_filter()
348 if (need_pulse == !!(*ev)->pulse) { in ir_raw_gen_manchester()
365 if (!(*ev)->pulse) in ir_raw_gen_manchester()
383 * ir_raw_gen_pd() - Encode data to raw events with pulse-distance modulation.
387 * @timings: Pulse distance modulation timings.
391 * Encodes the @n least significant bits of @data using pulse-distance
442 * ir_raw_gen_pl() - Encode data to raw events with pulse-length modulation.
446 * @timings: Pulse distance modulation timings.
465 unsigned int pulse; in ir_raw_gen_pl() local
480 pulse = timings->bit_pulse[(data >> i) & 1]; in ir_raw_gen_pl()
481 init_ir_raw_event_duration((*ev)++, 1, pulse); in ir_raw_gen_pl()
491 pulse = timings->bit_pulse[data & 1]; in ir_raw_gen_pl()
492 init_ir_raw_event_duration((*ev)++, 1, pulse); in ir_raw_gen_pl()