write_d75

Function write_d75 

Source
pub fn write_d75(
    image: &MemoryImage,
    header: &ConfigHeader,
) -> Result<Vec<u8>, SdCardError>
Expand description

Write a .d75 configuration file from a raw memory image and header.

The .d75 file format is: 256-byte header + raw MCP memory image. This produces files identical to those exported by Menu No. 800 or the MCP-D75 application.

ยงErrors

Returns SdCardError::InvalidModelString if the header model string is not recognised. Returns SdCardError::FileTooSmall if the image is smaller than the minimum expected size for channel parsing.