[][src]Enum kernel::hil::crc::CrcAlg

pub enum CrcAlg {
    Crc32,
    Crc32C,
    Sam4L16,
    Sam4L32,
    Sam4L32C,
}

CRC algorithms

In all cases, input bytes are bit-reversed (i.e., consumed from LSB to MSB.)

Algorithms prefixed with Sam4L are native to that chip and thus require no software post-processing on platforms using it.

Variants

Crc32

Polynomial 0x04C11DB7, output reversed then inverted ("CRC-32")

Crc32C

Polynomial 0x1EDC6F41, output reversed then inverted ("CRC-32C" / "Castagnoli")

Sam4L16

Polynomial 0x1021, no output post-processing

Sam4L32

Polynomial 0x04C11DB7, no output post-processing

Sam4L32C

Polynomial 0x1EDC6F41, no output post-processing

Trait Implementations

impl Copy for CrcAlg[src]

impl Clone for CrcAlg[src]

Auto Trait Implementations

impl Unpin for CrcAlg

impl Send for CrcAlg

impl Sync for CrcAlg

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]