Skip to main content

build

Function build 

Source
pub fn build(
    device: u8,
    command: MmcCommand,
    out: &mut [u8],
) -> Result<usize, AudioError>
Expand description

Build an MMC message for device and command into out, returning the number of bytes written. device is a 7-bit device id (0x7F = all).

Errors with AudioError::OutputBufferTooSmall if out is too short, or AudioError::InvalidParameter if device has its high bit set.