nRF Connect SDK API 0.1.0
|
int nrf_modem_lib_bootloader_init | ( | void | ) |
#include <include/modem/nrf_modem_lib.h>
Initialize the Modem library in bootloader mode and turn on the modem.
When the modem is initialized in bootloader mode, no other functionality is available. In particular, networking sockets and AT commands won't be available.
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 | Missing handler in init_params . |
-NRF_EACCES | Bad root digest. |
-NRF_ETIMEDOUT | Operation timed out. |
-NRF_EIO | Bootloader fault. |
-NRF_ENOSYS | Operation not available. |