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

◆ nrf_modem_gnss_read()

int32_t nrf_modem_gnss_read ( void *  buf,
int32_t  buf_len,
int  type 
)

#include <nrf_modem/include/nrf_modem_gnss.h>

Reads data from GNSS.

This function is used to read any data from GNSS. The data type is specified using the type argument to this function.

Parameters
[out]bufPointer to a buffer that can hold the selected data type.
[in]buf_lenLength of the buffer.
[in]typeThe data type to read, see Data type enumerator.
Return values
0on success.
-NRF_EINVALThe selected data type don't exist or supplied buffer is NULL.
-NRF_EMSGSIZEThe buffer supplied by the application is too small for the selected data type.
-NRF_ENOMSGThere is no data to read for the selected data type.