Firmware SDK
twr_module_gps.h
1 #ifndef _TWR_MODULE_GPS_H
2 #define _TWR_MODULE_GPS_H
3 
4 #include <twr_led.h>
5 #include <twr_sam_m8q.h>
6 
10 
12 
13 typedef enum
14 {
17 
20 
23 
26 
28 
30 
31 typedef enum
32 {
35 
38 
40 
42 
44 
46 
48 
50 
52 
54 
56 
58 
60 
62 
63 typedef void (twr_module_gps_event_handler_t)(twr_module_gps_event_t, void *);
64 
66 
70 
71 bool twr_module_gps_init(void);
72 
76 
77 void twr_module_gps_set_event_handler(twr_module_gps_event_handler_t event_handler, void *event_param);
78 
80 
81 void twr_module_gps_start(void);
82 
84 
85 void twr_module_gps_stop(void);
86 
88 
89 void twr_module_gps_invalidate(void);
90 
95 
97 
102 
104 
109 
111 
116 
118 
123 
125 
128 
130 
131 #endif // _TWR_MODULE_GPS_H
twr_sam_m8q_time_t twr_module_gps_time_t
Time data structure.
void twr_module_gps_set_event_handler(twr_module_gps_event_handler_t event_handler, void *event_param)
Set callback function.
void twr_module_gps_stop(void)
Stop tracking.
bool twr_module_gps_get_altitude(twr_module_gps_altitude_t *altitude)
Get altitude.
bool twr_module_gps_get_quality(twr_module_gps_quality_t *quality)
Get quality.
bool twr_module_gps_init(void)
Initialize HARDWARIO GPS Module.
void twr_module_gps_invalidate(void)
Invalidate navigation data.
twr_sam_m8q_position_t twr_module_gps_position_t
Position data structure.
twr_module_gps_led_t
Virtual LED channels.
void twr_module_gps_start(void)
Start tracking.
const twr_led_driver_t * twr_module_gps_get_led_driver(void)
Get LED driver.
bool twr_module_gps_get_accuracy(twr_module_gps_accuracy_t *accuracy)
Get accuracy.
twr_sam_m8q_quality_t twr_module_gps_quality_t
Quality data structure.
bool twr_module_gps_get_time(twr_module_gps_time_t *time)
Get time.
twr_sam_m8q_altitude_t twr_module_gps_altitude_t
Altitude data structure.
twr_module_gps_event_t
Callback events.
bool twr_module_gps_get_position(twr_module_gps_position_t *position)
Get position.
twr_sam_m8q_accuracy_t twr_module_gps_accuracy_t
Accuracy data structure.
@ TWR_MODULE_GPS_LED_GREEN
LCD green LED channel.
@ TWR_MODULE_GPS_LED_RED
LCD red LED channel.
@ TWR_MODULE_GPS_EVENT_UPDATE
Update event.
@ TWR_MODULE_GPS_EVENT_STOP
Stop event.
@ TWR_MODULE_GPS_EVENT_START
Start event.
@ TWR_MODULE_GPS_EVENT_ERROR
Error event.
LED driver interface.
Definition: twr_led.h:57
Accuracy data structure.
Definition: twr_sam_m8q.h:108
Altitude data structure.
Definition: twr_sam_m8q.h:84
Position data structure.
Definition: twr_sam_m8q.h:72
Quality data structure.
Definition: twr_sam_m8q.h:96
Time data structure.
Definition: twr_sam_m8q.h:48