|
SemiDrive SSDK Appication Program Interface PTG3.0
|
#include <sdrv_spi_nor.h>
Data Fields | |
| const char * | name |
| uint8_t | flash_id [SPI_NOR_MAX_ID_LEN] |
| uint32_t | read_proto |
| uint32_t | write_proto |
| uint32_t | erase_proto |
| uint32_t | erase_proto_list [SPI_NOR_SECTOR_TYPE_MAX] |
| uint8_t | read_dummy |
| uint8_t | write_dummy |
| uint8_t | status_dummy |
| uint32_t | sector_size |
| uint16_t | page_size |
| flash_size_t | size |
| struct spi_nor_erase_map | erase_map [SPI_NOR_SECTOR_TYPE_MAX] |
| int(* | default_init )(struct spi_nor *nor) |
| int(* | octal_dtr_enable )(struct spi_nor *nor, bool enable) |
| int(* | quad_enable )(struct spi_nor *nor, bool enable) |
| int(* | enter_quad )(struct spi_nor *nor, bool enable) |
| int(* | set_4byte_addr_mode )(struct spi_nor *nor, bool enable) |
| int(* default_init) (struct spi_nor *nor) |
initialize dummy for different flash
| int(* enter_quad) (struct spi_nor *nor, bool enable) |
initialize qpi mode
| struct spi_nor_erase_map erase_map[SPI_NOR_SECTOR_TYPE_MAX] |
Automatic filling they depend on flash support
| uint32_t erase_proto |
default falsh erase transmission proto
| uint32_t erase_proto_list[SPI_NOR_SECTOR_TYPE_MAX] |
support falsh erase transmission protos
| uint8_t flash_id[SPI_NOR_MAX_ID_LEN] |
get flash id
| const char* name |
flash name
| int(* octal_dtr_enable) (struct spi_nor *nor, bool enable) |
initialize octal dtr mode
| uint16_t page_size |
flash page size, general 256byte
| int(* quad_enable) (struct spi_nor *nor, bool enable) |
initialize quad mode
| uint8_t read_dummy |
falsh read dummy, it depends on the frequency
| uint32_t read_proto |
falsh read transmission proto
| uint32_t sector_size |
flash sector size, general 4K or 256K
| int(* set_4byte_addr_mode) (struct spi_nor *nor, bool enable) |
initialize 4byte address mode
| flash_size_t size |
get flash capacity, get from flash_id
| uint8_t status_dummy |
falsh get status dummy
| uint8_t write_dummy |
falsh write dummy, it depends on the frequency
| uint32_t write_proto |
falsh write transmission proto