Infuse-IoT SDK API 0.0.1
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
gnss_emul.h
Go to the documentation of this file.
1
9
10#ifndef INFUSE_SDK_INCLUDE_INFUSE_DRIVERS_GNSS_GNSS_EMUL_H_
11#define INFUSE_SDK_INCLUDE_INFUSE_DRIVERS_GNSS_GNSS_EMUL_H_
12
13#include <stdint.h>
14
15#include <zephyr/device.h>
16
17#ifdef __cplusplus
18extern "C" {
19#endif
20
27
35void emul_gnss_ubx_dev_ptrs(const struct device *dev, int **pm_rc, int **comms_reset_cnt);
36
40 int32_t latitude;
42 int32_t longitude;
44 int32_t height;
46 uint32_t h_acc;
48 uint32_t v_acc;
50 uint32_t t_acc;
52 uint16_t p_dop;
54 uint8_t num_sv;
55};
56
63void emul_gnss_pvt_configure(const struct device *dev,
64 struct gnss_pvt_emul_location *emul_location);
65
72
76
77#ifdef __cplusplus
78}
79#endif
80
81#endif /* INFUSE_SDK_INCLUDE_INFUSE_DRIVERS_GNSS_GNSS_EMUL_H_ */
void emul_gnss_nrf9x_event_raise(int event)
Raise an event on the emulated nRF9x GNSS event handler.
void emul_gnss_ubx_dev_ptrs(const struct device *dev, int **pm_rc, int **comms_reset_cnt)
Get pointers to emulated GNSS device state.
void emul_gnss_pvt_configure(const struct device *dev, struct gnss_pvt_emul_location *emul_location)
Configure the currently output PVT message.
Emulated GNSS parameters, matching the UBX NAV-PVT field scaling.
Definition gnss_emul.h:38
uint32_t t_acc
Time accuracy estimate (ns)
Definition gnss_emul.h:50
uint32_t v_acc
Vertical accuracy estimate (mm)
Definition gnss_emul.h:48
int32_t height
Height above ellipsoid (mm)
Definition gnss_emul.h:44
uint8_t num_sv
Number of satellites used in the navigation solution.
Definition gnss_emul.h:54
int32_t longitude
Longitude (1e-7 degrees)
Definition gnss_emul.h:42
uint16_t p_dop
Position DOP (0.01)
Definition gnss_emul.h:52
int32_t latitude
Latitude (1e-7 degrees)
Definition gnss_emul.h:40
uint32_t h_acc
Horizontal accuracy estimate (mm)
Definition gnss_emul.h:46