OpenHantek
Public Member Functions
Hantek::ControlSetRelays Struct Reference
Inheritance diagram for Hantek::ControlSetRelays:
ControlCommand

Public Member Functions

 ControlSetRelays (bool ch1Below1V=false, bool ch1Below100mV=false, bool ch1CouplingDC=false, bool ch2Below1V=false, bool ch2Below100mV=false, bool ch2CouplingDC=false, bool triggerExt=false)
 Sets all relay states. More...
 
bool getBelow1V (ChannelID channel)
 Get the below 1 V relay state for the given channel. More...
 
void setBelow1V (ChannelID channel, bool below)
 Set the below 1 V relay for the given channel. More...
 
bool getBelow100mV (ChannelID channel)
 Get the below 1 V relay state for the given channel. More...
 
void setBelow100mV (ChannelID channel, bool below)
 Set the below 100 mV relay for the given channel. More...
 
bool getCoupling (ChannelID channel)
 Get the coupling relay state for the given channel. More...
 
void setCoupling (ChannelID channel, bool dc)
 Set the coupling relay for the given channel. More...
 
bool getTrigger ()
 Get the external trigger relay state. More...
 
void setTrigger (bool ext)
 Set the external trigger relay. More...
 

Additional Inherited Members

- Data Fields inherited from ControlCommand
bool pending = false
 
uint8_t code
 
uint8_t value = 0
 
ControlCommandnext = nullptr
 
- Protected Member Functions inherited from ControlCommand
 ControlCommand (Hantek::ControlCode code, unsigned size)
 

Constructor & Destructor Documentation

◆ ControlSetRelays()

Hantek::ControlSetRelays::ControlSetRelays ( bool  ch1Below1V = false,
bool  ch1Below100mV = false,
bool  ch1CouplingDC = false,
bool  ch2Below1V = false,
bool  ch2Below100mV = false,
bool  ch2CouplingDC = false,
bool  triggerExt = false 
)

Sets all relay states.

Parameters
ch1Below1VSets the state of the Channel 1 below 1 V relay.
ch1Below100mVSets the state of the Channel 1 below 100 mV relay.
ch1CouplingDCSets the state of the Channel 1 coupling relay.
ch2Below1VSets the state of the Channel 2 below 1 V relay.
ch2Below100mVSets the state of the Channel 2 below 100 mV relay.
ch2CouplingDCSets the state of the Channel 2 coupling relay.
triggerExtSets the state of the external trigger relay.

Member Function Documentation

◆ getBelow100mV()

bool Hantek::ControlSetRelays::getBelow100mV ( ChannelID  channel)

Get the below 1 V relay state for the given channel.

Parameters
channelThe channel whose relay state should be returned.
Returns
true, if the gain of the channel is below 1 V.

◆ getBelow1V()

bool Hantek::ControlSetRelays::getBelow1V ( ChannelID  channel)

Get the below 1 V relay state for the given channel.

Parameters
channelThe channel whose relay state should be returned.
Returns
true, if the gain of the channel is below 1 V.

◆ getCoupling()

bool Hantek::ControlSetRelays::getCoupling ( ChannelID  channel)

Get the coupling relay state for the given channel.

Parameters
channelThe channel whose relay state should be returned.
Returns
true, if the coupling of the channel is DC.

◆ getTrigger()

bool Hantek::ControlSetRelays::getTrigger ( )

Get the external trigger relay state.

Returns
true, if the trigger is external (EXT-Connector).

◆ setBelow100mV()

void Hantek::ControlSetRelays::setBelow100mV ( ChannelID  channel,
bool  below 
)

Set the below 100 mV relay for the given channel.

Parameters
channelThe channel that should be set.
belowtrue, if the gain of the channel should be below 100 mV.

◆ setBelow1V()

void Hantek::ControlSetRelays::setBelow1V ( ChannelID  channel,
bool  below 
)

Set the below 1 V relay for the given channel.

Parameters
channelThe channel that should be set.
belowtrue, if the gain of the channel should be below 1 V.

◆ setCoupling()

void Hantek::ControlSetRelays::setCoupling ( ChannelID  channel,
bool  dc 
)

Set the coupling relay for the given channel.

Parameters
channelThe channel that should be set.
dctrue, if the coupling of the channel should be DC.

◆ setTrigger()

void Hantek::ControlSetRelays::setTrigger ( bool  ext)

Set the external trigger relay.

Parameters
exttrue, if the trigger should be external (EXT-Connector).

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