Zephyr API Documentation 4.3.0-rc1
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
gnss_emul.h File Reference
#include <stdint.h>
#include <zephyr/device.h>
#include <zephyr/drivers/gnss.h>

Go to the source code of this file.

Functions

void gnss_emul_clear_data (const struct device *dev)
 Clear all internal GNSS data of the emulator.
void gnss_emul_set_data (const struct device *dev, const struct navigation_data *nav, const struct gnss_info *info, int64_t boot_realtime_ms)
 Set the internal GNSS data of the emulator.
int gnss_emul_get_fix_rate (const struct device *dev, uint32_t *fix_interval_ms)
 Retrieve the last configured fix rate, regardless of PM state.
int gnss_emul_get_navigation_mode (const struct device *dev, enum gnss_navigation_mode *mode)
 Retrieve the last configured navigation mode, regardless of PM state.
int gnss_emul_get_enabled_systems (const struct device *dev, gnss_systems_t *systems)
 Retrieve the last configured systems, regardless of PM state.

Function Documentation

◆ gnss_emul_clear_data()

void gnss_emul_clear_data ( const struct device * dev)

Clear all internal GNSS data of the emulator.

Parameters
devGNSS emulator device

◆ gnss_emul_get_enabled_systems()

int gnss_emul_get_enabled_systems ( const struct device * dev,
gnss_systems_t * systems )

Retrieve the last configured systems, regardless of PM state.

Parameters
devGNSS emulator device
systemsOutput GNSS systems
Return values
0On success

◆ gnss_emul_get_fix_rate()

int gnss_emul_get_fix_rate ( const struct device * dev,
uint32_t * fix_interval_ms )

Retrieve the last configured fix rate, regardless of PM state.

Parameters
devGNSS emulator device
fix_interval_msOutput fix interval
Return values
0On success

◆ gnss_emul_get_navigation_mode()

int gnss_emul_get_navigation_mode ( const struct device * dev,
enum gnss_navigation_mode * mode )

Retrieve the last configured navigation mode, regardless of PM state.

Parameters
devGNSS emulator device
modeOutput navigation mode
Return values
0On success

◆ gnss_emul_set_data()

void gnss_emul_set_data ( const struct device * dev,
const struct navigation_data * nav,
const struct gnss_info * info,
int64_t boot_realtime_ms )

Set the internal GNSS data of the emulator.

Parameters
devGNSS emulator device
navUpdated navigation state
infoUpdated GNSS fix information
boot_realtime_msUnix timestamp associated with system boot