#include <nrf_modem/include/nrf_modem.h>
Initialize the Modem library and turn on the modem.
- Note
- To switch between bootloader and normal modes,
nrf_modem_shutdown must be called in between.
- Parameters
-
| [in] | init_params | Initialization parameters. |
- Return values
-
| 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_ENOTSUP | RPC version mismatch. |
| -NRF_ETIMEDOUT | Operation timed out. |
| -NRF_EAGAIN | Modem firmware update not executed due to insufficient voltage, try again. |
| -NRF_EIO | Modem firmware update failure or modem fault during initialization. |