Zephyr API 3.6.99
|
Public GNSS API. More...
#include <zephyr/types.h>
#include <zephyr/device.h>
#include <zephyr/data/navigation.h>
#include <errno.h>
#include <zephyr/syscalls/gnss.h>
Go to the source code of this file.
Data Structures | |
struct | gnss_info |
GNSS info data structure. More... | |
struct | gnss_time |
GNSS time data structure. More... | |
struct | gnss_driver_api |
GNSS API structure. More... | |
struct | gnss_data |
GNSS data structure. More... | |
struct | gnss_data_callback |
GNSS callback structure. More... | |
struct | gnss_satellite |
GNSS satellite structure. More... | |
struct | gnss_satellites_callback |
GNSS callback structure. More... | |
Macros | |
#define | GNSS_DATA_CALLBACK_DEFINE(_dev, _callback) |
Register a callback structure for GNSS data published. | |
#define | GNSS_SATELLITES_CALLBACK_DEFINE(_dev, _callback) |
Register a callback structure for GNSS satellites published. | |
Typedefs | |
typedef int(* | gnss_set_fix_rate_t) (const struct device *dev, uint32_t fix_interval_ms) |
API for setting fix rate. | |
typedef int(* | gnss_get_fix_rate_t) (const struct device *dev, uint32_t *fix_interval_ms) |
API for getting fix rate. | |
typedef int(* | gnss_set_navigation_mode_t) (const struct device *dev, enum gnss_navigation_mode mode) |
API for setting navigation mode. | |
typedef int(* | gnss_get_navigation_mode_t) (const struct device *dev, enum gnss_navigation_mode *mode) |
API for getting navigation mode. | |
typedef uint32_t | gnss_systems_t |
Type storing bitmask of GNSS systems. | |
typedef int(* | gnss_set_enabled_systems_t) (const struct device *dev, gnss_systems_t systems) |
API for enabling systems. | |
typedef int(* | gnss_get_enabled_systems_t) (const struct device *dev, gnss_systems_t *systems) |
API for getting enabled systems. | |
typedef int(* | gnss_get_supported_systems_t) (const struct device *dev, gnss_systems_t *systems) |
API for getting enabled systems. | |
typedef void(* | gnss_data_callback_t) (const struct device *dev, const struct gnss_data *data) |
Template for GNSS data callback. | |
typedef void(* | gnss_satellites_callback_t) (const struct device *dev, const struct gnss_satellite *satellites, uint16_t size) |
Template for GNSS satellites callback. | |
Functions | |
int | gnss_set_fix_rate (const struct device *dev, uint32_t fix_interval_ms) |
Set the GNSS fix rate. | |
int | gnss_get_fix_rate (const struct device *dev, uint32_t *fix_interval_ms) |
Get the GNSS fix rate. | |
int | gnss_set_navigation_mode (const struct device *dev, enum gnss_navigation_mode mode) |
Set the GNSS navigation mode. | |
int | gnss_get_navigation_mode (const struct device *dev, enum gnss_navigation_mode *mode) |
Get the GNSS navigation mode. | |
int | gnss_set_enabled_systems (const struct device *dev, gnss_systems_t systems) |
Set enabled GNSS systems. | |
int | gnss_get_enabled_systems (const struct device *dev, gnss_systems_t *systems) |
Get enabled GNSS systems. | |
int | gnss_get_supported_systems (const struct device *dev, gnss_systems_t *systems) |
Get supported GNSS systems. | |
Public GNSS API.