pub struct Crc {}
Expand description

Constrained CRC peripheral.

Implementations

This will reset the CRC to its initial condition.

This will reset the CRC to its initial condition, however with a specific initial value. This is very useful if many task are sharing the CRC peripheral, as one can read out the intermediate result, store it until the next time a task runs, and initialize with the intermediate result to continue where the task left off.

Feed the CRC with data

Get the result of the CRC, depending on the polynomial chosen only a certain amount of the bits are the result. This will reset the CRC peripheral after use.

Get a peed at the result of the CRC, depending on the polynomial chosen only a certain amount of the bits are the result.

Trait Implementations

Returns the hash value for the values written so far. Read more

Writes some data into this Hasher. Read more

Writes a single u8 into this hasher.

Writes a single u16 into this hasher.

Writes a single u32 into this hasher.

Writes a single u64 into this hasher.

Writes a single u128 into this hasher.

Writes a single usize into this hasher.

Writes a single i8 into this hasher.

Writes a single i16 into this hasher.

Writes a single i32 into this hasher.

Writes a single i64 into this hasher.

Writes a single i128 into this hasher.

Writes a single isize into this hasher.

🔬 This is a nightly-only experimental API. (hasher_prefixfree_extras)

Writes a length prefix into this hasher, as part of being prefix-free. Read more

🔬 This is a nightly-only experimental API. (hasher_prefixfree_extras)

Writes a single str into this hasher. 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.