pub unsafe extern "C" fn nrf_modem_gnss_1pps_enable(
    config: *const nrf_modem_gnss_1pps_config
) -> i32
Expand description

Enables 1PPS functionality.

@details #nrf_modem_gnss_1pps_config contains the used 1PPS configuration. GNSS only starts giving pulses after it has got at least one fix. After this, the pulses will continue also when GNSS is no longer running, but the precision will start degrading.

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

@note 1PPS accuracy is not guaranteed when LTE is active.

  • config - Pointer to the configuration struct.

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 config pointer is NULL, GNSS 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.