![]() |
nRF Connect SDK Bare Metal API 2.0.99
|
| 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.
| [in] | storage | Storage instance to read data from. |
| [in] | src | Offset within the partition where to read data from. |
| [out] | dest | Destination where the data will be copied to. |
| [in] | len | Length of the data to copy (in bytes). |
| 0 | on success. |
| -EFAULT | The storage instance storage or dest is NULL. |
| -EPERM | The storage instance storage is not initialized. |
| -EINVAL | If len is zero. |