3#include "controlcode.h"
4#include "controlcommand.h"
6#include "usb/usbdevicedefinitions.h"
12struct OffsetsPerGainStep;
18 COMMANDINDEX_0 = 0x03,
19 COMMANDINDEX_1 = 0x0a,
20 COMMANDINDEX_2 = 0x09,
21 COMMANDINDEX_3 = 0x01,
22 COMMANDINDEX_4 = 0x02,
58 void setChannel(ChannelID channel, uint16_t offset);
76 ControlSetRelays(
bool ch1Below1V =
false,
bool ch1Below100mV =
false,
bool ch1CouplingDC =
false,
77 bool ch2Below1V =
false,
bool ch2Below100mV =
false,
bool ch2CouplingDC =
false,
78 bool triggerExt =
false);
87 void setBelow1V(ChannelID channel,
bool below);
114 void setDiv(uint8_t val);
119 void setDiv(uint8_t val);
124 void setDiv(uint8_t val);
Definition controlcommand.h:12
Definition controlStructs.h:27
ControlBeginCommand(BulkIndex index=COMMANDINDEX_0)
Sets the command index to the given value.
Definition controlStructs.cpp:11
The CONTROL_GETSPEED parser.
Definition controlStructs.h:35
ConnectionSpeed getSpeed()
Gets the speed of the connection.
Definition controlStructs.cpp:19
Definition controlStructs.h:127
Definition controlStructs.h:131
Definition controlStructs.h:43
uint16_t getChannel(ChannelID channel)
Get the offset for the given channel.
Definition controlStructs.cpp:30
uint16_t getTrigger()
Get the trigger level.
Definition controlStructs.cpp:47
void setChannel(ChannelID channel, uint16_t offset)
Set the offset for the given channel.
Definition controlStructs.cpp:37
void setTrigger(uint16_t level)
Set the trigger level.
Definition controlStructs.cpp:49
Definition controlStructs.h:67
void setCoupling(ChannelID channel, bool dc)
Set the coupling relay for the given channel.
Definition controlStructs.cpp:101
bool getBelow1V(ChannelID channel)
Get the below 1 V relay state for the given channel.
Definition controlStructs.cpp:66
bool getCoupling(ChannelID channel)
Get the coupling relay state for the given channel.
Definition controlStructs.cpp:94
void setBelow100mV(ChannelID channel, bool below)
Set the below 100 mV relay for the given channel.
Definition controlStructs.cpp:87
bool getTrigger()
Get the external trigger relay state.
Definition controlStructs.cpp:108
bool getBelow100mV(ChannelID channel)
Get the below 1 V relay state for the given channel.
Definition controlStructs.cpp:80
void setTrigger(bool ext)
Set the external trigger relay.
Definition controlStructs.cpp:110
void setBelow1V(ChannelID channel, bool below)
Set the below 1 V relay for the given channel.
Definition controlStructs.cpp:73
ControlSetRelays(bool ch1Below1V=false, bool ch1Below100mV=false, bool ch1CouplingDC=false, bool ch2Below1V=false, bool ch2Below100mV=false, bool ch2CouplingDC=false, bool triggerExt=false)
Sets all relay states.
Definition controlStructs.cpp:54
Definition controlStructs.h:122
Definition controlStructs.h:112
Definition controlStructs.h:117