|
OpenHantek
|
Data Structures | |
| struct | CalibrationValues |
| struct | ControlAcquireHardData |
| class | ControlBeginCommand |
| struct | ControlGetLimits |
| class | ControlGetSpeed |
| The CONTROL_GETSPEED parser. More... | |
| struct | ControlSetCalFreq |
| struct | ControlSetCoupling |
| struct | ControlSetNumChannels |
| struct | ControlSetTimeDIV |
| struct | ControlSetVoltDIV_CH1 |
| struct | ControlSetVoltDIV_CH2 |
| struct | Offsets |
| struct | Steps |
| enum Hantek::CaptureState |
The different capture states which the oscilloscope returns.
hantek/types.h
| enum Hantek::CommandIndex |
|
strong |
All supported control commands.
All supported control commands. 0xE0 CONTROL_SETVOLTDIV_CH1 CH1 voltage div setting (6022BE/BL)
0xE1 CONTROL_SETVOLTDIV_CH2 CH2 voltage div setting (6022BE/BL)
CONTROL_SETTIMEDIV Time divisor setting (6022BE/BL)
CONTROL_ACQUIIRE_HARD_DATA Request sample data (6022BE/BL)
| Oscilloscope Command | bRequest Value | Other Notes |
|---|---|---|
| Set CH0 voltage range | 0xE0 | Possible values: 1,2,5,10 (5V, 2.5V, 1V, 500mV). |
| Set CH1 voltage range | 0xE1 | Possible values: 1,2,5,10 (5V, 2.5V, 1V, 500mV). |
| Set Sampling Rate | 0xE2 | Possible values: 48, 30, 24, 16, 8, 4, 1 (MHz) and 50,20,10 (*10kHz). |
| Trigger Oscilloscope | 0xE3 | Possible values: 0: start sampling, 1: stop sampling |
| Set channel count | 0xE4 | Possible values are 1 (CH1 only) and 2 (CH1 and CH2) |
| Set Calibration Freq | 0xE6 | Possible values: 1, 2, 5, 10, 20, 50, 100 (kHz) |
| Possible values: 105 (50 Hz), 110 (100 Hz), 120 (200 Hz), 150 (500 Hz) | ||
| Read/Write Firmware | 0xA0 | Read or write the scope firmware. Must be done on scope initialization |
The 0xEx requests are sent with value 0x00. The calibration commands are sent with value 0x08 (offset into eeprom). The value for R/W command is dependent on the Cypress protocol for interacting with the firmware.
A bulk read from end point 0x86 reads the current contents of the FIFO, which the ADC is filling.
CONTROL_SETVOLTDIV_CH1 CH1 voltage div setting (6022BE/BL)
CONTROL_SETVOLTDIV_CH2 CH2 voltage div setting (6022BE/BL)
CONTROL_SETTIMEDIV Time divisor setting (6022BE/BL)
CONTROL_ACQUIIRE_HARD_DATA Request sample data (6022BE/BL)
|
strong |
All supported values for control commands. VALUE_OFFSETLIMITS [MODEL_DSO2090, MODEL_DSO2150, MODEL_DSO2250, MODEL_DSO5200, MODEL_DSO5200A]
Value 0x08 is the calibration data for the channels offsets. It holds the offset value for the top and bottom of the scope screen for every gain step on every channel. The data is stored as a three-dimensional array:
channelLevels[channel][GainId][LevelOffset]
VALUE_DEVICEADDRESS [MODEL_DSO2090, MODEL_DSO2150, MODEL_DSO2250, MODEL_DSO5200, MODEL_DSO5200A]
Value 0x0a is the address of the device. It has a length of one byte.
VALUE_FASTRATECALIBRATION [MODEL_DSO2250, MODEL_DSO5200, MODEL_DSO5200A]
Value 0x60 is the calibration data for the fast rate mode on the DSO-2250, DSO-5200 and DSO-5200A. It's used to correct the level differences between the two merged channels to avoid deterministic noise.
VALUE_ETSCORRECTION [MODEL_DSO5200, MODEL_DSO5200A]
Value 0x70 contains correction values for the ETS functionality of the DSO-5200 and DSO-5200A.
| Enumerator | |
|---|---|
| VALUE_OFFSETLIMITS | |
| VALUE_DEVICEADDRESS | |
| VALUE_FASTRATECALIBRATION | |
| VALUE_ETSCORRECTION | |
|
strong |
|
strong |