Struct hpm5361_pac::GPIOM

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

GPIOM

Implementations§

source§

impl GPIOM

source

pub const PTR: *const RegisterBlock = {0xf00d8000 as *const gpiom::RegisterBlock}

Pointer to the register block

source

pub const fn ptr() -> *const RegisterBlock

Return the pointer to the register block

source

pub unsafe fn steal() -> Self

Steal an instance of this peripheral

§Safety

Ensure that the new instance of the peripheral cannot be used in a way that may race with any existing instances, for example by only accessing read-only or write-only registers, or by consuming the original peripheral and using critical sections to coordinate access between multiple new instances.

Additionally, other software such as HALs may rely on only one peripheral instance existing to ensure memory safety; ensure no stolen instances are passed to such software.

Methods from Deref<Target = RegisterBlock>§

source

pub fn assign(&self, n: usize) -> &ASSIGN

0x00..0x780 - no description available

source

pub fn assign_iter(&self) -> impl Iterator<Item = &ASSIGN>

Iterator for array of: 0x00..0x780 - no description available

source

pub fn assigngpioa(&self) -> &ASSIGN

0x00..0x80 - no description available

source

pub fn assigngpiob(&self) -> &ASSIGN

0x80..0x100 - no description available

source

pub fn assignrsv3(&self) -> &ASSIGN

0x100..0x180 - no description available

source

pub fn assignrsv4(&self) -> &ASSIGN

0x180..0x200 - no description available

source

pub fn assignrsv5(&self) -> &ASSIGN

0x200..0x280 - no description available

source

pub fn assignrsv6(&self) -> &ASSIGN

0x280..0x300 - no description available

source

pub fn assignrsv7(&self) -> &ASSIGN

0x300..0x380 - no description available

source

pub fn assignrsv8(&self) -> &ASSIGN

0x380..0x400 - no description available

source

pub fn assignrsv9(&self) -> &ASSIGN

0x400..0x480 - no description available

source

pub fn assignrsv10(&self) -> &ASSIGN

0x480..0x500 - no description available

source

pub fn assignrsv11(&self) -> &ASSIGN

0x500..0x580 - no description available

source

pub fn assignrsv12(&self) -> &ASSIGN

0x580..0x600 - no description available

source

pub fn assignrsv13(&self) -> &ASSIGN

0x600..0x680 - no description available

source

pub fn assigngpiox(&self) -> &ASSIGN

0x680..0x700 - no description available

source

pub fn assigngpioy(&self) -> &ASSIGN

0x700..0x780 - no description available

Trait Implementations§

source§

impl Debug for GPIOM

source§

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

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

impl Deref for GPIOM

§

type Target = RegisterBlock

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.
source§

impl Send for GPIOM

Auto Trait Implementations§

§

impl RefUnwindSafe for GPIOM

§

impl !Sync for GPIOM

§

impl Unpin for GPIOM

§

impl UnwindSafe for GPIOM

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

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