libsbp  v2.4.7
flash.h File Reference
#include "common.h"
Include dependency graph for flash.h:

Go to the source code of this file.

Data Structures

struct  msg_flash_program_t
 
struct  msg_flash_done_t
 
struct  msg_flash_read_req_t
 
struct  msg_flash_read_resp_t
 
struct  msg_flash_erase_t
 
struct  msg_stm_flash_lock_sector_t
 
struct  msg_stm_flash_unlock_sector_t
 
struct  msg_stm_unique_id_resp_t
 
struct  msg_m25_flash_write_status_t
 

Macros

#define SBP_MSG_FLASH_PROGRAM   0x00E6
 Program flash addresses. More...
 
#define SBP_MSG_FLASH_DONE   0x00E0
 Flash response message (host <= device). More...
 
#define SBP_MSG_FLASH_READ_REQ   0x00E7
 Read STM or M25 flash address request (host => device). More...
 
#define SBP_MSG_FLASH_READ_RESP   0x00E1
 Read STM or M25 flash address response (host <= device). More...
 
#define SBP_MSG_FLASH_ERASE   0x00E2
 Erase sector of device flash memory (host => device). More...
 
#define SBP_MSG_STM_FLASH_LOCK_SECTOR   0x00E3
 Lock sector of STM flash memory (host => device) More...
 
#define SBP_MSG_STM_FLASH_UNLOCK_SECTOR   0x00E4
 Unlock sector of STM flash memory (host => device) More...
 
#define SBP_MSG_STM_UNIQUE_ID_REQ   0x00E8
 Read device's hardcoded unique ID request (host => device) More...
 
#define SBP_MSG_STM_UNIQUE_ID_RESP   0x00E5
 Read device's hardcoded unique ID response (host <= device) More...
 
#define SBP_MSG_M25_FLASH_WRITE_STATUS   0x00F3
 Write M25 flash status register (host => device) More...