Struct stm32f3xx_hal::pac::CRC

source ·
pub struct CRC { /* private fields */ }
Expand description

cyclic redundancy check calculation unit

Implementations§

source§

impl CRC

source

pub const PTR: *const RegisterBlock = {0x40023000 as *const stm32f3::stm32f303::crc::RegisterBlock}

Pointer to the register block

source

pub const fn ptr() -> *const RegisterBlock

Return the pointer to the register block

Methods from Deref<Target = RegisterBlock>§

source

pub fn dr16(&self) -> &Reg<DR16_SPEC>

0x00 - Data register - half-word sized

source

pub fn dr8(&self) -> &Reg<DR8_SPEC>

0x00 - Data register - byte sized

source

pub fn dr(&self) -> &Reg<DR_SPEC>

0x00 - Data register

Trait Implementations§

source§

impl Debug for CRC

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Deref for CRC

§

type Target = RegisterBlock

The resulting type after dereferencing.
source§

fn deref(&self) -> &<CRC as Deref>::Target

Dereferences the value.
source§

impl Enable for CRC

source§

fn enable(bus: &mut Self::Bus)

Enables peripheral
source§

fn disable(bus: &mut Self::Bus)

Disables peripheral
source§

fn is_enabled() -> bool

Check if peripheral enabled
source§

fn is_disabled() -> bool

Check if peripheral disabled
source§

unsafe fn enable_unchecked()

Enables peripheral Read more
source§

unsafe fn disable_unchecked()

Disables peripheral Read more
source§

impl RccBus for CRC

§

type Bus = AHB

The underlying bus peripheral
source§

impl Send for CRC

Auto Trait Implementations§

§

impl RefUnwindSafe for CRC

§

impl !Sync for CRC

§

impl Unpin for CRC

§

impl UnwindSafe for CRC

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> BusClock for Twhere T: RccBus, <T as RccBus>::Bus: BusClock,

source§

fn clock(clocks: &Clocks) -> Hertz

Calculates frequency depending on Clock state
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.