mirror of
https://github.com/EEVengers/ThunderScope.git
synced 2025-04-14 23:59:19 +00:00
Move CMD to cmd.tsx
This commit is contained in:
parent
cee643ad5e
commit
1e112b7102
Software/waveview/src
components/sidebar/widgets
configuration/enums
util
@ -4,7 +4,8 @@ import MathType from '../../../configuration/enums/mathType';
|
||||
import './../../../css/sidebar/widgets/measurementsWidget.css';
|
||||
import GraphStatus from '../../../configuration/enums/graphStatus';
|
||||
|
||||
import {Plumber, PlumberArgs, CMD} from '../../../util/plumber';
|
||||
import CMD from '../../../configuration/enums/cmd';
|
||||
import {Plumber, PlumberArgs} from '../../../util/plumber';
|
||||
|
||||
class MeasurementsWidget extends React.Component<any, any> {
|
||||
timerID: number = 0;
|
||||
|
@ -4,7 +4,8 @@ import './../../../css/sidebar/widgets/triggerWidget.css';
|
||||
import VoltageUnit from '../../../configuration/enums/voltageUnit';
|
||||
import TriggerType from '../../../configuration/enums/triggerType';
|
||||
|
||||
import {Plumber, PlumberArgs, CMD} from '../../../util/plumber';
|
||||
import CMD from '../../../configuration/enums/cmd';
|
||||
import {Plumber, PlumberArgs} from '../../../util/plumber';
|
||||
|
||||
class TriggerWidget extends React.Component<any, any> {
|
||||
|
||||
|
35
Software/waveview/src/configuration/enums/cmd.tsx
Normal file
35
Software/waveview/src/configuration/enums/cmd.tsx
Normal file
@ -0,0 +1,35 @@
|
||||
enum CMD {
|
||||
//Data commands
|
||||
CMD_GetData1 = 0x01,
|
||||
CMD_GetData2 = 0x02,
|
||||
CMD_GetData3 = 0x03,
|
||||
CMD_GetData4 = 0x04,
|
||||
CMD_GetMin = 0x05,
|
||||
CMD_GetMax = 0x06,
|
||||
|
||||
//Demo commands
|
||||
CMD_SetFile = 0x11,
|
||||
CMD_RampDemo = 0x1F,
|
||||
|
||||
//Get Config commands
|
||||
CMD_GetWindowSize = 0x21,
|
||||
CMD_GetCh = 0x22,
|
||||
CMD_GetLevel = 0x23,
|
||||
CMD_GetTriggerCh = 0x24,
|
||||
CMD_GetEdgeType = 0x25,
|
||||
|
||||
//Set Config commands
|
||||
CMD_SetWindowSize = 0x31,
|
||||
CMD_SetCh = 0x32,
|
||||
CMD_SetLevel = 0x33,
|
||||
CMD_SetTriggerCh = 0x34,
|
||||
CMD_SetEdgeType = 0x35,
|
||||
CMD_SetBandwidth = 0x36,
|
||||
CMD_SetVerticalScaling = 0x37,
|
||||
CMD_SetVerticalOffset = 0x38,
|
||||
CMD_SetHorizontalOffset = 0x39,
|
||||
CMD_SetCoupling = 0x3A,
|
||||
CMD_SetMath = 0x3F
|
||||
}
|
||||
|
||||
export default CMD;
|
@ -1,36 +1,4 @@
|
||||
export enum CMD {
|
||||
//Data commands
|
||||
CMD_GetData1 = 0x01,
|
||||
CMD_GetData2 = 0x02,
|
||||
CMD_GetData3 = 0x03,
|
||||
CMD_GetData4 = 0x04,
|
||||
CMD_GetMin = 0x05,
|
||||
CMD_GetMax = 0x06,
|
||||
|
||||
//Demo commands
|
||||
CMD_SetFile = 0x11,
|
||||
CMD_RampDemo = 0x1F,
|
||||
|
||||
//Get Config commands
|
||||
CMD_GetWindowSize = 0x21,
|
||||
CMD_GetCh = 0x22,
|
||||
CMD_GetLevel = 0x23,
|
||||
CMD_GetTriggerCh = 0x24,
|
||||
CMD_GetEdgeType = 0x25,
|
||||
|
||||
//Set Config commands
|
||||
CMD_SetWindowSize = 0x31,
|
||||
CMD_SetCh = 0x32,
|
||||
CMD_SetLevel = 0x33,
|
||||
CMD_SetTriggerCh = 0x34,
|
||||
CMD_SetEdgeType = 0x35,
|
||||
CMD_SetBandwidth = 0x36,
|
||||
CMD_SetVerticalScaling = 0x37,
|
||||
CMD_SetVerticalOffset = 0x38,
|
||||
CMD_SetHorizontalOffset = 0x39,
|
||||
CMD_SetCoupling = 0x3A,
|
||||
CMD_SetMath = 0x3F
|
||||
}
|
||||
import CMD from '../configuration/enums/cmd';
|
||||
|
||||
export enum SetMathOp {
|
||||
SetMath_None = 0,
|
||||
|
@ -1,4 +1,5 @@
|
||||
import { CMD, PlumberArgs, Plumber, SetMathOp } from './plumber';
|
||||
import CMD from '../configuration/enums/cmd';
|
||||
import { PlumberArgs, Plumber, SetMathOp } from './plumber';
|
||||
|
||||
class Range {
|
||||
dataMin: number = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user