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
voidend(void); //Stop all automatic message processing. Free all used RAM
565
572
@@ -569,6 +576,11 @@ class SFE_UBLOX_GNSS
569
576
voidsetI2CTransactionSize(uint8_t bufferSize);
570
577
uint8_tgetI2CTransactionSize(void);
571
578
579
+
//Control the size of the spi buffer. If the buffer isn't big enough, we'll start to lose bytes
580
+
//That we receive if the buffer is full!
581
+
voidsetSpiTransactionSize(uint8_t bufferSize);
582
+
uint8_tgetSpiTransactionSize(void);
583
+
572
584
//Set the max number of bytes set in a given I2C transaction
573
585
uint8_t i2cTransactionSize = 32; //Default to ATmega328 limit
574
586
@@ -612,6 +624,7 @@ class SFE_UBLOX_GNSS
612
624
613
625
boolean checkUbloxI2C(ubxPacket *incomingUBX, uint8_t requestedClass, uint8_t requestedID); //Method for I2C polling of data, passing any new bytes to process()
614
626
boolean checkUbloxSerial(ubxPacket *incomingUBX, uint8_t requestedClass, uint8_t requestedID); //Method for serial polling of data, passing any new bytes to process()
627
+
boolean checkUbloxSpi(ubxPacket *incomingUBX, uint8_t requestedClass, uint8_t requestedID); //Method for spi polling of data, passing any new bytes to process()
615
628
616
629
// Process the incoming data
617
630
@@ -622,12 +635,13 @@ class SFE_UBLOX_GNSS
622
635
voidprocessUBX(uint8_t incoming, ubxPacket *incomingUBX, uint8_t requestedClass, uint8_t requestedID); //Given a character, file it away into the uxb packet structure
623
636
voidprocessUBXpacket(ubxPacket *msg); //Once a packet has been received and validated, identify this packet's class/id and update internal flags
624
637
625
-
// Send I2C/Serial commands to the module
638
+
// Send I2C/Serial/SPI commands to the module
626
639
627
640
voidcalcChecksum(ubxPacket *msg); //Sets the checksumA and checksumB of a given messages
628
641
sfe_ublox_status_e sendCommand(ubxPacket *outgoingUBX, uint16_t maxWait = defaultMaxWait, boolean expectACKonly = false); //Given a packet and payload, send everything including CRC bytes, return true if we got a response
0 commit comments