pub const UART_DISC: u8 = 0x7F;
pub const UART_ACK: u8 = 0x79;
pub const UART_NACK: u8 = 0x1F;
pub const MAX_CHUNK: usize = 256;
#[derive(Debug, PartialEq, Clone)]
pub enum Command {
Get = 0x00,
GetVersionReadStatus = 0x01,
GetId = 0x02,
ReadMemory = 0x11,
Go = 0x21,
WriteMemory = 0x31,
Erase = 0x43,
ExtendedErase = 0x44,
WriteProtect = 0x63,
WriteUnprotect = 0x73,
ReadoutProtect = 0x82,
ReadoutUnprotect = 0x92,
}