OpenHantek
Public Member Functions
Hantek::BulkSetTrigger5200 Class Reference

The DSO-5200/DSO-5200A BulkCode::ESETTRIGGERORSAMPLERATE builder. More...

#include <bulkStructs.h>

Inheritance diagram for Hantek::BulkSetTrigger5200:
BulkCommand

Public Member Functions

 BulkSetTrigger5200 ()
 Sets the data array to the default values.
 
 BulkSetTrigger5200 (uint8_t triggerSource, uint8_t usedChannels, bool fastRate=false, uint8_t triggerSlope=0, uint8_t triggerPulse=0)
 Sets the data bytes to the specified values. More...
 
uint8_t getTriggerSource ()
 Get the triggerSource value in ETsrBits. More...
 
void setTriggerSource (uint8_t value)
 Set the triggerSource in ETsrBits to the given value. More...
 
uint8_t getUsedChannels ()
 Get the usedChannels value in ETsrBits. More...
 
void setUsedChannels (uint8_t value)
 Set the usedChannels in ETsrBits to the given value. More...
 
bool getFastRate ()
 Get the fastRate state in ETsrBits. More...
 
void setFastRate (bool fastRate)
 Set the fastRate in ETsrBits to the given state. More...
 
uint8_t getTriggerSlope ()
 Get the triggerSlope value in ETsrBits. More...
 
void setTriggerSlope (uint8_t slope)
 Set the triggerSlope in ETsrBits to the given value. More...
 
bool getTriggerPulse ()
 Get the triggerPulse state in ETsrBits. More...
 
void setTriggerPulse (bool pulse)
 Set the triggerPulse in ETsrBits to the given state. 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-5200/DSO-5200A BulkCode::ESETTRIGGERORSAMPLERATE builder.

Constructor & Destructor Documentation

◆ BulkSetTrigger5200()

Hantek::BulkSetTrigger5200::BulkSetTrigger5200 ( uint8_t  triggerSource,
uint8_t  usedChannels,
bool  fastRate = false,
uint8_t  triggerSlope = 0,
uint8_t  triggerPulse = 0 
)

Sets the data bytes to the specified values.

Parameters
triggerSourceThe trigger source id.
usedChannelsThe enabled channels.
fastRateThe fastRate state.
triggerSlopeThe triggerSlope value.
triggerPulseThe triggerPulse value.

Member Function Documentation

◆ getFastRate()

bool Hantek::BulkSetTrigger5200::getFastRate ( )

Get the fastRate state in ETsrBits.

Returns
The fastRate state (Already inverted).

◆ getTriggerPulse()

bool Hantek::BulkSetTrigger5200::getTriggerPulse ( )

Get the triggerPulse state in ETsrBits.

Returns
The triggerPulse state.

◆ getTriggerSlope()

uint8_t Hantek::BulkSetTrigger5200::getTriggerSlope ( )

Get the triggerSlope value in ETsrBits.

Returns
The triggerSlope value.

◆ getTriggerSource()

uint8_t Hantek::BulkSetTrigger5200::getTriggerSource ( )

Get the triggerSource value in ETsrBits.

Returns
The ::TriggerSource value.

◆ getUsedChannels()

uint8_t Hantek::BulkSetTrigger5200::getUsedChannels ( )

Get the usedChannels value in ETsrBits.

Returns
The ::UsedChannels value.

◆ setFastRate()

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

Set the fastRate in ETsrBits to the given state.

Parameters
fastRateThe new fastRate state (Automatically inverted).

◆ setTriggerPulse()

void Hantek::BulkSetTrigger5200::setTriggerPulse ( bool  pulse)

Set the triggerPulse in ETsrBits to the given state.

Parameters
pulseThe new triggerPulse state.

◆ setTriggerSlope()

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

Set the triggerSlope in ETsrBits to the given value.

Parameters
slopeThe new triggerSlope value.

◆ setTriggerSource()

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

Set the triggerSource in ETsrBits to the given value.

Parameters
valueThe new ::TriggerSource value.

◆ setUsedChannels()

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

Set the usedChannels in ETsrBits to the given value.

Parameters
valueThe new ::UsedChannels value.

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