You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 28, 2021. It is now read-only.
//The following consts are used to generate KEY values for the advanced protocol functions of VELGET/SET/DEL
134
-
constuint8_t VAL_SIZE_BIT = 0x01;
135
-
constuint8_t VAL_SIZE_BYTE = 0x02;
134
+
constuint8_t VAL_SIZE_1 = 0x01; //One bit
135
+
constuint8_t VAL_SIZE_8 = 0x02; //One byte
136
+
constuint8_t VAL_SIZE_16 = 0x03; //Two bytes
137
+
constuint8_t VAL_SIZE_32 = 0x04; //Four bytes
138
+
constuint8_t VAL_SIZE_64 = 0x05; //Eight bytes
136
139
137
140
constuint8_t VAL_LAYER_RAM = 0;
138
141
constuint8_t VAL_LAYER_BBR = 1;
139
142
constuint8_t VAL_LAYER_FLASH = 2;
140
143
constuint8_t VAL_LAYER_DEFAULT = 7;
141
144
142
-
constuint8_t VAL_GROUP_I2COUTPROT_SIZE = VAL_SIZE_BIT; //All fields in I2C group are currently 1 bit
145
+
//Below are various Groups, IDs, and sizes for various settings
146
+
//These can be used to call getVal/setVal/delVal
143
147
constuint8_t VAL_GROUP_I2COUTPROT = 0x72;
148
+
constuint8_t VAL_GROUP_I2COUTPROT_SIZE = VAL_SIZE_1; //All fields in I2C group are currently 1 bit
144
149
145
150
constuint8_t VAL_ID_I2COUTPROT_UBX = 0x01;
146
151
constuint8_t VAL_ID_I2COUTPROT_NMEA = 0x02;
147
152
constuint8_t VAL_ID_I2COUTPROT_RTCM3 = 0x03;
148
153
149
-
constuint8_t VAL_GROUP_I2C_SIZE = VAL_SIZE_BYTE; //All fields in I2C group are currently 1 byte
150
154
constuint8_t VAL_GROUP_I2C = 0x51;
155
+
constuint8_t VAL_GROUP_I2C_SIZE = VAL_SIZE_8; //All fields in I2C group are currently 1 byte
151
156
152
157
constuint8_t VAL_ID_I2C_ADDRESS = 0x01;
153
158
@@ -242,7 +247,8 @@ class SFE_UBLOX_GPS
242
247
boolean setSPIOutput(uint8_t comSettings, uint16_t maxWait = 250); //Configure SPI port to output UBX, NMEA, RTCM3 or a combination thereof
243
248
244
249
//General configuration (used only on protocol v27 and higher - ie, ZED-F9P)
245
-
uint8_tgetVal(uint16_t group, uint16_t id, uint8_t size, uint8_t layer = VAL_LAYER_FLASH, uint16_t maxWait = 250); //Returns the value at a given group/id/size location
250
+
uint8_tgetVal8(uint16_t group, uint16_t id, uint8_t size, uint8_t layer = VAL_LAYER_BBR, uint16_t maxWait = 250); //Returns the value at a given group/id/size location
251
+
uint8_tgetVal8(uint32_t keyID, uint8_t layer = VAL_LAYER_BBR, uint16_t maxWait = 250); //Returns the value at a given group/id/size location
246
252
247
253
//Functions used for RTK and base station setup
248
254
boolean getSurveyMode(uint16_t maxWait = 250); //Get the current TimeMode3 settings
0 commit comments