Enum ppk2::cmd::Command

source ·
#[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§

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.

Get raw command bytes iterator

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more