![]() |
nrfxlib API 3.3.99
|
| int32_t nrf_modem_gnss_agnss_write | ( | void * | buf, |
| int32_t | buf_len, | ||
| uint16_t | type ) |
#include <nrf_modem/include/nrf_modem_gnss.h>
Writes A-GNSS data to GNSS.
This function is used to write A-GNSS data to GNSS to decrease the time to first fix.
| [in] | buf | Pointer to a buffer that contains A-GNSS data. |
| [in] | buf_len | Length of the buffer. |
| [in] | type | A-GNSS data type identifier, see A-GNSS data type enumerator. |
| 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 buffer supplied by the application is NULL, buffer length is 0, the A-GNSS data type doesn't exist or the A-GNSS data was not accepted by GNSS. |
| -NRF_ENOMEM | There is not enough shared memory for this request. |
| -NRF_ESHUTDOWN | The modem was shut down. |