Module commands

Source
Expand description

Commands sent to the device and their responses

This module contains structs that can be serialized into commands being sent to the device. Each command implements the UnaryCommand trait which specifies the response type as an associated type.

It’s typical to use the [roundtrip] method in order to send the command to a transport and obtained its parsed response.

Structs§

Addr
BytesWrap
FloatView
A contiguous view of floats read from the device
Gain
A gain between the minimum and maximum allowed values
MemoryView
WriteInt
0x13: Write an integer value

Enums§

Commands
ExtendError
ProtocolError
Responses
Value

Constants§

READ_FLOATS_MAX
Maximum number of floats that can be read in a single command

Traits§

ExtendView
Memory views can be extended with multiple contiguous reads
FromMemory
Types that can be read from a contiguous memory representation
UnaryResponse
Parsable response type