nRF Connect SDK API 3.3.99
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#include <modem/lte_lc.h>
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
27#if defined(CONFIG_SOC_SERIES_NRF92)
28#define NRF_CLOUD_AGNSS_MAX_DATA_SIZE 7296
29#else
30#define NRF_CLOUD_AGNSS_MAX_DATA_SIZE 4096
31#endif
32
34#define NRF_CLOUD_AGNSS_MASK_ANGLE_NONE 0xFF
35
40#if defined(CONFIG_NRF_CLOUD_MQTT)
49int nrf_cloud_agnss_request(const struct nrf_modem_gnss_agnss_data_frame *request);
50
56#endif /* CONFIG_NRF_CLOUD_MQTT */
57
71int nrf_cloud_agnss_process(const char *buf, size_t buf_len);
72
78void nrf_cloud_agnss_processed(struct nrf_modem_gnss_agnss_data_frame *received_elements);
79
85
88#ifdef __cplusplus
89}
90#endif
91
92#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.