nrfxlib API 2.7.99
Loading...
Searching...
No Matches

◆ nrf_modem_gnss_power_mode_set()

int32_t nrf_modem_gnss_power_mode_set ( uint8_t  power_mode)

#include <nrf_modem/include/nrf_modem_gnss.h>

Sets the used power saving mode.

Valid only in continuous navigation mode.

Default value: NRF_MODEM_GNSS_PSM_DISABLED

Parameters
[in]power_modeSee Power save mode enumerator.
Return values
0on success.
-NRF_EPERMThe Modem library is not initialized.
-NRF_EACCESGNSS is not enabled in system or functional mode.
-NRF_EINVALThe GNSS stack returned an error or the operation cannot be executed while GNSS is running.
-NRF_ENOMEMThere is not enough shared memory for this request.
-NRF_ESHUTDOWNThe modem was shut down.