RegisterBlock

Struct RegisterBlock 

Source
pub struct RegisterBlock { /* private fields */ }
Expand description

Register block

Implementations§

Source§

impl RegisterBlock

Source

pub const fn crl(&self) -> &Reg<CRLrs>

0x00 - Port configuration register low (GPIOn_CRL)

Source

pub const fn crh(&self) -> &Reg<CRHrs>

0x04 - Port configuration register high (GPIOn_CRL)

Source

pub const fn idr(&self) -> &Reg<IDRrs>

0x08 - Port input data register (GPIOn_IDR)

Source

pub const fn odr(&self) -> &Reg<ODRrs>

0x0c - Port output data register (GPIOn_ODR)

Source

pub const fn bsrr(&self) -> &Reg<BSRRrs>

0x10 - Port bit set/reset register (GPIOn_BSRR)

Source

pub const fn brr(&self) -> &Reg<BRRrs>

0x14 - Port bit reset register (GPIOn_BRR)

Source

pub const fn lckr(&self) -> &Reg<LCKRrs>

0x18 - Port configuration lock register

Trait Implementations§

Source§

impl Debug for RegisterBlock

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

§

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

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

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

§

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

Mutably borrows from an owned value. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

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

§

fn into(self) -> U

Calls U::from(self).

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

§

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

§

type Error = Infallible

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

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

Performs the conversion.
§

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

§

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

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

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

Performs the conversion.