SemiDrive SSDK Appication Program Interface PTG3.0
Data Fields
spi_nor_host_ops

#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)
 

Field Documentation

◆ cache_flush

void(* cache_flush) (struct spi_nor *flash_handle, flash_addr_t addr, flash_size_t length)

spi nor host flush cache operation

◆ cancel

int(* cancel) (struct spi_nor *flash_handle)

spi nor cancel operation

◆ complex_erase

int(* complex_erase) (struct spi_nor *nor, struct spi_nor_erase_cmd *cmd)

spi nor erase flash cmd operation

◆ enable_rfd

int(* enable_rfd) (struct spi_nor *flash_handle, uint8_t mask)

spi nor host enable rfd operation

◆ erase

int(* erase) (struct spi_nor *flash_handle, flash_addr_t offset)

spi nor erase flash address operation

◆ prepare

int(* prepare) (struct spi_nor *flash_handle, enum spi_nor_ops ops)

prepare operations before r/w/e setup

◆ read

int(* read) (struct spi_nor *flash_handle, flash_addr_t addr, uint8_t *buf, flash_size_t length)

spi nor read flash address operation

◆ reg_read

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

◆ reg_write

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

◆ training

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

◆ unprepare

void(* unprepare) (struct spi_nor *flash_handle, enum spi_nor_ops ops)

operation after r/w/e setup

◆ write

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

◆ xip_proto_setup

void(* xip_proto_setup) (struct spi_nor *flash_handle)

spi nor xip mode proto setup


The documentation for this struct was generated from the following file: