OpenHantek
Public Types | Public Member Functions | Data Fields
Dso::ControlSpecification Struct Reference

Stores the specifications of the currently connected device. More...

#include <controlspecification.h>

Public Types

typedef std::vector< unsigned short > VoltageLimit
 The sample values at the top of the screen.
 

Public Member Functions

 ControlSpecification (unsigned channels)
 

Data Fields

const ChannelID channels
 
BulkCode cmdSetChannels = BulkCode::INVALID
 Command for setting used channels.
 
BulkCode cmdSetSamplerate = BulkCode::INVALID
 Command for samplerate settings.
 
BulkCode cmdSetRecordLength = BulkCode::INVALID
 Command for buffer settings.
 
BulkCode cmdSetTrigger = BulkCode::INVALID
 Command for trigger settings.
 
BulkCode cmdSetPretrigger = BulkCode::INVALID
 Command for pretrigger settings.
 
BulkCode cmdForceTrigger = BulkCode::FORCETRIGGER
 Command for forcing a trigger event.
 
BulkCode cmdCaptureStart = BulkCode::STARTSAMPLING
 Command for starting the sampling.
 
BulkCode cmdTriggerEnabled = BulkCode::ENABLETRIGGER
 Command for enabling the trigger.
 
BulkCode cmdGetData = BulkCode::GETDATA
 Command for retrieve sample data.
 
BulkCode cmdGetCaptureState = BulkCode::GETCAPTURESTATE
 Command for retrieve the capture state.
 
BulkCode cmdSetGain = BulkCode::SETGAIN
 Command for setting the gain.
 
ControlSpecificationSamplerate samplerate
 The samplerate specifications.
 
std::vector< RecordLengthID > bufferDividers
 Samplerate dividers for record lengths.
 
unsigned char sampleSize
 Number of bits per sample.
 
std::vector< FixedSampleRatefixedSampleRates
 For devices that support only fixed sample rates (isFixedSamplerateDevice=true)
 
std::vector< VoltageLimitvoltageLimit
 
std::vector< ControlSpecificationGainLevelgain
 Gain levels.
 
std::vector< SpecialTriggerChannelspecialTriggerChannels
 
std::vector< Coupling > couplings = {Dso::Coupling::DC, Dso::Coupling::AC}
 
std::vector< TriggerMode > triggerModes
 
bool isFixedSamplerateDevice = false
 
bool isSoftwareTriggerDevice = false
 
bool useControlNoBulk = false
 
bool supportsCaptureState = true
 
bool supportsOffset = true
 
bool supportsCouplingRelays = true
 
int fixedUSBinLength = 0
 

Detailed Description

Stores the specifications of the currently connected device.

Field Documentation

◆ triggerModes

std::vector<TriggerMode> Dso::ControlSpecification::triggerModes
Initial value:
= {TriggerMode::HARDWARE_SOFTWARE, TriggerMode::WAIT_FORCE,
TriggerMode::SINGLE}

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