Struct ctru::services::ir_user::IrUserPacket
source · 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: u8
The magic number of the packet. Should always be 0xA5.
destination_network_id: u8
The destination network ID.
payload_length: usize
The length of the payload.
payload: Vec<u8>
The payload data.
checksum: u8
The checksum of the packet.