Skip to main content

parse

Function parse 

Source
pub fn parse(msg: &[u8]) -> Result<(u8, MmcCommand), AudioError>
Expand description

Parse an MMC SysEx message, returning (device, command).

Validates the SysEx envelope and MMC sub-ID. Errors with AudioError::InvalidParameter on any malformed / unrecognized message.