nRF5 SDK v17.0.2
Data Structures | Macros | Functions | Variables
SDC implementation

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_sizeBlock size
sdc_lib_configSDC library config (app_sdc_config_t)
#define NRF_BLOCK_DEV_SDC_DEFINE (   name,
  config,
  info 
)
Value:
static nrf_block_dev_sdc_work_t CONCAT_2(name, _work); \
static const nrf_block_dev_sdc_t name = { \
.block_dev = { .p_ops = &nrf_block_device_sdc_ops }, \
.info_strings = BRACKET_EXTRACT(info), \
.sdc_bdev_config = config, \
.p_work = &CONCAT_2(name, _work), \
}

Defines a SDC block device.

Parameters
nameInstance name
configConfiguration nrf_block_dev_sdc_config_t
infoInfo 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)
inlinestatic

Returns block device API handle from SDC block device.

Parameters
[in]p_blk_sdcSDC block device
Returns
Block device handle

Documentation feedback | Developer Zone | Subscribe | Updated