nRF Connect SDK Bare Metal API 2.0.99
Loading...
Searching...
No Matches

◆ bm_storage_read()

int bm_storage_read ( const struct bm_storage * storage,
uint32_t src,
void * dest,
uint32_t len )

#include <bm_storage.h>

Read data from storage.

Parameters
[in]storageStorage instance to read data from.
[in]srcOffset within the partition where to read data from.
[out]destDestination where the data will be copied to.
[in]lenLength of the data to copy (in bytes).
Return values
0on success.
-EFAULTThe storage instance storage or dest is NULL.
-EPERMThe storage instance storage is not initialized.
-EINVALIf len is zero.