SDC implementation

nRF5 SDK v12.2.0

Data Structures

struct nrf_block_dev_sdc_work_t
Work structure of SDC block device. More...
struct nrf_block_dev_sdc_config_t
SDC block device config. More...
struct nrf_block_dev_sdc_t
SDC block device. More...

Macros

#define NRF_BLOCK_DEV_SDC_CONFIG (blk_size, sdc_lib_config)
SDC block device config initializer ( nrf_block_dev_sdc_config_t ) More...
#define NRF_BLOCK_DEV_SDC_DEFINE (name, config, info)
Defines a SDC block device. More...

Functions

static nrf_block_dev_t const * nrf_block_dev_sdc_ops_get ( nrf_block_dev_sdc_t const *p_blk_sdc)
Returns block device API handle from SDC block device. More...

Variables

const nrf_block_dev_ops_t nrf_block_device_sdc_ops
SDC block device operations.

Detailed Description

Macro Definition Documentation

#define NRF_BLOCK_DEV_SDC_CONFIG ( blk_size,
sdc_lib_config
)
Value:
{ \
.block_size = (blk_size), \
.sdc_config = sdc_lib_config \
}

SDC block device config initializer ( nrf_block_dev_sdc_config_t )

Parameters
blk_size Block size
sdc_lib_config SDC library config ( app_sdc_config_t )
#define NRF_BLOCK_DEV_SDC_DEFINE ( name,
config,
info
)
Value:
static const nrf_block_dev_sdc_t name = { \
.info_strings = BRACKET_EXTRACT (info), \
.sdc_bdev_config = config, \
.p_work = & CONCAT_2 (name, _work), \
}

Defines a SDC block device.

Parameters
name Instance name
config Configuration nrf_block_dev_sdc_config_t
info Info strings NFR_BLOCK_DEV_INFO_CONFIG

Function Documentation

static nrf_block_dev_t const* nrf_block_dev_sdc_ops_get ( nrf_block_dev_sdc_t const * p_blk_sdc )
inline static

Returns block device API handle from SDC block device.

Parameters
[in] p_blk_sdc SDC block device
Returns
Block device handle