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

◆ nrf_modem_gnss_agnss_write()

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.

Parameters
[in]bufPointer to a buffer that contains A-GNSS data.
[in]buf_lenLength of the buffer.
[in]typeA-GNSS data type identifier, see A-GNSS data type enumerator.
Return values
0on success.
-NRF_EPERMThe Modem library is not initialized.
-NRF_EACCESGNSS is not enabled in system or functional mode.
-NRF_EINVALThe 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_ENOMEMThere is not enough shared memory for this request.
-NRF_ESHUTDOWNThe modem was shut down.