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

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

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

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

Polynomial 0x1021, no output post-processing

Polynomial 0x04C11DB7, no output post-processing

Polynomial 0x1EDC6F41, no output post-processing

Trait Implementations

impl Copy for CrcAlg
[src]

impl Clone for CrcAlg
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more