16 #ifndef SURGSIM_DEVICES_LABJACK_LINUX_LABJACKTYPECONVERTERS_H
17 #define SURGSIM_DEVICES_LABJACK_LINUX_LABJACKTYPECONVERTERS_H
37 double doubleFromChars(
const std::array<unsigned char, MAXIMUM_BUFFER>& bytes,
int startIndex);
46 uint32_t
uint32FromChars(
const std::array<unsigned char, LabJack::MAXIMUM_BUFFER> &bytes,
int startIndex,
int count);
54 uint16_t
uint16FromChars(
const std::array<unsigned char, LabJack::MAXIMUM_BUFFER> &bytes,
int startIndex,
int count);
60 #endif // SURGSIM_DEVICES_LABJACK_LINUX_LABJACKTYPECONVERTERS_H
Definition: DriveElementFromInputBehavior.cpp:27
uint16_t uint16FromChars(const std::array< unsigned char, LabJack::MAXIMUM_BUFFER > &bytes, int startIndex, int count)
Converts an array of bytes to a uint16_t, with the least significant byte at startIndex.
Definition: LabJackTypeConverters.cpp:55
uint32_t uint32FromChars(const std::array< unsigned char, LabJack::MAXIMUM_BUFFER > &bytes, int startIndex, int count)
Converts an array of bytes to a uint32_t, with the least significant byte at startIndex, and the most significant byte at startIndex + byteCount - 1.
Definition: LabJackTypeConverters.cpp:41
double doubleFromChars(const std::array< unsigned char, MAXIMUM_BUFFER > &bytes, int startIndex)
Converts an eight byte array to a floating point double value.
Definition: LabJackTypeConverters.cpp:26