Function nrfxlib_sys::nrf_modem_gnss_read
source · pub unsafe extern "C" fn nrf_modem_gnss_read(
buf: *mut c_void,
buf_len: i32,
type_: c_int
) -> i32
Expand description
Reads data from GNSS.
@details This function is used to read any data from GNSS. The data type is specified using the type argument to this function.
buf
- Pointer to a buffer that can hold the selected data type.buf_len
- Length of the buffer.type
- The data type to read, see @ref nrf_modem_gnss_data_type.
Returns 0 on success. Returns -NRF_EINVAL The selected data type don’t exist or supplied buffer is NULL. Returns -NRF_EMSGSIZE The buffer supplied by the application is too small for the selected data type. Returns -NRF_ENOMSG There is no data to read for the selected data type.