Skip to main content

sysex_payload

Function sysex_payload 

Source
pub fn sysex_payload(frame: &[u8]) -> Result<&[u8], AudioError>
Expand description

Borrow the payload (bytes between F0 and F7) from a complete SysEx frame.

Errors AudioError::MalformedAudio if frame does not start with F0, does not end with F7, is shorter than 2 bytes, or contains a status byte (high bit set) inside the payload.