nrfxlib API 0.1.0
Loading...
Searching...
No Matches

◆ nrf_modem_init()

int nrf_modem_init ( const struct nrf_modem_init_params init_params)

#include <nrf_modem/include/nrf_modem.h>

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.
Parameters
[in]init_paramsInitialization parameters.
Return values
Zeroon success.
-NRF_EPERMThe Modem library is already initialized.
-NRF_EFAULTinit_params is NULL.
-NRF_ENOLCKNot enough semaphores.
-NRF_ENOMEMNot enough shared memory.
-NRF_EINVALControl region size is incorrect or missing handlers in init_params.
-NRF_ENOTSUPPRPC version mismatch.
-NRF_ETIMEDOUTOperation timed out.
-NRF_EAGAINModem firmware update not executed due to insufficient voltage, try again.
-NRF_EIOModem firmware update failure or modem fault during initialization.