OpenHantek
Public Member Functions
Hantek::BulkSetSamplerate2250 Class Reference

The DSO-2250 BulkCode::ESETTRIGGERORSAMPLERATE builder. More...

#include <bulkStructs.h>

Inheritance diagram for Hantek::BulkSetSamplerate2250:
BulkCommand

Public Member Functions

 BulkSetSamplerate2250 ()
 Sets the data array to the default values.
 
 BulkSetSamplerate2250 (bool fastRate, bool downsampling=false, uint16_t samplerate=0)
 Sets the data bytes to the specified values. More...
 
bool getFastRate ()
 Get the fastRate state in ESamplerateBits. More...
 
void setFastRate (bool fastRate)
 Set the fastRate in ESamplerateBits to the given state. More...
 
bool getDownsampling ()
 Get the downsampling state in ESamplerateBits. More...
 
void setDownsampling (bool downsampling)
 Set the downsampling in ESamplerateBits to the given state. More...
 
uint16_t getSamplerate ()
 Get the Samplerate value. More...
 
void setSamplerate (uint16_t samplerate)
 Set the Samplerate to the given value. 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 DSO-2250 BulkCode::ESETTRIGGERORSAMPLERATE builder.

Constructor & Destructor Documentation

◆ BulkSetSamplerate2250()

Hantek::BulkSetSamplerate2250::BulkSetSamplerate2250 ( bool  fastRate,
bool  downsampling = false,
uint16_t  samplerate = 0 
)

Sets the data bytes to the specified values.

Parameters
fastRateThe fastRate state (ESamplerateBits).
downsamplingThe downsampling state (ESamplerateBits).
samplerateThe Samplerate value.

Member Function Documentation

◆ getDownsampling()

bool Hantek::BulkSetSamplerate2250::getDownsampling ( )

Get the downsampling state in ESamplerateBits.

Returns
The downsampling state.

◆ getFastRate()

bool Hantek::BulkSetSamplerate2250::getFastRate ( )

Get the fastRate state in ESamplerateBits.

Returns
The fastRate state.

◆ getSamplerate()

uint16_t Hantek::BulkSetSamplerate2250::getSamplerate ( )

Get the Samplerate value.

Returns
The Samplerate value.

◆ setDownsampling()

void Hantek::BulkSetSamplerate2250::setDownsampling ( bool  downsampling)

Set the downsampling in ESamplerateBits to the given state.

Parameters
downsamplingThe new downsampling state.

◆ setFastRate()

void Hantek::BulkSetSamplerate2250::setFastRate ( bool  fastRate)

Set the fastRate in ESamplerateBits to the given state.

Parameters
fastRateThe new fastRate state.

◆ setSamplerate()

void Hantek::BulkSetSamplerate2250::setSamplerate ( uint16_t  samplerate)

Set the Samplerate to the given value.

Parameters
samplerateThe new Samplerate value.

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