OpenHantek
Public Member Functions
Hantek::BulkSetTriggerAndSamplerate Class Reference

The BulkCode::SETTRIGGERANDSAMPLERATE builder. More...

#include <bulkStructs.h>

Inheritance diagram for Hantek::BulkSetTriggerAndSamplerate:
BulkCommand

Public Member Functions

 BulkSetTriggerAndSamplerate ()
 Sets the data array to the default values.
 
 BulkSetTriggerAndSamplerate (uint16_t downsampler, uint32_t triggerPosition, uint8_t triggerSource=0, uint8_t recordLength=0, uint8_t samplerateId=0, bool downsamplingMode=true, uint8_t usedChannels=0, bool fastRate=false, uint8_t triggerSlope=0)
 Sets the data bytes to the specified values. More...
 
uint8_t getTriggerSource ()
 Get the triggerSource value in Tsr1Bits. More...
 
void setTriggerSource (uint8_t value)
 Set the triggerSource in Tsr1Bits to the given value. More...
 
uint8_t getRecordLength ()
 Get the recordLength value in Tsr1Bits. More...
 
void setRecordLength (uint8_t value)
 Set the recordLength in Tsr1Bits to the given value. More...
 
uint8_t getSamplerateId ()
 Get the samplerateId value in Tsr1Bits. More...
 
void setSamplerateId (uint8_t value)
 Set the samplerateId in Tsr1Bits to the given value. More...
 
bool getDownsamplingMode ()
 Get the downsamplerMode value in Tsr1Bits. More...
 
void setDownsamplingMode (bool downsampling)
 Set the downsamplerMode in Tsr1Bits to the given value. More...
 
uint8_t getUsedChannels ()
 Get the usedChannels value in Tsr2Bits. More...
 
void setUsedChannels (uint8_t value)
 Set the usedChannels in Tsr2Bits to the given value. More...
 
bool getFastRate ()
 Get the fastRate state in Tsr2Bits. More...
 
void setFastRate (bool fastRate)
 Set the fastRate in Tsr2Bits to the given state. More...
 
uint8_t getTriggerSlope ()
 Get the triggerSlope value in Tsr2Bits. More...
 
void setTriggerSlope (uint8_t slope)
 Set the triggerSlope in Tsr2Bits to the given value. More...
 
uint16_t getDownsampler ()
 Get the Downsampler value. More...
 
void setDownsampler (uint16_t downsampler)
 Set the Downsampler to the given value. More...
 
uint32_t getTriggerPosition ()
 Get the TriggerPosition value. More...
 
void setTriggerPosition (uint32_t position)
 Set the TriggerPosition 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 BulkCode::SETTRIGGERANDSAMPLERATE builder.

Constructor & Destructor Documentation

◆ BulkSetTriggerAndSamplerate()

Hantek::BulkSetTriggerAndSamplerate::BulkSetTriggerAndSamplerate ( uint16_t  downsampler,
uint32_t  triggerPosition,
uint8_t  triggerSource = 0,
uint8_t  recordLength = 0,
uint8_t  samplerateId = 0,
bool  downsamplingMode = true,
uint8_t  usedChannels = 0,
bool  fastRate = false,
uint8_t  triggerSlope = 0 
)

Sets the data bytes to the specified values.

Parameters
downsamplerThe Downsampler value.
triggerPositionThe trigger position value.
triggerSourceThe trigger source id (Tsr1).
recordLengthThe record length id (Tsr1).
samplerateIdThe samplerateId value (Tsr1).
downsamplingModeThe downsamplingMode value (Tsr1).
usedChannelsThe enabled channels (Tsr2).
fastRateThe fastRate state (Tsr2).
triggerSlopeThe triggerSlope value (Tsr2).

Member Function Documentation

◆ getDownsampler()

uint16_t Hantek::BulkSetTriggerAndSamplerate::getDownsampler ( )

Get the Downsampler value.

Returns
The Downsampler value.

◆ getDownsamplingMode()

bool Hantek::BulkSetTriggerAndSamplerate::getDownsamplingMode ( )

Get the downsamplerMode value in Tsr1Bits.

Returns
The downsamplerMode value.

◆ getFastRate()

bool Hantek::BulkSetTriggerAndSamplerate::getFastRate ( )

Get the fastRate state in Tsr2Bits.

Returns
The fastRate state.

◆ getRecordLength()

uint8_t Hantek::BulkSetTriggerAndSamplerate::getRecordLength ( )

Get the recordLength value in Tsr1Bits.

Returns
The ::RecordLengthId value.

◆ getSamplerateId()

uint8_t Hantek::BulkSetTriggerAndSamplerate::getSamplerateId ( )

Get the samplerateId value in Tsr1Bits.

Returns
The samplerateId value.

◆ getTriggerPosition()

uint32_t Hantek::BulkSetTriggerAndSamplerate::getTriggerPosition ( )

Get the TriggerPosition value.

Returns
The horizontal trigger position.

◆ getTriggerSlope()

uint8_t Hantek::BulkSetTriggerAndSamplerate::getTriggerSlope ( )

Get the triggerSlope value in Tsr2Bits.

Returns
The triggerSlope value.

◆ getTriggerSource()

uint8_t Hantek::BulkSetTriggerAndSamplerate::getTriggerSource ( )

Get the triggerSource value in Tsr1Bits.

Returns
The triggerSource value.

◆ getUsedChannels()

uint8_t Hantek::BulkSetTriggerAndSamplerate::getUsedChannels ( )

Get the usedChannels value in Tsr2Bits.

Returns
The usedChannels value.

◆ setDownsampler()

void Hantek::BulkSetTriggerAndSamplerate::setDownsampler ( uint16_t  downsampler)

Set the Downsampler to the given value.

Parameters
downsamplerThe new Downsampler value.

◆ setDownsamplingMode()

void Hantek::BulkSetTriggerAndSamplerate::setDownsamplingMode ( bool  downsampling)

Set the downsamplerMode in Tsr1Bits to the given value.

Parameters
downsamplingThe new downsamplerMode value.

◆ setFastRate()

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

Set the fastRate in Tsr2Bits to the given state.

Parameters
fastRateThe new fastRate state.

◆ setRecordLength()

void Hantek::BulkSetTriggerAndSamplerate::setRecordLength ( uint8_t  value)

Set the recordLength in Tsr1Bits to the given value.

Parameters
valueThe new ::RecordLengthId value.

◆ setSamplerateId()

void Hantek::BulkSetTriggerAndSamplerate::setSamplerateId ( uint8_t  value)

Set the samplerateId in Tsr1Bits to the given value.

Parameters
valueThe new samplerateId value.

◆ setTriggerPosition()

void Hantek::BulkSetTriggerAndSamplerate::setTriggerPosition ( uint32_t  position)

Set the TriggerPosition to the given value.

Parameters
positionThe new horizontal trigger position.

◆ setTriggerSlope()

void Hantek::BulkSetTriggerAndSamplerate::setTriggerSlope ( uint8_t  slope)

Set the triggerSlope in Tsr2Bits to the given value.

Parameters
slopeThe new triggerSlope value.

◆ setTriggerSource()

void Hantek::BulkSetTriggerAndSamplerate::setTriggerSource ( uint8_t  value)

Set the triggerSource in Tsr1Bits to the given value.

Parameters
valueThe new triggerSource value.

◆ setUsedChannels()

void Hantek::BulkSetTriggerAndSamplerate::setUsedChannels ( uint8_t  value)

Set the usedChannels in Tsr2Bits to the given value.

Parameters
valueThe new usedChannels value.

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