Go to the documentation of this file.
16 #ifndef SURGSIM_DEVICES_LABJACK_LINUX_LABJACKCHECKSUMS_H
17 #define SURGSIM_DEVICES_LABJACK_LINUX_LABJACKCHECKSUMS_H
37 unsigned char normalChecksum8(
const std::array<unsigned char, MAXIMUM_BUFFER>& bytes,
int count);
44 uint16_t
extendedChecksum16(
const std::array<unsigned char, MAXIMUM_BUFFER>& bytes,
int count);
50 unsigned char extendedChecksum8(
const std::array<unsigned char, MAXIMUM_BUFFER>& bytes);
57 void normalChecksum(std::array<unsigned char, MAXIMUM_BUFFER>* bytes,
int count);
64 void extendedChecksum(std::array<unsigned char, MAXIMUM_BUFFER>* bytes,
int count);
70 #endif // SURGSIM_DEVICES_LABJACK_LINUX_LABJACKCHECKSUMS_H
void normalChecksum(std::array< unsigned char, MAXIMUM_BUFFER > *bytes, int count)
Performs the 8-bit 1's complement unsigned checksum required for normal command communication with th...
Definition: LabJackChecksums.cpp:62
uint16_t extendedChecksum16(const std::array< unsigned char, MAXIMUM_BUFFER > &bytes, int count)
Calculates a 16-bit 1's complement unsigned checksum specifically for extended command communication ...
Definition: LabJackChecksums.cpp:44
void extendedChecksum(std::array< unsigned char, MAXIMUM_BUFFER > *bytes, int count)
Performs the 1's complement unsigned checksums required for extended command communication with the l...
Definition: LabJackChecksums.cpp:67
Definition: CompoundShapeToGraphics.cpp:29
unsigned char normalChecksum8(const std::array< unsigned char, MAXIMUM_BUFFER > &bytes, int count)
Calculates an 8-bit 1's complement unsigned checksum specifically for normal command communication wi...
Definition: LabJackChecksums.cpp:25
unsigned char extendedChecksum8(const std::array< unsigned char, MAXIMUM_BUFFER > &bytes)
Calculates an 8-bit 1's complement unsigned checksum specifically for extended command communication ...
Definition: LabJackChecksums.cpp:57