Struct aaronia_rtsa::Device

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

A device, created through the ApiHandle.

The typical life-cycle of a device is:

Implementations§

Open the Device for exclusive use.

This allocates the required data structures and prepares the configuration settings, but will not access the hardware.

Close the Device for exclusive use.

Connect to the Device.

Disconnect from the Device.

Start data acqusition from the Device] / data transmission to the [Device`.

Stop data acqusition from the Device / data transmission to the Device.

Get DeviceState from the Device.

Get Device configuration parameter.

Set Device configuration parameter as string.

Set Device configuration parameter as float.

Set Device configuration parameter as integer.

Query Packet queue of Device data channel.

Get Packet from the Device.

This call is blocking, polling the queue every 5ms, in case it is empty.

Try to get a Packet from the Device data channel.

This call is non-blocking.

Send a Packet to the Device data channel.

Consume a Packet from a Device data channel.

Get Device clock time.

Print the Device configuration parameter tree.

Print the Device health parameter tree.

Trait Implementations§

Formats the value using the given formatter. Read more
Executes the destructor for this type. Read more

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.

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.