Firmware SDK
|
Driver for HARDWARIO GPS Module. More...
Typedefs | |
typedef twr_sam_m8q_time_t | twr_module_gps_time_t |
Time data structure. | |
typedef twr_sam_m8q_position_t | twr_module_gps_position_t |
Position data structure. | |
typedef twr_sam_m8q_altitude_t | twr_module_gps_altitude_t |
Altitude data structure. | |
typedef twr_sam_m8q_quality_t | twr_module_gps_quality_t |
Quality data structure. | |
typedef twr_sam_m8q_accuracy_t | twr_module_gps_accuracy_t |
Accuracy data structure. | |
Enumerations | |
enum | twr_module_gps_event_t { TWR_MODULE_GPS_EVENT_ERROR = 0 , TWR_MODULE_GPS_EVENT_START = 1 , TWR_MODULE_GPS_EVENT_UPDATE = 2 , TWR_MODULE_GPS_EVENT_STOP = 3 } |
Callback events. More... | |
enum | twr_module_gps_led_t { TWR_MODULE_GPS_LED_RED = 0 , TWR_MODULE_GPS_LED_GREEN = 1 } |
Virtual LED channels. More... | |
Functions | |
bool | twr_module_gps_init (void) |
Initialize HARDWARIO GPS Module. More... | |
void | twr_module_gps_set_event_handler (twr_module_gps_event_handler_t event_handler, void *event_param) |
Set callback function. More... | |
void | twr_module_gps_start (void) |
Start tracking. | |
void | twr_module_gps_stop (void) |
Stop tracking. | |
void | twr_module_gps_invalidate (void) |
Invalidate navigation data. | |
bool | twr_module_gps_get_time (twr_module_gps_time_t *time) |
Get time. More... | |
bool | twr_module_gps_get_position (twr_module_gps_position_t *position) |
Get position. More... | |
bool | twr_module_gps_get_altitude (twr_module_gps_altitude_t *altitude) |
Get altitude. More... | |
bool | twr_module_gps_get_quality (twr_module_gps_quality_t *quality) |
Get quality. More... | |
bool | twr_module_gps_get_accuracy (twr_module_gps_accuracy_t *accuracy) |
Get accuracy. More... | |
const twr_led_driver_t * | twr_module_gps_get_led_driver (void) |
Get LED driver. More... | |
Driver for HARDWARIO GPS Module.
Callback events.
Enumerator | |
---|---|
TWR_MODULE_GPS_EVENT_ERROR | Error event. |
TWR_MODULE_GPS_EVENT_START | Start event. |
TWR_MODULE_GPS_EVENT_UPDATE | Update event. |
TWR_MODULE_GPS_EVENT_STOP | Stop event. |
Definition at line 13 of file twr_module_gps.h.
enum twr_module_gps_led_t |
Virtual LED channels.
Enumerator | |
---|---|
TWR_MODULE_GPS_LED_RED | LCD red LED channel. |
TWR_MODULE_GPS_LED_GREEN | LCD green LED channel. |
Definition at line 31 of file twr_module_gps.h.
bool twr_module_gps_get_accuracy | ( | twr_module_gps_accuracy_t * | accuracy | ) |
Get accuracy.
[out] | accuracy | Accuracy data structure |
Definition at line 101 of file twr_module_gps.c.
bool twr_module_gps_get_altitude | ( | twr_module_gps_altitude_t * | altitude | ) |
Get altitude.
[out] | altitude | Altitude data structure |
Definition at line 91 of file twr_module_gps.c.
const twr_led_driver_t* twr_module_gps_get_led_driver | ( | void | ) |
bool twr_module_gps_get_position | ( | twr_module_gps_position_t * | position | ) |
Get position.
[out] | position | Position data structure |
Definition at line 86 of file twr_module_gps.c.
bool twr_module_gps_get_quality | ( | twr_module_gps_quality_t * | quality | ) |
Get quality.
[out] | quality | Quality data structure |
Definition at line 96 of file twr_module_gps.c.
bool twr_module_gps_get_time | ( | twr_module_gps_time_t * | time | ) |
Get time.
[out] | time | Time data structure |
Definition at line 81 of file twr_module_gps.c.
bool twr_module_gps_init | ( | void | ) |
Initialize HARDWARIO GPS Module.
Definition at line 27 of file twr_module_gps.c.
void twr_module_gps_set_event_handler | ( | twr_module_gps_event_handler_t | event_handler, |
void * | event_param | ||
) |
Set callback function.
[in] | event_handler | Function address |
[in] | event_param | Optional event parameter (can be NULL) |
Definition at line 60 of file twr_module_gps.c.