pub unsafe extern "C" fn nrf_modem_gnss_timing_source_set(
    timing_source: u8
) -> i32
Expand description

Sets the used timing source during GNSS sleep.

@details 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.

@note This feature is only supported by modem firmware v1.3.0 or later.

  • timing_source - See @ref nrf_modem_gnss_timing_source.

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.