OpenHantek
hantekdsocontrol.cpp File Reference
#include <QDebug>
#include <QTimer>
#include <QtCore>
#include "hantekdsocontrol.h"
#include "hantekprotocol/controlStructs.h"
#include "mathchannel.h"
#include "scopesettings.h"
#include "usb/scopedevice.h"

Macros

#define TRANS_TYPE_READ   0xc0
 
#define TRANS_TYPE_WRITE   0x40
 
#define EEPROM   0xa2
 

Functions

static double byteToGain (uint8_t gain)
 
static uint8_t gainToByte (double gain)
 
static double bytesToOffset (uint8_t offsetRaw, uint8_t offsetFine)
 
static uint8_t offsetToRaw (double offset)
 
static uint8_t offsetToFine (double offset)
 

Macro Definition Documentation

◆ EEPROM

#define EEPROM   0xa2

◆ TRANS_TYPE_READ

#define TRANS_TYPE_READ   0xc0

◆ TRANS_TYPE_WRITE

#define TRANS_TYPE_WRITE   0x40

Function Documentation

◆ bytesToOffset()

static double bytesToOffset ( uint8_t  offsetRaw,
uint8_t  offsetFine 
)
static

◆ byteToGain()

static double byteToGain ( uint8_t  gain)
static

◆ gainToByte()

static uint8_t gainToByte ( double  gain)
static

◆ offsetToFine()

static uint8_t offsetToFine ( double  offset)
static

◆ offsetToRaw()

static uint8_t offsetToRaw ( double  offset)
static