Struct stm32g0xx_hal::crc::Config[][src]

pub struct Config { /* fields omitted */ }

CRC configuration structure, uses builder pattern.

Implementations

impl Config[src]

pub fn initial_value(self, init: u32) -> Self[src]

Sets the initial value of the CRC.

pub fn polynomial(self, polynomial: Polynomial) -> Self[src]

Sets the polynomial of the CRC.

pub fn input_bit_reversal(self, rev: Option<BitReversal>) -> Self[src]

Enables bit reversal of the inputs.

pub fn output_bit_reversal(self, rev: bool) -> Self[src]

Enables bit reversal of the outputs.

pub fn freeze(self) -> Crc[src]

Freezes the peripheral, making the configuration take effect.

Auto Trait Implementations

impl Send for Config

impl Sync for Config

impl Unpin for Config

Blanket Implementations

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

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

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

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

impl<T, U> Into<U> for T where
    U: From<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> 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.