Function nrfxlib_sys::nrf_modem_bootloader_init
source · pub unsafe extern "C" fn nrf_modem_bootloader_init(
init_params: *const nrf_modem_bootloader_init_params
) -> c_int
Expand description
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.
init_params
- Bootloader initialization parameters.
Returns Zero on success. Returns A positive value from @ref nrf_modem_dfu when executing Modem firmware updates.
Returns -NRF_EPERM The Modem library is already initialized.
Returns -NRF_EFAULT * init_params
- is * NULL
- .
Returns -NRF_ENOLCK Not enough semaphores.
Returns -NRF_ENOMEM Not enough shared memory.
Returns -NRF_EACCES Bad root digest.
Returns -NRF_ETIMEDOUT Operation timed out.
Returns -NRF_EIO Bootloader fault.