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

◆ nrf_modem_gnss_timing_source_set()

int32_t nrf_modem_gnss_timing_source_set ( uint8_t  timing_source)

#include <nrf_modem/include/nrf_modem_gnss.h>

Sets the used timing source during GNSS sleep.

Using TCXO instead of RTC during GNSS sleep periods might be beneficial when used with 1PPS. When GNSS is not running all the time (periodic navigation or duty cycling is used), 1PPS accuracy can be improved by using TCXO. It may also improve sensitivity for periodic navigation when the fix interval is short.

Default value: NRF_MODEM_GNSS_TIMING_SOURCE_RTC

Note
Use of TCXO significantly raises the idle current consumption.
Parameters
[in]timing_sourceSee Sleep timing source 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.