Function nrfxlib_sys::nrf_modem_init
source · pub unsafe extern "C" fn nrf_modem_init(
init_params: *const nrf_modem_init_params
) -> c_int
Expand description
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.
init_params
- 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_EINVAL Control region size is incorrect.
Returns -NRF_ENOTSUPP RPC version mismatch.
Returns -NRF_ETIMEDOUT Operation timed out.
Returns -NRF_ACCESS Modem firmware authentication failure.