Zephyr API Documentation 4.3.0-rc1
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
gnss_emul.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2025 Embeint Pty Ltd
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#ifndef ZEPHYR_DRIVERS_GNSS_GNSS_EMUL_H_
8#define ZEPHYR_DRIVERS_GNSS_GNSS_EMUL_H_
9
10#include <stdint.h>
11
12#include <zephyr/device.h>
13#include <zephyr/drivers/gnss.h>
14
20void gnss_emul_clear_data(const struct device *dev);
21
30void gnss_emul_set_data(const struct device *dev, const struct navigation_data *nav,
31 const struct gnss_info *info, int64_t boot_realtime_ms);
32
41int gnss_emul_get_fix_rate(const struct device *dev, uint32_t *fix_interval_ms);
42
52
61int gnss_emul_get_enabled_systems(const struct device *dev, gnss_systems_t *systems);
62
63#endif /* ZEPHYR_DRIVERS_GNSS_GNSS_EMUL_H_ */
Main header file for GNSS driver API.
int gnss_emul_get_enabled_systems(const struct device *dev, gnss_systems_t *systems)
Retrieve the last configured systems, regardless of PM state.
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.
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.
void gnss_emul_clear_data(const struct device *dev)
Clear all internal GNSS data of the emulator.
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.
uint32_t gnss_systems_t
Type storing bitmask of GNSS systems.
Definition gnss.h:94
gnss_navigation_mode
GNSS navigation modes.
Definition gnss.h:54
__UINT32_TYPE__ uint32_t
Definition stdint.h:90
__INT64_TYPE__ int64_t
Definition stdint.h:75
Runtime device structure (in ROM) per driver instance.
Definition device.h:510
GNSS info data structure.
Definition gnss.h:139
Navigation data structure.
Definition navigation.h:25