OpenHantek
Public Member Functions
Hantek::BulkSetGain Class Reference

The BulkCode::SETGAIN builder. More...

#include <bulkStructs.h>

Inheritance diagram for Hantek::BulkSetGain:
BulkCommand

Public Member Functions

 BulkSetGain ()
 Sets the data array to needed values.
 
 BulkSetGain (uint8_t channel1, uint8_t channel2)
 Sets the gain to the given values. More...
 
uint8_t getGain (ChannelID channel)
 Get the gain for the given channel. More...
 
void setGain (ChannelID channel, uint8_t value)
 Set the gain for the given channel. More...
 

Additional Inherited Members

- Data Fields inherited from BulkCommand
Hantek::BulkCode code
 
bool pending = false
 
BulkCommandnext = nullptr
 
- Protected Member Functions inherited from BulkCommand
 BulkCommand (Hantek::BulkCode code, unsigned size)
 

Detailed Description

The BulkCode::SETGAIN builder.

Constructor & Destructor Documentation

◆ BulkSetGain()

Hantek::BulkSetGain::BulkSetGain ( uint8_t  channel1,
uint8_t  channel2 
)

Sets the gain to the given values.

Parameters
channel1The gain value for channel 1.
channel2The gain value for channel 2.

Member Function Documentation

◆ getGain()

uint8_t Hantek::BulkSetGain::getGain ( ChannelID  channel)

Get the gain for the given channel.

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

◆ setGain()

void Hantek::BulkSetGain::setGain ( ChannelID  channel,
uint8_t  value 
)

Set the gain for the given channel.

Parameters
channelThe channel that should be set.
valueThe new gain value for the channel.

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