pub unsafe extern "C" fn nrf_modem_gnss_agps_write(
    buf: *mut c_void,
    buf_len: i32,
    type_: u16
) -> i32
Expand description

Writes A-GPS data to GNSS.

@details This function is used to write A-GPS data to GNSS to decrease the time to first fix.

  • buf - Pointer to a buffer that contain A-GPS data.
  • buf_len - Length of the buffer.
  • type - A-GPS data type identifier, see @ref nrf_modem_gnss_agps_data_type.

Returns 0 on success. Returns -NRF_EPERM The Modem library is not initialized. Returns -NRF_EACCES GNSS is not enabled in system or functional mode. Returns -NRF_EINVAL The buffer supplied by the application is NULL, buffer length is 0, the A-GPS data type doesn’t exist or the A-GPS data was not accepted by GNSS. Returns -NRF_ENOMEM There is not enough shared memory for this request. Returns -NRF_ESHUTDOWN The modem was shut down.