#[repr(u32)]pub enum Response {
Pong = 0,
RomEntry = 1,
RomNotRecognised = 2,
Error = 2_147_483_648,
NoRom = 2_147_483_649,
Unknown = 4_294_967_295,
}superseded - the current One ROM Lab is driven over USB CDC and does not use this protocol
Expand description
Responses from One ROM Lab to Commands
Variants§
Pong = 0
superseded - the current One ROM Lab is driven over USB CDC and does not use this protocol
Ping response
RomEntry = 1
superseded - the current One ROM Lab is driven over USB CDC and does not use this protocol
ReadRom successful response. Following this word, is the ROM metadata
as a sequence of bytes. See LabRomEntry.
- Name of the ROM, followed by 0
- Part number of the ROM, followed by 0
- 32-bit wrapping checksum of the ROM, little endian encoded
- 20 byte SHA1 digest of the ROM
RomNotRecognised = 2
superseded - the current One ROM Lab is driven over USB CDC and does not use this protocol
ROM (probably) connected but not recognised. No data follows
Error = 2_147_483_648
superseded - the current One ROM Lab is driven over USB CDC and does not use this protocol
One ROM Lab hit an error
NoRom = 2_147_483_649
superseded - the current One ROM Lab is driven over USB CDC and does not use this protocol
One ROM Lab did not detect a ROM connected, but it may have been unrecognised
Unknown = 4_294_967_295
superseded - the current One ROM Lab is driven over USB CDC and does not use this protocol