Skip to main content

data_frames

Function data_frames 

Source
pub fn data_frames(cmd: Cmd, slot: u8, sub: u8, data: &[u8]) -> Vec<Vec<u8>>
Expand description

Split data into CHUNK_BYTES write frames for cmd (0x58 NAM data, 0x10 IR data). The slot goes where each command expects it: header byte 1 for NAM, byte 0 for IR data.