|
SemiDrive SSDK Appication Program Interface PTG3.0
|
#include <sdrv_spi_nor.h>
Data Fields | |
| int(* | prepare )(struct spi_nor *flash_handle, enum spi_nor_ops ops) |
| void(* | unprepare )(struct spi_nor *flash_handle, enum spi_nor_ops ops) |
| int(* | reg_read )(struct spi_nor *flash_handle, struct spi_nor_cmd *cmd, flash_addr_t addr, uint8_t *buf, flash_size_t length) |
| int(* | reg_write )(struct spi_nor *flash_handle, struct spi_nor_cmd *cmd, flash_addr_t addr, const uint8_t *buf, flash_size_t length) |
| int(* | read )(struct spi_nor *flash_handle, flash_addr_t addr, uint8_t *buf, flash_size_t length) |
| int(* | write )(struct spi_nor *flash_handle, flash_addr_t addr, const uint8_t *buf, flash_size_t length) |
| int(* | erase )(struct spi_nor *flash_handle, flash_addr_t offset) |
| int(* | complex_erase )(struct spi_nor *nor, struct spi_nor_erase_cmd *cmd) |
| int(* | training )(struct spi_nor *flash_handle, flash_addr_t addr, uint8_t *buf, const uint8_t *pattern, flash_size_t length) |
| int(* | cancel )(struct spi_nor *flash_handle) |
| void(* | cache_flush )(struct spi_nor *flash_handle, flash_addr_t addr, flash_size_t length) |
| int(* | enable_rfd )(struct spi_nor *flash_handle, uint8_t mask) |
| void(* | xip_proto_setup )(struct spi_nor *flash_handle) |
| void(* cache_flush) (struct spi_nor *flash_handle, flash_addr_t addr, flash_size_t length) |
spi nor host flush cache operation
| int(* cancel) (struct spi_nor *flash_handle) |
spi nor cancel operation
| int(* complex_erase) (struct spi_nor *nor, struct spi_nor_erase_cmd *cmd) |
spi nor erase flash cmd operation
| int(* enable_rfd) (struct spi_nor *flash_handle, uint8_t mask) |
spi nor host enable rfd operation
| int(* erase) (struct spi_nor *flash_handle, flash_addr_t offset) |
spi nor erase flash address operation
| int(* prepare) (struct spi_nor *flash_handle, enum spi_nor_ops ops) |
prepare operations before r/w/e setup
| int(* read) (struct spi_nor *flash_handle, flash_addr_t addr, uint8_t *buf, flash_size_t length) |
spi nor read flash address operation
| int(* reg_read) (struct spi_nor *flash_handle, struct spi_nor_cmd *cmd, flash_addr_t addr, uint8_t *buf, flash_size_t length) |
spi nor read register address operation
| int(* reg_write) (struct spi_nor *flash_handle, struct spi_nor_cmd *cmd, flash_addr_t addr, const uint8_t *buf, flash_size_t length) |
spi nor write register address operation
| int(* training) (struct spi_nor *flash_handle, flash_addr_t addr, uint8_t *buf, const uint8_t *pattern, flash_size_t length) |
spi nor init training flash address operation
| void(* unprepare) (struct spi_nor *flash_handle, enum spi_nor_ops ops) |
operation after r/w/e setup
| int(* write) (struct spi_nor *flash_handle, flash_addr_t addr, const uint8_t *buf, flash_size_t length) |
spi nor write flash address operation
| void(* xip_proto_setup) (struct spi_nor *flash_handle) |
spi nor xip mode proto setup