|
OpenHantek
|
The BulkCode::SETTRIGGERANDSAMPLERATE builder. More...
#include <bulkStructs.h>
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 |
| BulkCommand * | next = nullptr |
Protected Member Functions inherited from BulkCommand | |
| BulkCommand (Hantek::BulkCode code, unsigned size) | |
The BulkCode::SETTRIGGERANDSAMPLERATE builder.
| 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.
| 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). |
| uint16_t Hantek::BulkSetTriggerAndSamplerate::getDownsampler | ( | ) |
Get the Downsampler value.
| bool Hantek::BulkSetTriggerAndSamplerate::getDownsamplingMode | ( | ) |
Get the downsamplerMode value in Tsr1Bits.
| bool Hantek::BulkSetTriggerAndSamplerate::getFastRate | ( | ) |
Get the fastRate state in Tsr2Bits.
| uint8_t Hantek::BulkSetTriggerAndSamplerate::getRecordLength | ( | ) |
Get the recordLength value in Tsr1Bits.
| uint8_t Hantek::BulkSetTriggerAndSamplerate::getSamplerateId | ( | ) |
Get the samplerateId value in Tsr1Bits.
| uint32_t Hantek::BulkSetTriggerAndSamplerate::getTriggerPosition | ( | ) |
Get the TriggerPosition value.
| uint8_t Hantek::BulkSetTriggerAndSamplerate::getTriggerSlope | ( | ) |
Get the triggerSlope value in Tsr2Bits.
| uint8_t Hantek::BulkSetTriggerAndSamplerate::getTriggerSource | ( | ) |
Get the triggerSource value in Tsr1Bits.
| uint8_t Hantek::BulkSetTriggerAndSamplerate::getUsedChannels | ( | ) |
Get the usedChannels value in Tsr2Bits.
| void Hantek::BulkSetTriggerAndSamplerate::setDownsampler | ( | uint16_t | downsampler | ) |
Set the Downsampler to the given value.
| downsampler | The new Downsampler value. |
| void Hantek::BulkSetTriggerAndSamplerate::setDownsamplingMode | ( | bool | downsampling | ) |
Set the downsamplerMode in Tsr1Bits to the given value.
| downsampling | The new downsamplerMode value. |
| void Hantek::BulkSetTriggerAndSamplerate::setFastRate | ( | bool | fastRate | ) |
Set the fastRate in Tsr2Bits to the given state.
| fastRate | The new fastRate state. |
| void Hantek::BulkSetTriggerAndSamplerate::setRecordLength | ( | uint8_t | value | ) |
Set the recordLength in Tsr1Bits to the given value.
| value | The new ::RecordLengthId value. |
| void Hantek::BulkSetTriggerAndSamplerate::setSamplerateId | ( | uint8_t | value | ) |
Set the samplerateId in Tsr1Bits to the given value.
| value | The new samplerateId value. |
| void Hantek::BulkSetTriggerAndSamplerate::setTriggerPosition | ( | uint32_t | position | ) |
Set the TriggerPosition to the given value.
| position | The new horizontal trigger position. |
| void Hantek::BulkSetTriggerAndSamplerate::setTriggerSlope | ( | uint8_t | slope | ) |
Set the triggerSlope in Tsr2Bits to the given value.
| slope | The new triggerSlope value. |
| void Hantek::BulkSetTriggerAndSamplerate::setTriggerSource | ( | uint8_t | value | ) |
Set the triggerSource in Tsr1Bits to the given value.
| value | The new triggerSource value. |
| void Hantek::BulkSetTriggerAndSamplerate::setUsedChannels | ( | uint8_t | value | ) |
Set the usedChannels in Tsr2Bits to the given value.
| value | The new usedChannels value. |
1.8.14