ir_raw_gen_manchester(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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. *ev gets 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 ✨

  • 0 on success. slay. βœ…
  • -ENOBUFS if there isn't enough space in the array to fit the full encoded data. 😭 and heads up β€” in this case, all max events 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:

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