Struct tmc2209::ReadResponse[][src]

#[repr(C)]
pub struct ReadResponse(_);
Expand description

The read access response datagram.

Implementations

The length of the message in bytes.

The first byte is the synchronisation byte.

The index of the master address byte.

The index of the register address.

The range of byte representing the data field.

The index of the cyclic rendundency check.

The master address.

Should always be 0b11111111.

Read the register address field.

Returns an Err if the value does not correspond with any known register.

Produce the register state stored within the resonse.

The specific state is determined by first checking the register address.

The data slice.

The bytes of the data slice shifted into a u32 value.

The u32 can be converted directly into the Register type associated with the reg::Address. See the register method.

Attempt to cast the data field to a register bitfield of the given type.

Uses the data_u32 method internally.

Returns true if the CRC is valid, false otherwise.

The inner slice of bytes.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

Feeds this value into the given Hasher.

Feeds a slice of this type into the given Hasher.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Formats the value using the given formatter

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

Performs the conversion.

Performs the conversion.

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.