The BulkCode::SETTRIGGERANDSAMPLERATE builder.
More...
#include <bulkStructs.h>
|
Data Fields inherited from BulkCommand |
|
Hantek::BulkCode | code |
| |
|
bool | pending = false |
| |
|
BulkCommand * | next = nullptr |
| |
Protected Member Functions inherited from BulkCommand |
|
| BulkCommand (Hantek::BulkCode code, unsigned size) |
| |
The BulkCode::SETTRIGGERANDSAMPLERATE builder.
◆ 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
-
| downsampler | The Downsampler value. |
| triggerPosition | The trigger position value. |
| triggerSource | The trigger source id (Tsr1). |
| recordLength | The record length id (Tsr1). |
| samplerateId | The samplerateId value (Tsr1). |
| downsamplingMode | The downsamplingMode value (Tsr1). |
| usedChannels | The enabled channels (Tsr2). |
| fastRate | The fastRate state (Tsr2). |
| triggerSlope | The triggerSlope value (Tsr2). |
◆ 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
-
| downsampler | The new Downsampler value. |
◆ setDownsamplingMode()
| void Hantek::BulkSetTriggerAndSamplerate::setDownsamplingMode |
( |
bool | downsampling | ) |
|
Set the downsamplerMode in Tsr1Bits to the given value.
- Parameters
-
| downsampling | The new downsamplerMode value. |
◆ setFastRate()
| void Hantek::BulkSetTriggerAndSamplerate::setFastRate |
( |
bool | fastRate | ) |
|
Set the fastRate in Tsr2Bits to the given state.
- Parameters
-
| fastRate | The new fastRate state. |
◆ setRecordLength()
| void Hantek::BulkSetTriggerAndSamplerate::setRecordLength |
( |
uint8_t | value | ) |
|
Set the recordLength in Tsr1Bits to the given value.
- Parameters
-
| value | The new ::RecordLengthId value. |
◆ setSamplerateId()
| void Hantek::BulkSetTriggerAndSamplerate::setSamplerateId |
( |
uint8_t | value | ) |
|
Set the samplerateId in Tsr1Bits to the given value.
- Parameters
-
| value | The new samplerateId value. |
◆ setTriggerPosition()
| void Hantek::BulkSetTriggerAndSamplerate::setTriggerPosition |
( |
uint32_t | position | ) |
|
Set the TriggerPosition to the given value.
- Parameters
-
| position | The new horizontal trigger position. |
◆ setTriggerSlope()
| void Hantek::BulkSetTriggerAndSamplerate::setTriggerSlope |
( |
uint8_t | slope | ) |
|
Set the triggerSlope in Tsr2Bits to the given value.
- Parameters
-
| slope | The new triggerSlope value. |
◆ setTriggerSource()
| void Hantek::BulkSetTriggerAndSamplerate::setTriggerSource |
( |
uint8_t | value | ) |
|
Set the triggerSource in Tsr1Bits to the given value.
- Parameters
-
| value | The new triggerSource value. |
◆ setUsedChannels()
| void Hantek::BulkSetTriggerAndSamplerate::setUsedChannels |
( |
uint8_t | value | ) |
|
Set the usedChannels in Tsr2Bits to the given value.
- Parameters
-
| value | The new usedChannels value. |
The documentation for this class was generated from the following files: