-
Notifications
You must be signed in to change notification settings - Fork 2
/
ublox_define.h
83 lines (68 loc) · 3.15 KB
/
ublox_define.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
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
#ifndef UBLOX_DEFINE_H_
#define UBLOX_DEFINE_H_
#define SYNC_WORD_1 0xB5
#define SYNC_WORD_2 0x62
#define UBX_I2C_ACK_SIZE 10
#define UBX_I2C_POSLLH_ACK_SZIE 38
#define UBX_I2C_NAV_SAT_ACK_SIZE 253
#define UBX_I2C_NAV_AOP_ACK_SIZE 26
#define UBX_I2C_NAV_STATUS_ACK_SIZE 26
#define UBX_I2C_NAV_PVT_ACK_SIZE 98
const char RMC_OFF[] = { 0XB5, 0X62, 0X06, 0X01, 0X08, 0X00, 0XF0, 0X04, 0X00,
0X00, 0X00, 0X00, 0X00, 0X00 };
const char VTG_OFF[] = { 0XB5, 0X62, 0X06, 0X01, 0X08, 0X00, 0XF0, 0X05, 0X00,
0X00, 0X00, 0X00, 0X00, 0X00 };
const char GSA_OFF[] = { 0XB5, 0X62, 0X06, 0X01, 0X08, 0X00, 0XF0, 0X02, 0X00,
0X00, 0X00, 0X00, 0X00, 0X00 };
const char GSV_OFF[] = { 0XB5, 0X62, 0X06, 0X01, 0X08, 0X00, 0XF0, 0X03, 0X00,
0X00, 0X00, 0X00, 0X00, 0X00 };
const char GLL_OFF[] = { 0XB5, 0X62, 0X06, 0X01, 0X08, 0X00, 0XF0, 0X01, 0X00,
0X00, 0X00, 0X00, 0X00, 0X00 };
const char GGA_OFF[] = { 0XB5, 0X62, 0X06, 0X01, 0X08, 0X00, 0XF0, 0X00, 0X00,
0X00, 0X00, 0X00, 0X00, 0X00, 0XFF, 0X23 };
const char UBX_PM2[] = {
0XB5, 0X62, 0X06, 0x3B, 0x30, 0x00, //Header
0x02, //version
0x00, //res
0x00, //maxStartupStateDur
0x00, //res
0b11100000, 0b00010000, 0b00000000,
0x00, //flag
0x00, 0x00, 0x00,
0x00, //updatePeriod
0x00, 0x00, 0x00,
0x00, //searchPeriod
0x00, 0x00, 0x00,
0x00, //gridOffset
0x00,
0x00, //onTime
0x00,
0x00, //minAcqTime
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, //res
0x00, 0x00, 0x00, 0x00 //extintInactivityMs
};
const char CFG_CFG_CLEAR[] = { 0xB5, 0x62, 0x06, 0x09, 0x0D, 0x00, //Header
0x1F, 0x1F, 0x00, 0x00, //clearMask
0x00, 0x00, 0x00, 0x00, //saveMask
0x00, 0x00, 0x00, 0x00, //loadMask
0x01 //deviceMask
};
const char CFG_CFG_SAVE[] = { 0xB5, 0x62, 0x06, 0x09, 0x0D, 0x00, //Header
0x00, 0x00, 0x00, 0x00, //clearMask
0x1F, 0x1F, 0x00, 0x00, //saveMask
0x00, 0x00, 0x00, 0x00, //loadMask
0x01 //deviceMask
};
const char CFG_CFG_LOAD[] = { 0xB5, 0x62, 0x06, 0x09, 0x0D, 0x00, //Header
0x00, 0x00, 0x00, 0x00, //clearMask
0x00, 0x00, 0x00, 0x00, //saveMask
0x1F, 0x1F, 0x00, 0x00, //loadMask
0x01 //deviceMask
};
const char NAV_PVT_ENABLE_1HZ[] = { 0xB5, 0x62, 0x06, 0x01, 0x03, 0x00, //Header
0x01, 0x07, 0x01 };
const char ZOE_M8Q_DCDC_ENABLE[] = { 0xB5, 0x62, 0x06, 0x41, 0x0C, 0x00, 0x00,
0x00, 0x03, 0x1F, 0xC5, 0x90, 0xE1, 0x9F,
0xFF, 0xFF, 0xFE, 0xFF };
#endif /* UBLOX_DEFINE_H_ */