DAQ Driver
InputRange Class Reference

The InputRange class Handles controlling the inputrange (V) for induvidual channels. More...

#include <Driver/DriverComponents/InputRange.h>

Inheritance diagram for InputRange:
Collaboration diagram for InputRange:

Public Types

enum  Voltage { _0_1 = SetInputRange::_0_1, _1 = SetInputRange::_1, _10 = SetInputRange::_10 }
 

Public Member Functions

 InputRange (pMessageProcessor messageProcessor)
 
void setInputRange (uint8_t channel, Voltage voltage)
 setInputRange Sets inputrange for channel More...
 
Voltage getInputRange (uint8_t channel)
 getInputRange Gets input range for channel in Volts More...
 
void reset () override
 reset Resets the components More...
 
- Public Member Functions inherited from AbstractDriverComponent
 AbstractDriverComponent (pMessageProcessor messageProcessor)
 

Protected Member Functions

void handleSetInputRangeRecieved (const google::protobuf::Message &message)
 

Private Attributes

std::atomic< Voltagem_inputRangeVoltages [6]
 

Additional Inherited Members

- Protected Attributes inherited from AbstractDriverComponent
pMessageProcessor m_messageProcessor
 

Detailed Description

The InputRange class Handles controlling the inputrange (V) for induvidual channels.

Definition at line 19 of file InputRange.h.

Member Enumeration Documentation

◆ Voltage

Enumerator
_0_1 
_1 
_10 

Definition at line 25 of file InputRange.h.

Constructor & Destructor Documentation

◆ InputRange()

InputRange::InputRange ( pMessageProcessor  messageProcessor)
explicit

Definition at line 3 of file InputRange.cpp.

Member Function Documentation

◆ getInputRange()

InputRange::Voltage InputRange::getInputRange ( uint8_t  channel)

getInputRange Gets input range for channel in Volts

Parameters
channelchannel to get inputrange for
Returns
inputrange in volts

Definition at line 22 of file InputRange.cpp.

◆ handleSetInputRangeRecieved()

void InputRange::handleSetInputRangeRecieved ( const google::protobuf::Message &  message)
protected

Definition at line 32 of file InputRange.cpp.

◆ reset()

void InputRange::reset ( )
overridevirtual

reset Resets the components

Implements AbstractDriverComponent.

Definition at line 26 of file InputRange.cpp.

◆ setInputRange()

void InputRange::setInputRange ( uint8_t  channel,
InputRange::Voltage  voltage 
)

setInputRange Sets inputrange for channel

Parameters
channelchannel to set inputrange for
voltageinput range in Volts

Definition at line 9 of file InputRange.cpp.

Member Data Documentation

◆ m_inputRangeVoltages

std::atomic<Voltage> InputRange::m_inputRangeVoltages[6]
private

Definition at line 56 of file InputRange.h.