nrfxlib API 2.8.99
|
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.
[out] | buf | Pointer to a buffer that can hold the selected data type. |
[in] | buf_len | Length of the buffer. |
[in] | type | The data type to read, see Data type enumerator. |
0 | on success. |
-NRF_EINVAL | The selected data type don't exist or supplied buffer is NULL. |
-NRF_EMSGSIZE | The buffer supplied by the application is too small for the selected data type. |
-NRF_ENOMSG | There is no data to read for the selected data type. |