QSPI implementation

nRF5 SDK v12.2.0

Data Structures

struct nrf_block_dev_qspi_work_t
Work structure of QSPI block device. More...
struct nrf_block_dev_qspi_config_t
QSPI block device config. More...
struct nrf_block_dev_qspi_t
QSPI block device. More...

Macros

#define NRF_BLOCK_DEV_QSPI_ERASE_UNIT_SIZE (4096)
QSPI block device internal erase unit buffer size.
#define NRF_BLOCK_DEV_QSPI_CONFIG (blk_size, blk_flags, qspi_drv_config)
QSPI block device config initializer ( nrf_block_dev_qspi_config_t ) More...
#define NRF_BLOCK_DEV_QSPI_DEFINE (name, config, info)
Defines a QSPI block device. More...

Functions

static nrf_block_dev_t const * nrf_block_dev_qspi_ops_get ( nrf_block_dev_qspi_t const *p_blk_qspi)
Returns block device API handle from QSPI block device. More...

Variables

const nrf_block_dev_ops_t nrf_block_device_qspi_ops
QSPI block device operations.

Detailed Description

Macro Definition Documentation

#define NRF_BLOCK_DEV_QSPI_CONFIG ( blk_size,
blk_flags,
qspi_drv_config
)
Value:
{ \
.block_size = (blk_size), \
.flags = (blk_flags), \
.qspi_config = qspi_drv_config \
}

QSPI block device config initializer ( nrf_block_dev_qspi_config_t )

Parameters
blk_size Block size
blk_flags Block device flags, nrf_block_dev_qspi_flag_t
qspi_drv_config QPSI driver config
#define NRF_BLOCK_DEV_QSPI_DEFINE ( name,
config,
info
)
Value:
static const nrf_block_dev_qspi_t name = { \
.info_strings = BRACKET_EXTRACT (info), \
.qspi_bdev_config = config, \
.p_work = & CONCAT_2 (name, _work), \
}

Defines a QSPI block device.

Parameters
name Instance name
config Configuration nrf_block_dev_qspi_config_t
info Info strings NFR_BLOCK_DEV_INFO_CONFIG

Enumeration Type Documentation

QSPI block device flags.

Enumerator
NRF_BLOCK_DEV_QSPI_FLAG_CACHE_WRITEBACK

Cache write-back mode enable flag.

Internal Block device state.

Enumerator
NRF_BLOCK_DEV_QSPI_STATE_DISABLED

QSPI block device state DISABLED

NRF_BLOCK_DEV_QSPI_STATE_IDLE

QSPI block device state IDLE

NRF_BLOCK_DEV_QSPI_STATE_READ_EXEC

QSPI block device state READ_EXEC

NRF_BLOCK_DEV_QSPI_STATE_EUNIT_LOAD

QSPI block device state EUNIT_LOAD

NRF_BLOCK_DEV_QSPI_STATE_WRITE_ERASE

QSPI block device state WRITE_ERASE

NRF_BLOCK_DEV_QSPI_STATE_WRITE_EXEC

QSPI block device state WRITE_EXEC

Function Documentation

static nrf_block_dev_t const* nrf_block_dev_qspi_ops_get ( nrf_block_dev_qspi_t const * p_blk_qspi )
inline static

Returns block device API handle from QSPI block device.

Parameters
[in] p_blk_qspi QSPI block device
Returns
Block device handle