Enum stm32_hal2::crc::BitReversal[][src]

#[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 !=.

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.