nrfxlib API 0.1.0
Loading...
Searching...
No Matches

◆ nrf_modem_gnss_1pps_enable()

int32_t nrf_modem_gnss_1pps_enable ( const struct nrf_modem_gnss_1pps_config config)

#include <nrf_modem/include/nrf_modem_gnss.h>

Enables 1PPS functionality.

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
The 1PPS feature must not be used when LTE is enabled.
Parameters
[in]configPointer to the configuration struct.
Return values
0on success.
-NRF_EPERMThe Modem library is not initialized.
-NRF_EACCESGNSS is not enabled in system or functional mode.
-NRF_EINVALThe config pointer is NULL, GNSS 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.