-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgps_conf.h
More file actions
116 lines (92 loc) · 2.63 KB
/
gps_conf.h
File metadata and controls
116 lines (92 loc) · 2.63 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
/**
********************************************************************************
* @file gps_conf.h
* @author Embedded Area
* @date Jan 9, 2021
* @brief Configuration file of the NEO_6M GPS Module
*
* Configution file of the library.
* There are 6 address frames in single response
* from the module. In default configuration user can be accessed information from
* all of the frames. In case of some specific information access, if there is any
* frame that its elements are not used, it is best to comment out its definition.
* Therefore, its components will be discarded. This will provide enhancement in
* both performance and memory.
* Checksum control is implemented in library, but it is up to user to enable it.
* It is disabled in default.
********************************************************************************
*/
#ifndef INC_GPS_CONF_H_
#define INC_GPS_CONF_H_
#ifdef __cplusplus
extern "C" {
#endif
/************************************
* INCLUDES
************************************/
/************************************
* MACROS AND DEFINES
************************************/
/**
* Comment out to disable an address frame that are not going to be used
*
*/
#define GPRMC_FRAME_PARSE_ON_DEFINED
#define GPVTG_FRAME_PARSE_ON_DEFINED
#define GPGGA_FRAME_PARSE_ON_DEFINED
#define GPGSA_FRAME_PARSE_ON_DEFINED
#define GPGSV_FRAME_PARSE_ON_DEFINED
#define GPGLL_FRAME_PARSE_ON_DEFINED
#ifdef GPRMC_FRAME_PARSE_ON_DEFINED
#define GPRMC_FRAME_PARSE_ON 1
#else
#define GPRMC_FRAME_PARSE_ON 0
#endif
#ifdef GPVTG_FRAME_PARSE_ON_DEFINED
#define GPVTG_FRAME_PARSE_ON 1
#else
#define GPVTG_FRAME_PARSE_ON 0
#endif
#ifdef GPGGA_FRAME_PARSE_ON_DEFINED
#define GPGGA_FRAME_PARSE_ON 1
#else
#define GPGGA_FRAME_PARSE_ON 0
#endif
#ifdef GPGSA_FRAME_PARSE_ON_DEFINED
#define GPGSA_FRAME_PARSE_ON 1
#else
#define GPGSA_FRAME_PARSE_ON 0
#endif
#ifdef GPGSV_FRAME_PARSE_ON_DEFINED
#define GPGSV_FRAME_PARSE_ON 1
#else
#define GPGSV_FRAME_PARSE_ON 0
#endif
#ifdef GPGLL_FRAME_PARSE_ON_DEFINED
#define GPGLL_FRAME_PARSE_ON 1
#else
#define GPGLL_FRAME_PARSE_ON 0
#endif
/**
* Comment out to enable checksum control of the frames
*
*/
//#define GPS_CHECKSUM_CONTROL_ON_DEFINED
#ifdef GPS_CHECKSUM_CONTROL_ON_DEFINED
#define GPS_CHECKSUM_CONTROL_ON 1
#else
#define GPS_CHECKSUM_CONTROL_ON 0
#endif
/************************************
* TYPEDEFS
************************************/
/************************************
* EXPORTED VARIABLES
************************************/
/************************************
* GLOBAL FUNCTION PROTOTYPES
************************************/
#ifdef __cplusplus
}
#endif
#endif