![]() |
nRF Connect SDK Bare Metal API 2.0.99
|
| int bm_storage_init | ( | struct bm_storage * | storage, |
| const struct bm_storage_config * | config ) |
#include <bm_storage.h>
Initialize a storage instance.
| [in] | storage | Storage instance to initialize. |
| [in] | config | Configuration for the storage instance initialization. |
| 0 | on success. |
| -EFAULT | The storage instance storage is NULL or config is NULL. |
| -EPERM | The storage instance storage is already initialized. |
| -EINVAL | The configuration flags are not compatible with the backend. |
| -EIO | If an implementation-specific internal error occurred. |