27 #ifndef LIBSBP_FLASH_MESSAGES_H
28 #define LIBSBP_FLASH_MESSAGES_H
44 #define SBP_MSG_FLASH_PROGRAM 0x00E6
45 typedef struct SBP_ATTR_PACKED {
62 #define SBP_MSG_FLASH_DONE 0x00E0
63 typedef struct SBP_ATTR_PACKED {
78 #define SBP_MSG_FLASH_READ_REQ 0x00E7
79 typedef struct SBP_ATTR_PACKED {
98 #define SBP_MSG_FLASH_READ_RESP 0x00E1
99 typedef struct SBP_ATTR_PACKED {
116 #define SBP_MSG_FLASH_ERASE 0x00E2
117 typedef struct SBP_ATTR_PACKED {
130 #define SBP_MSG_STM_FLASH_LOCK_SECTOR 0x00E3
131 typedef struct SBP_ATTR_PACKED {
141 #define SBP_MSG_STM_FLASH_UNLOCK_SECTOR 0x00E4
142 typedef struct SBP_ATTR_PACKED {
155 #define SBP_MSG_STM_UNIQUE_ID_REQ 0x00E8
166 #define SBP_MSG_STM_UNIQUE_ID_RESP 0x00E5
167 typedef struct SBP_ATTR_PACKED {
177 #define SBP_MSG_M25_FLASH_WRITE_STATUS 0x00F3
178 typedef struct SBP_ATTR_PACKED {
u8 response
Response flags.
u32 sector_num
Flash sector number to erase (0-11 for the STM, 0-15 for the M25)
uint8_t u8
Unsigned 8-bit integer.
u8 addr_len
Length of set of addresses to program, counting up from starting address [bytes]. ...
u32 sector
Flash sector number to unlock.
uint32_t u32
Unsigned 32-bit integer.
u8 addr_len
Length of set of addresses to read, counting up from starting address [bytes].
u32 sector
Flash sector number to lock.
u8 addr_len
Length of set of addresses to read, counting up from starting address [bytes].