#include <nrf_modem/include/nrf_modem.h>
Initialize the Modem library and turn on the modem in bootloader mode.
- Note
- To switch between bootloader and normal modes,
nrf_modem_shutdown must be called in between.
- Parameters
-
| [in] | init_params | Bootloader 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 | Missing handler in init_params. |
| -NRF_EACCES | Bad root digest. |
| -NRF_ETIMEDOUT | Operation timed out. |
| -NRF_EIO | Bootloader fault. |
| -NRF_ENOSYS | Operation not available. |