pub struct IrMeta {
pub timer_resolution: u16,
pub frequency: u16,
pub nb_timings: u16,
pub repeat_offset: u16,
pub status: u8,
}Expand description
The raw-IR metadata shared by the IR capture and transmit frames.
Fields§
§timer_resolution: u16Tick length the sender says its timing values are in.
Reported and then ignored: a device replaying a burst applies its own tick length rather than this one, and the two differ between products. So it describes the sender, not the timings as the receiver will read them, and converting with it does not make a burst portable.
frequency: u16Carrier frequency in Hz.
nb_timings: u16How many timing values the sender says it appended.
A declaration, not a measurement: nothing on the wire ties it to the bytes that arrived, and a device replaying the burst indexes this many rather than counting. Bound any read by the timing list itself, which is the only part of a frame that cannot claim more than it carries.
repeat_offset: u16Index at which the repeat section starts, declared on the same terms as
nb_timings and equally unbounded by the list.
status: u8Capture status.