#[repr(u8)]
pub enum BitReversal {
    Byte,
    HalfWord,
    Word,
}
Expand description

How to reverse the input bits.

ST refers to this as both ‘reversal’ and ‘inversion’. If a CRC calls for ‘reflection’ it most likely wants BitReversal::Byte and output reversal enabled.

Variants

Byte

Each input byte has its bits reversed. 0x1A2B3C4D becomes 0x58D43CB2.

HalfWord

Bits reversed by half-word. 0x1A2B3C4D becomes 0xD458B23C.

Word

Bits reversed by word. 0x1A2B3C4D becomes 0xB23CD458.

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
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. 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.