nrfxlib API 0.1.0
|
int32_t nrf_modem_gnss_fix_interval_set | ( | uint16_t | fix_interval | ) |
#include <nrf_modem/include/nrf_modem_gnss.h>
Sets the GNSS fix interval in seconds.
Single fix navigation mode is engaged by setting the fix interval to 0.
Continuous navigation mode is engaged by setting fix interval to 1.
Periodic navigation mode is engaged by setting the fix interval to value 10...65535. The unit is seconds.
Default value: 1 (continuous navigation)
[in] | fix_interval | 0 for single fix, 1 for continuous navigation or fix interval in seconds. |
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 GNSS stack 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. |