opensurgsim
Public Member Functions | Public Attributes | List of all members
SurgSim::Devices::LabJackScaffold::DeviceData Struct Reference

The per-device data. More...

Public Member Functions

 DeviceData (LabJackDevice *device, std::unique_ptr< Handle > &&handle)
 Initialize the data, creating a thread.
 
 DeviceData (LabJackDevice *device, std::unique_ptr< Handle > &&handle)
 Initialize the data, creating a thread.
 

Public Attributes

LabJackDevice *const deviceObject
 The corresponding device object.
 
std::unique_ptr< LabJackThreadthread
 Processing thread.
 
std::unique_ptr< HandledeviceHandle
 Device handle to read from.
 
const std::unordered_set< int > digitalInputChannels
 The channels read for digital inputs.
 
const std::unordered_set< int > digitalOutputChannels
 The channels set for digital outputs.
 
const std::unordered_set< int > timerInputChannels
 The timer channels that provide inputs.
 
const std::unordered_set< int > timerOutputChannels
 The timer channels set for timer outputs (e.g., PWM outputs).
 
const std::unordered_map< int, LabJack::AnalogInputSettingsanalogInputs
 The analog inputs.
 
const std::unordered_set< int > analogOutputChannels
 The channels set for analog outputs.
 
std::unordered_map< int, int > digitalOutputIndices
 The DataGroup indices for the digital outputs.
 
std::unordered_map< int, int > digitalInputIndices
 The DataGroup indices for the digital inputs.
 
std::unordered_map< int, int > timerOutputIndices
 The DataGroup indices for the timer outputs.
 
std::unordered_map< int, int > timerInputIndices
 The DataGroup indices for the timer inputs.
 
std::unordered_map< int, int > analogOutputIndices
 The DataGroup indices for the analog outputs.
 
std::unordered_map< int, int > analogInputIndices
 The DataGroup indices for the analog inputs.
 
bool cachedOutputIndices
 True if the output indices have been cached.
 
double calibration [40]
 Calibration constants. The meaning of each entry is specific to the model (i.e., LabJack::Model).
 
bool configured
 True if the device has been successfully configured.
 

Detailed Description

The per-device data.


The documentation for this struct was generated from the following file: