pub unsafe extern "C" fn nrf_modem_gnss_power_mode_set(
    power_mode: u8
) -> i32
Expand description

Sets the used power saving mode.

@details Valid only in continuous navigation mode.

Default value: #NRF_MODEM_GNSS_PSM_DISABLED

  • power_mode - See @ref nrf_modem_gnss_power_save_modes.

Returns 0 on success. Returns -NRF_EPERM The Modem library is not initialized. Returns -NRF_EACCES GNSS is not enabled in system or functional mode. Returns -NRF_EINVAL The GNSS stack returned an error or the operation cannot be executed while GNSS is running. Returns -NRF_ENOMEM There is not enough shared memory for this request. Returns -NRF_ESHUTDOWN The modem was shut down.