STRUCT LIRC_SCANCODE(9)
πΈ NAME πΈ
okay so bestie, this is struct lirc_scancode(9), straight from the Kernel API Manual, and it is literally the decoded scancode with protocol for use with LIRC_MODE_SCANCODE. Thatβs the whole assignment. π
β¨
π SYNOPSIS π
struct lirc_scancode {
__u64 timestamp;
__u16 flags;
__u16 rc_proto;
__u32 keycode;
__u64 scancode;
};
π Members π
timestampβ the timestamp in nanoseconds usingCLOCK_MONOTONICfor when the IR was decoded. Nanoseconds, bestie β itβs giving precise. β±οΈflagsβ this should be0for transmit. When receiving scancodes,LIRC_SCANCODE_FLAG_TOGGLEorLIRC_SCANCODE_FLAG_REPEATcan be set depending on the protocol. Protocol-dependent behavior, no cap. π©rc_protoβ seeenum rc_proto. πkeycodeβ the translated keycode. Set it to0for transmit. πΉscancodeβ the scancode received or to be sent. π‘
π SEE ALSO π
- Kernel file
./include/uapi/linux/lirc.h enum rc_proto(9)
okay bye, ily β this was struct lirc_scancode(9), source/version ./include/uapi/linux, dated October 2026 ππ¦π
π¦ 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