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

Public Member Functions

 ControlSetOffset (uint16_t channel1, uint16_t channel2, uint16_t trigger)
 Sets the offsets to the given values. More...
 
uint16_t getChannel (ChannelID channel)
 Get the offset for the given channel. More...
 
void setChannel (ChannelID channel, uint16_t offset)
 Set the offset for the given channel. More...
 
uint16_t getTrigger ()
 Get the trigger level. More...
 
void setTrigger (uint16_t level)
 Set the trigger level. 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

◆ ControlSetOffset()

Hantek::ControlSetOffset::ControlSetOffset ( uint16_t  channel1,
uint16_t  channel2,
uint16_t  trigger 
)

Sets the offsets to the given values.

Parameters
channel1The offset for channel 1.
channel2The offset for channel 2.
triggerThe offset for ext. trigger.

Member Function Documentation

◆ getChannel()

uint16_t Hantek::ControlSetOffset::getChannel ( ChannelID  channel)

Get the offset for the given channel.

Parameters
channelThe channel whose offset should be returned.
Returns
The channel offset value.

◆ getTrigger()

uint16_t Hantek::ControlSetOffset::getTrigger ( )

Get the trigger level.

Returns
The trigger level value.

◆ setChannel()

void Hantek::ControlSetOffset::setChannel ( ChannelID  channel,
uint16_t  offset 
)

Set the offset for the given channel.

Parameters
channelThe channel that should be set.
offsetThe new channel offset value.

◆ setTrigger()

void Hantek::ControlSetOffset::setTrigger ( uint16_t  level)

Set the trigger level.

Parameters
levelThe new trigger level value.

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