nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches
location_module_event.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2022 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
6
7#ifndef _LOCATION_MODULE_EVENT_H_
8#define _LOCATION_MODULE_EVENT_H_
9
16#include <nrf_modem_gnss.h>
17#include <modem/lte_lc.h>
19#if defined(CONFIG_NRF_CLOUD_PGPS)
20#include <net/nrf_cloud_pgps.h>
21#endif
22#include <app_event_manager.h>
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
37
43
50
58
61
66
73
80
86
93};
94
98 double latitude;
99
101 double longitude;
102
104 float accuracy;
105
107 float altitude;
108
111
113 float speed;
114
117
119 float heading;
120
123};
124
130 struct lte_lc_ncell neighbor_cells[CONFIG_LTE_NEIGHBOR_CELLS_MAX];
132 int64_t timestamp;
133};
134
135#if defined(CONFIG_LOCATION_METHOD_WIFI)
139 struct wifi_scan_result ap_info[CONFIG_LOCATION_METHOD_WIFI_SCANNING_RESULTS_MAX_CNT];
141 uint16_t cnt;
143 int64_t timestamp;
144};
145#endif
146
155#if defined(CONFIG_LOCATION_METHOD_WIFI)
160#endif
162 int64_t timestamp;
163};
164
171
174
176 uint32_t search_time;
177
179 int64_t timestamp;
180};
181
185 struct app_event_header header;
188
190 union {
192 struct location_module_data location;
194 struct location_module_cloud_location cloud_location;
196 struct nrf_modem_gnss_agnss_data_frame agnss_request;
197#if defined(CONFIG_NRF_CLOUD_PGPS)
199 struct gps_pgps_request pgps_request;
200#endif
201 /* Module ID, used when acknowledging shutdown requests. */
202 uint32_t id;
204 int err;
206};
207
209
210#ifdef __cplusplus
211}
212#endif
213
218#endif /* _LOCATION_MODULE_EVENT_H_ */
Application Event Manager header.
Application Event Manager profiler tracer header.
#define APP_EVENT_TYPE_DECLARE(ename)
Declare an event type.
Definition: app_event_manager.h:143
location_module_event_type
Location event types submitted by location module.
Definition: location_module_event.h:30
@ LOCATION_MODULE_EVT_ACTIVE
Definition: location_module_event.h:60
@ LOCATION_MODULE_EVT_SHUTDOWN_READY
Definition: location_module_event.h:72
@ LOCATION_MODULE_EVT_INACTIVE
Definition: location_module_event.h:65
@ LOCATION_MODULE_EVT_DATA_NOT_READY
Definition: location_module_event.h:42
@ LOCATION_MODULE_EVT_TIMEOUT
Definition: location_module_event.h:57
@ LOCATION_MODULE_EVT_ERROR_CODE
Definition: location_module_event.h:92
@ LOCATION_MODULE_EVT_AGNSS_NEEDED
Definition: location_module_event.h:79
@ LOCATION_MODULE_EVT_PGPS_NEEDED
Definition: location_module_event.h:85
@ LOCATION_MODULE_EVT_GNSS_DATA_READY
Definition: location_module_event.h:36
@ LOCATION_MODULE_EVT_CLOUD_LOCATION_DATA_READY
Definition: location_module_event.h:49
Module to provide nRF Cloud Predicted GPS (P-GPS) support to nRF9160 SiP.
P-GPS request type.
Definition: nrf_cloud_pgps.h:83
bool neighbor_cells_valid
Definition: location_module_event.h:152
struct location_module_neighbor_cells neighbor_cells
Definition: location_module_event.h:154
bool wifi_access_points_valid
Definition: location_module_event.h:157
int64_t timestamp
Definition: location_module_event.h:162
struct location_module_wifi_access_points wifi_access_points
Definition: location_module_event.h:159
Location module data for associated payload for event of LOCATION_MODULE_EVT_CLOUD_LOCATION_DATA_READ...
Definition: location_module_event.h:150
struct location_module_pvt pvt
Definition: location_module_event.h:170
uint32_t search_time
Definition: location_module_event.h:176
uint8_t satellites_tracked
Definition: location_module_event.h:173
int64_t timestamp
Definition: location_module_event.h:179
Location module data for associated payload for events of LOCATION_MODULE_EVT_TIMEOUT and LOCATION_MO...
Definition: location_module_event.h:168
enum location_module_event_type type
Definition: location_module_event.h:187
int err
Definition: location_module_event.h:204
struct app_event_header header
Definition: location_module_event.h:185
union location_module_event::@11 data
uint32_t id
Definition: location_module_event.h:202
Location module event.
Definition: location_module_event.h:183
int64_t timestamp
Definition: location_module_event.h:132
struct lte_lc_ncell neighbor_cells[CONFIG_LTE_NEIGHBOR_CELLS_MAX]
Definition: location_module_event.h:130
struct lte_lc_cells_info cell_data
Definition: location_module_event.h:128
Location module data for neighbor cells.
Definition: location_module_event.h:126
float altitude_accuracy
Definition: location_module_event.h:110
double latitude
Definition: location_module_event.h:98
float altitude
Definition: location_module_event.h:107
float heading
Definition: location_module_event.h:119
float heading_accuracy
Definition: location_module_event.h:122
float speed
Definition: location_module_event.h:113
double longitude
Definition: location_module_event.h:101
float accuracy
Definition: location_module_event.h:104
float speed_accuracy
Definition: location_module_event.h:116
Position, velocity and time (PVT) data.
Definition: location_module_event.h:96
uint16_t cnt
Definition: location_module_event.h:141
struct wifi_scan_result ap_info[CONFIG_LOCATION_METHOD_WIFI_SCANNING_RESULTS_MAX_CNT]
Definition: location_module_event.h:139
int64_t timestamp
Definition: location_module_event.h:143
Location module data for Wi-Fi access points.
Definition: location_module_event.h:137
Definition: lte_lc.h:513
Definition: lte_lc.h:385