ir_raw_gen_manchester(9)
π ir_raw_gen_manchester(9)
okay so bestie, welcome to the Kernel API Manual β today's main character is ir_raw_gen_manchester, and she is literally here to make your data do the little bi-phase dance. π¦
β¨ NAME β¨
ir_raw_gen_manchester β encode data with Manchester (bi-phase) modulation. that's it, that's the vibe. π
β¨ SYNOPSIS β¨
int ir_raw_gen_manchester (struct ir_raw_event **ev , unsigned int max ,
const struct ir_raw_timings_manchester *timings , unsigned int n , u64
data );
like yes she takes five arguments, don't panic, we're going through every single one π«Ά
β¨ ARGUMENTS β¨
evβ pointer to a pointer to the next free event, bestie.*evgets incremented for each raw event that gets filled in, so she's always tracking where she's at. πmaxβ the maximum number of raw events to fill. that's the ceiling, the limit, the "no more than this" energy. πtimingsβ the Manchester modulation timings. this is where the timing characteristics live, and she will be described by them, periodt. βnβ number of bits of data. how many we're doing. π§dataβ the data bits to encode, fr fr. π
β¨ DESCRIPTION β¨
okay so what she actually does: she encodes the n least significant bits of data using Manchester (bi-phase) modulation, with all the timing characteristics described by timings. πΈ
and she writes up to max raw IR events using the *ev pointer. not more, not fewer than she can fit β up to max. iykyk. π₯
β¨ RETURN β¨
0on success. slay. β-ENOBUFSif there isn't enough space in the array to fit the full encoded data. π and heads up β in this case, allmaxevents will have been written. so like, she filled everything she could, she just ran out of room. π
β¨ SEE ALSO β¨
pop off to the kernel file ./drivers/media/rc/rc-ir-raw.c and also check out her friends:
ir_raw_event_store(9)ir_raw_event_store_edge(9)ir_raw_event_store_with_filter(9)ir_raw_event_set_idle(9)ir_raw_event_handle(9)ir_raw_gen_pd(9)ir_raw_gen_pl(9)ir_raw_encode_scancode(9)ir_raw_edge_handle(9)ir_raw_encode_carrier(9)
the whole squad, genuinely obsessed. π
and that's the page bestie!! π brought to you from ./drivers/media/rc, dated October 2026, and yes β it's still ir_raw_gen_manchester(9) at the end of it all. mwah. ππ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms