pub struct IrCapture {
pub port: u16,
pub timestamp: u32,
pub last_change: u32,
pub meta: IrMeta,
pub timings: Vec<u8>,
}Expand description
Raw IR captured on a bay of the sending device.
Fields§
§port: u16The bay that captured it.
timestamp: u32Sender clock at capture time.
last_change: u32Sender clock at the last signal change.
meta: IrMetaMetadata for the timings.
timings: Vec<u8>The on/off timings following the header, two little-endian bytes each.
Always this width, whichever a sender used: the narrower form older
devices send is widened on the way in, so the values are the device’s
and only the encoding is this library’s. meta.nb_timings counts the
timings, so this is always twice that long.
Index 0 is never replayed. A device blasting this list starts at the second timing, so the first holds the gap captured ahead of the burst and goes nowhere. A capture of a single timing therefore carries no burst at all, and a caller counting pulses is counting one fewer than this holds.