nRF Connect SDK API 2.8.99
|
int nrf_modem_lib_init | ( | void | ) |
#include <include/modem/nrf_modem_lib.h>
Initialize the Modem library and turn on the modem.
The operation can take a few minutes when a firmware update is scheduled.
To switch between the bootloader mode and normal operating mode, shutdown the modem with nrf_modem_lib_shutdown() and re-initialize it in the desired mode. Use nrf_modem_lib_init() to initialize in normal mode and nrf_modem_lib_bootloader_init() to initialize the Modem library in bootloader mode.
Zero | on success. |
-NRF_EPERM | The Modem library is already initialized. |
-NRF_EFAULT | init_params is NULL . |
-NRF_ENOLCK | Not enough semaphores. |
-NRF_ENOMEM | Not enough shared memory. |
-NRF_EINVAL | Control region size is incorrect or missing handlers in init_params . |
-NRF_ENOTSUPP | RPC version mismatch. |
-NRF_ETIMEDOUT | Operation timed out. |
-NRF_ACCESS | Modem firmware authentication failure. |
-NRF_EAGAIN | Modem device firmware upgrade failure. DFU is scheduled at next initialization. |
-NRF_EIO | Modem device firmware upgrade failure. Reprogramming the modem firmware is necessary to recover. |