nrfxlib API 2.8.99
|
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.
[in] | config | Pointer to the configuration struct. |
0 | on success. |
-NRF_EPERM | The Modem library is not initialized. |
-NRF_EACCES | GNSS is not enabled in system or functional mode. |
-NRF_EINVAL | The config pointer is NULL, GNSS returned an error or the operation cannot be executed while GNSS is running. |
-NRF_ENOMEM | There is not enough shared memory for this request. |
-NRF_ESHUTDOWN | The modem was shut down. |