pub enum Command {
Get = 0,
GetVersionReadStatus = 1,
GetId = 2,
ReadMemory = 17,
Go = 33,
WriteMemory = 49,
Erase = 67,
ExtendedErase = 68,
WriteProtect = 99,
WriteUnprotect = 115,
ReadoutProtect = 130,
ReadoutUnprotect = 146,
}
Variants§
Get = 0
Fetch bootloader version and allowed commands
GetVersionReadStatus = 1
Gets the bootloader version and the Read Protection status of the Flash memory.
GetId = 2
Gets the chip ID
ReadMemory = 17
Reads up to 256 bytes of memory starting from an address specified by the application.
Go = 33
Jumps to user application code located in the internal Flash memory or in the SRAM.
WriteMemory = 49
Writes up to 256 bytes to the RAM or Flash memory starting from an address specified by the application.
Erase = 67
Erases from one to all the Flash memory pages.
ExtendedErase = 68
Erases from one to all the Flash memory pages using two byte addressing mode (available only for v3.0 USART bootloader versions and above).
WriteProtect = 99
Enables the write protection for some sectors.
WriteUnprotect = 115
Disables the write protection for all Flash memory sectors
ReadoutProtect = 130
Enables the read protection
ReadoutUnprotect = 146
Disables the read protection.