All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Namespaces | Functions
LabJackChecksums.h File Reference
#include <array>
#include "SurgSim/Devices/LabJack/linux/LabJackConstants.h"
Include dependency graph for LabJackChecksums.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 SurgSim
 
 SurgSim::Device
 
 SurgSim::Device::LabJack
 A collection of checksum functions specifically tailored for the labjackusb driver.
 

Functions

unsigned char SurgSim::Device::LabJack::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 with the low-level LabJack driver. More...
 
uint16_t SurgSim::Device::LabJack::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 with the low-level LabJack driver. More...
 
unsigned char SurgSim::Device::LabJack::extendedChecksum8 (const std::array< unsigned char, MAXIMUM_BUFFER > &bytes)
 Calculates an 8-bit 1's complement unsigned checksum specifically for extended command communication with the low-level LabJack driver. More...
 
void SurgSim::Device::LabJack::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 the low-level LabJack driver, and stores the result in the buffer. More...
 
void SurgSim::Device::LabJack::extendedChecksum (std::array< unsigned char, MAXIMUM_BUFFER > *bytes, int count)
 Performs the 1's complement unsigned checksums required for extended command communication with the low-level LabJack driver, and stores the results in the buffer. More...