Struct ppk2::Ppk2

source ·
pub struct Ppk2 { /* private fields */ }
Expand description

PPK2 device representation.

Implementations§

Create a new instance and configure the given MeasurementMode.

Send a raw command and return the result.

Get the device metadata.

Enable or disable the device power.

Set the voltage of the device voltage source.

Start measurements. Returns a tuple of:

Start measurements. Returns a tuple of:

  • Ppk2,
  • Receiver of [measurement::Result], and
  • A closure that can be called to stop the measurement parsing pipeline and return the device.

Reset the device, making the device unusable.

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