nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches
nrf_cloud_agnss.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2020 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
6
7#ifndef NRF_CLOUD_AGNSS_H_
8#define NRF_CLOUD_AGNSS_H_
9
14#include <zephyr/kernel.h>
15#include <nrf_modem_gnss.h>
16#include <net/nrf_cloud.h>
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
23#define NRF_CLOUD_AGNSS_MASK_ANGLE_NONE 0xFF
24
29#if defined(CONFIG_NRF_CLOUD_MQTT)
38int nrf_cloud_agnss_request(const struct nrf_modem_gnss_agnss_data_frame *request);
39
45#endif /* CONFIG_NRF_CLOUD_MQTT */
46
60int nrf_cloud_agnss_process(const char *buf, size_t buf_len);
61
67void nrf_cloud_agnss_processed(struct nrf_modem_gnss_agnss_data_frame *received_elements);
68
74
77#ifdef __cplusplus
78}
79#endif
80
81#endif /* NRF_CLOUD_AGNSS_H_ */
int nrf_cloud_agnss_request_all(void)
Requests all available A-GNSS data from nRF Cloud via MQTT.
int nrf_cloud_agnss_process(const char *buf, size_t buf_len)
Processes binary A-GNSS data received from nRF Cloud.
int nrf_cloud_agnss_request(const struct nrf_modem_gnss_agnss_data_frame *request)
Requests specified A-GNSS data from nRF Cloud via MQTT.
void nrf_cloud_agnss_processed(struct nrf_modem_gnss_agnss_data_frame *received_elements)
Query which A-GNSS elements were actually received.
bool nrf_cloud_agnss_request_in_progress(void)
Query whether A-GNSS data has been requested from cloud.