OpenHantek
Loading...
Searching...
No Matches
hantekdsocontrol.cpp File Reference
#include <QDebug>
#include <QTimer>
#include <QtCore>
#include "hantekdsocontrol.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()

double bytesToOffset ( uint8_t offsetRaw,
uint8_t offsetFine )
static

◆ byteToGain()

double byteToGain ( uint8_t gain)
static

◆ gainToByte()

uint8_t gainToByte ( double gain)
static

◆ offsetToFine()

uint8_t offsetToFine ( double offset)
static

◆ offsetToRaw()

uint8_t offsetToRaw ( double offset)
static