nRF Connect SDK API 2.8.99
|
Module to provide nRF Cloud location support to nRF9160 SiP. More...
#include <zephyr/kernel.h>
#include <zephyr/sys/slist.h>
#include <modem/lte_lc.h>
#include <net/nrf_cloud.h>
#include <net/wifi_location_common.h>
Go to the source code of this file.
Data Structures | |
struct | nrf_cloud_anchor_list_node |
Anchor name list node, to be used with sys_slist_t APIs. More... | |
struct | nrf_cloud_location_result |
Location request result. More... | |
struct | nrf_cloud_location_config |
Location request config. More... | |
Macros | |
#define | NRF_CLOUD_LOCATION_WIFI_OMIT_RSSI (INT8_MAX) |
#define | NRF_CLOUD_LOCATION_WIFI_OMIT_CHAN (0) |
#define | NRF_CLOUD_LOCATION_WIFI_AP_CNT_MIN 2 |
#define | NRF_CLOUD_LOCATION_ANCHOR_NAME_MAX 32 |
#define | NRF_CLOUD_ANCHOR_LIST_BUF_MIN_SZ |
#define | NRF_CLOUD_LOCATION_CELL_OMIT_TIME_ADV LTE_LC_CELL_TIMING_ADVANCE_INVALID |
#define | NRF_CLOUD_LOCATION_CELL_OMIT_RSRQ LTE_LC_CELL_RSRQ_INVALID |
#define | NRF_CLOUD_LOCATION_CELL_OMIT_RSRP LTE_LC_CELL_RSRP_INVALID |
#define | NRF_CLOUD_LOCATION_CELL_OMIT_EARFCN UINT32_MAX |
#define | NRF_CLOUD_LOCATION_CELL_TIME_ADV_MAX LTE_LC_CELL_TIMING_ADVANCE_MAX |
Typedefs | |
typedef void(* | nrf_cloud_location_response_t) (const struct nrf_cloud_location_result *const pos) |
Cloud location result handler function type. | |
Enumerations | |
enum | nrf_cloud_location_type { LOCATION_TYPE_SINGLE_CELL , LOCATION_TYPE_MULTI_CELL , LOCATION_TYPE_WIFI , LOCATION_TYPE__INVALID } |
Location request type. More... | |
Functions | |
int | nrf_cloud_location_request (const struct lte_lc_cells_info *const cells_inf, const struct wifi_scan_info *const wifi_inf, const struct nrf_cloud_location_config *const config, nrf_cloud_location_response_t cb) |
Perform an nRF Cloud location request over MQTT. | |
int | nrf_cloud_location_process (const char *buf, struct nrf_cloud_location_result *result) |
Process location data received from nRF Cloud over MQTT or REST. | |
int | nrf_cloud_location_scell_data_get (struct lte_lc_cell *const cell_inf) |
Get the cellular network information from the modem that is required for a single-cell location request. | |
Module to provide nRF Cloud location support to nRF9160 SiP.