XCORE SDK
XCORE Software Development Kit
Public Attributes | List of all members
qspi_flash_ctx_t Struct Reference

#include <qspi_flash.h>

Public Attributes

qspi_io_ctx_t qspi_io_ctx
 
qspi_io_source_clock_t source_clock
 
int custom_clock_setup
 
qspi_flash_page_program_cmd_t quad_page_program_cmd
 
bool sfdp_skip
 
bool sfdp_supported
 
size_t page_size_bytes
 
size_t page_count
 
size_t flash_size_kbytes
 
int address_bytes
 
struct {
   uint32_t   size_log2
 
   uint32_t   cmd
 
erase_info [4]
 
uint32_t busy_poll_cmd
 
uint8_t busy_poll_bit
 
uint8_t busy_poll_ready_value
 
uint8_t qe_reg
 
uint8_t qe_bit
 
uint32_t sr2_read_cmd
 
uint32_t sr2_write_cmd
 

Detailed Description

The context structure that must be passed to each of the qspi_flash functions.

Member Data Documentation

◆ custom_clock_setup

int qspi_flash_ctx_t::custom_clock_setup

If set to false, then qspi_flash_init() will setup safe default values for the QSPI I/O clock configuration. If set to true, then the application must supply the clock setup values.

◆ qspi_io_ctx

qspi_io_ctx_t qspi_flash_ctx_t::qspi_io_ctx

The context for the QSPI I/O interface that is used by the QSPI flash. At a minimum, the ports and clock block must be set prior to calling qspi_flash_init().

◆ quad_page_program_cmd

qspi_flash_page_program_cmd_t qspi_flash_ctx_t::quad_page_program_cmd

The type of page program command that will be used when qspi_flash_write() is called. See qspi_flash_page_program_cmd_t.

◆ source_clock

qspi_io_source_clock_t qspi_flash_ctx_t::source_clock

The source clock to use for the QSPI I/O interface. Must be either qspi_io_source_clock_ref or qspi_io_source_clock_xcore. This must be set prior to calling qspi_flash_init().


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