OpenHantek
Public Member Functions
Hantek::BulkSetFilter Class Reference

The BULK::SETFILTER builder. More...

#include <bulkStructs.h>

Inheritance diagram for Hantek::BulkSetFilter:
BulkCommand

Public Member Functions

 BulkSetFilter ()
 Sets the data array to the default values.
 
 BulkSetFilter (bool channel1, bool channel2, bool trigger)
 Sets the FilterByte to the given value. More...
 
bool getChannel (ChannelID channel)
 Gets the filtering state of one channel. More...
 
void setChannel (ChannelID channel, bool filtered)
 Enables/disables filtering of one channel. More...
 
bool getTrigger ()
 Gets the filtering state for the trigger. More...
 
void setTrigger (bool filtered)
 Enables/disables filtering for the trigger. 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 BULK::SETFILTER builder.

Constructor & Destructor Documentation

◆ BulkSetFilter()

Hantek::BulkSetFilter::BulkSetFilter ( bool  channel1,
bool  channel2,
bool  trigger 
)

Sets the FilterByte to the given value.

Parameters
channel1true if channel 1 is filtered.
channel2true if channel 2 is filtered.
triggertrue if trigger is filtered.

Member Function Documentation

◆ getChannel()

bool Hantek::BulkSetFilter::getChannel ( ChannelID  channel)

Gets the filtering state of one channel.

Parameters
channelThe channel whose filtering state should be returned.
Returns
The filtering state of the channel.

◆ getTrigger()

bool Hantek::BulkSetFilter::getTrigger ( )

Gets the filtering state for the trigger.

Returns
The filtering state of the trigger.

◆ setChannel()

void Hantek::BulkSetFilter::setChannel ( ChannelID  channel,
bool  filtered 
)

Enables/disables filtering of one channel.

Parameters
channelThe channel that should be set.
filteredtrue if the channel should be filtered.

◆ setTrigger()

void Hantek::BulkSetFilter::setTrigger ( bool  filtered)

Enables/disables filtering for the trigger.

Parameters
filteredtrue if the trigger should be filtered.

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