#[repr(u8)]
pub enum Command {
Show 23 variants
NoOp,
TriggerSet,
AvgNumSet,
TriggerWindowSet,
TriggerIntervalSet,
TriggerSingleSet,
AverageStart,
AverageStop,
RangeSet,
LcdSet,
TriggerStop,
DeviceRunningSet(DevicePower),
RegulatorSet(SourceVoltage),
SwitchPointDown,
SwitchPointUp,
TriggerExtToggle,
SetPowerMode(MeasurementMode),
ResUserSet,
SpikeFilteringOn,
SpikeFilteringOff,
GetMetaData,
Reset,
SetUserGains,
}
Expand description
Serial command opcodes Most commands are not used yet in the current version.
Variants§
NoOp
TriggerSet
AvgNumSet
TriggerWindowSet
TriggerIntervalSet
TriggerSingleSet
AverageStart
AverageStop
RangeSet
LcdSet
TriggerStop
DeviceRunningSet(DevicePower)
Enable or disable device
RegulatorSet(SourceVoltage)
Set device source voltage
SwitchPointDown
SwitchPointUp
TriggerExtToggle
SetPowerMode(MeasurementMode)
Set measurement mode
ResUserSet
SpikeFilteringOn
SpikeFilteringOff
GetMetaData
Fetch device metadata
Reset
Reset the device
SetUserGains
Implementations§
source§impl Command
impl Command
sourcepub fn expected_response_len(&self) -> usize
pub fn expected_response_len(&self) -> usize
The expected length of the response, as a hint indicating how much space we should allocate for a buffer. If no specific branch for the command is defined in Command::response_complete, the expected response length is used to check whether we received the whole response.