pub struct IrUserPacket {
pub magic_number: u8,
pub destination_network_id: u8,
pub payload_length: usize,
pub payload: Vec<u8>,
pub checksum: u8,
}Expand description
A packet of data sent/received to/from the IR device.
Fields§
§magic_number: u8The magic number of the packet. Should always be 0xA5.
destination_network_id: u8The destination network ID.
payload_length: usizeThe length of the payload.
payload: Vec<u8>The payload data.
checksum: u8The checksum of the packet.