GPS Device
Loading...
Searching...
No Matches
neo6.h
Go to the documentation of this file.
1
36
42
43#ifndef NEO6_H__
44#define NEO6_H__
45
46#include "stm32f401re.h"
47#include "stm32f401re_gpio.h"
48#include "stm32f401re_usart.h"
49#include "err.h"
50
57
74
85typedef struct {
86 char lat[16];
87 char lon[16];
88 char ort_height[16];
89 char geoid_sep[16];
90 char time[16];
91 char date[16];
92 char mov_dir[16];
93 char mov_speed[16];
94 char num_sats_used[4];
95 char num_sats_all[4];
96 char fix_type[16];
97 char pdop[16];
98 char hdop[16];
99 char vdop[16];
100 char fix_status[16];
102
132
143
145
152
168
182
191
200
220ERR_te neo6_init_handle(NEO6_CFG_ts *neo6_cfg, NEO6_HANDLE_ts **neo6_handle_o);
221
243ERR_te neo6_run(void);
244
259ERR_te neo6_get_info(NEO6_INFO_ts **neo6_info_o);
260
262
263#endif
264
System-wide error code definitions.
ERR_te
Standard return type used by all public API functions.
Definition err.h:35
ERR_te neo6_deinit_subsys(void)
Deinitializes the NEO-6 subsystem.
Definition neo6.c:246
ERR_te neo6_run(void)
Processes received NMEA data. Must be called periodically.
Definition neo6.c:387
ERR_te neo6_start_subsys(void)
Starts the NEO-6 subsystem.
Definition neo6.c:274
ERR_te neo6_init_handle(NEO6_CFG_ts *neo6_cfg, NEO6_HANDLE_ts **neo6_handle_o)
Initializes the NEO-6 hardware handle.
Definition neo6.c:322
ERR_te neo6_stop_subsys(void)
Stops the NEO-6 subsystem.
Definition neo6.c:298
ERR_te neo6_init_subsys(void)
Initializes the NEO-6 subsystem.
Definition neo6.c:205
ERR_te neo6_get_info(NEO6_INFO_ts **neo6_info_o)
Returns a pointer to the internal GPS data structure.
Definition neo6.c:430
NEO6_MESSAGES_te
NMEA sentence type identifiers.
Definition neo6.h:65
struct neo6_handle_s NEO6_HANDLE_ts
Opaque handle representing the NEO-6 hardware instance.
Definition neo6.h:142
@ GPS_MESSAGE_TXT
Definition neo6.h:72
@ GPS_MESSAGE_GSV
Definition neo6.h:69
@ GPS_MESSAGE_VTG
Definition neo6.h:71
@ GPS_MESSAGE_RMC
Definition neo6.h:70
@ GPS_MESSAGE_GGA
Definition neo6.h:66
@ GPS_MESSAGE_GSA
Definition neo6.h:68
@ GPS_MESSAGE_GLL
Definition neo6.h:67
GPIO_PIN_te
GPIO pin number within a port (0–15).
GPIO_ALTERNATE_FUNCTION_te
GPIO alternate function mapping (AF0–AF15).
USART_BAUD_RATE_te
USART baud rate in bits per second.
STM32F401RE MCU-specific peripheral register definitions and bit position enumerations.
STM32F401RE GPIO driver public API.
STM32F401RE USART driver public API.
GPIO peripheral register map.
Definition stm32f401re.h:95
Configuration structure for initializing a NEO-6 handle.
Definition neo6.h:110
USART_REGDEF_ts * usart_instance
Definition neo6.h:112
GPIO_REGDEF_ts * rx_gpio_port
Definition neo6.h:118
GPIO_REGDEF_ts * tx_gpio_port
Definition neo6.h:124
USART_BAUD_RATE_te usart_baud_rate
Definition neo6.h:115
GPIO_PIN_te rx_gpio_pin
Definition neo6.h:121
GPIO_ALTERNATE_FUNCTION_te gpio_alternate_function
Definition neo6.h:130
GPIO_PIN_te tx_gpio_pin
Definition neo6.h:127
Holds all GPS data fields parsed from incoming NMEA sentences.
Definition neo6.h:85
char pdop[16]
Definition neo6.h:97
char fix_type[16]
Definition neo6.h:96
char mov_dir[16]
Definition neo6.h:92
char hdop[16]
Definition neo6.h:98
char vdop[16]
Definition neo6.h:99
char geoid_sep[16]
Definition neo6.h:89
char fix_status[16]
Definition neo6.h:100
char lon[16]
Definition neo6.h:87
char num_sats_all[4]
Definition neo6.h:95
char num_sats_used[4]
Definition neo6.h:94
char ort_height[16]
Definition neo6.h:88
char time[16]
Definition neo6.h:90
char mov_speed[16]
Definition neo6.h:93
char date[16]
Definition neo6.h:91
char lat[16]
Definition neo6.h:86
USART peripheral register map.
Internal structure representing the NEO-6 hardware instance.
Definition neo6.c:93