29 #ifndef UBLOX_MSGS_CHECKSUM_H 30 #define UBLOX_MSGS_CHECKSUM_H 48 for(uint32_t i = 0; i < size; ++i)
50 ck_a = ck_a + data[i];
65 uint8_t *byte =
reinterpret_cast<uint8_t *
>(&checksum);
72 #endif // UBLOX_MSGS_CHECKSUM_H static void calculateChecksum(const uint8_t *data, uint32_t size, uint8_t &ck_a, uint8_t &ck_b)
calculate the checksum of a u-blox_message