-
Notifications
You must be signed in to change notification settings - Fork 0
/
quectel_gps.h
45 lines (26 loc) · 888 Bytes
/
quectel_gps.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#ifndef QUECTEL_GPS_H_
#define QUECTEL_GPS_H_
#include <stdint.h>
#include <ti/drivers/UART.h>
#include <ti/drivers/PIN.h>
typedef struct
{
int32_t latitude;
int32_t longitude;
int32_t height;
uint8_t satellites_number;
uint8_t navigation_statue;
uint8_t HDOP;
uint8_t ack;
uint8_t gps_start_state;
} quectel_gps_data_t;
typedef void (*quectel_gps_callback)(quectel_gps_data_t data);
void set_quectel_gps_callback(quectel_gps_callback callback);
void set_quectel_gps_gpio_instance(PIN_Handle pinHandleInstance);
void set_quectel_gps_uart_instance(UART_Handle uartInstatnce);
uint8_t set_quectel_gps_power_on(uint16_t wait);
void set_quectel_gps_power_off();
uint8_t set_quectel_gps_sbas_disable(uint16_t wait);
uint8_t set_quectel_gps_nmea_off_gga_only(uint16_t wait);
void quectel_gps_nmea_input(char data);
#endif /* QUECTEL_GPS_H_ */