nrf_modem_bootloader_init

Function 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 -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_EINVAL Missing handler in * init_params - . Returns -NRF_EACCES Bad root digest. Returns -NRF_ETIMEDOUT Operation timed out. Returns -NRF_EIO Bootloader fault. Returns -NRF_ENOSYS Operation not available.