HpsysGpio

Struct HpsysGpio 

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

HPSYS_GPIO

Implementations§

Source§

impl HpsysGpio

Source

pub const PTR: *const RegisterBlock = {0x500a0000 as *const hpsys_gpio::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 dir0(&self) -> &Dir0

0x00 - Data Input Register

Source

pub fn dor0(&self) -> &Dor0

0x04 - Data Output Register

Source

pub fn dosr0(&self) -> &Dosr0

0x08 - Data Output Set Register

Source

pub fn docr0(&self) -> &Docr0

0x0c - Data Output Clear Register

Source

pub fn doer0(&self) -> &Doer0

0x10 - Data Output Enable Register

Source

pub fn doesr0(&self) -> &Doesr0

0x14 - Data Output Enable Set Register

Source

pub fn doecr0(&self) -> &Doecr0

0x18 - Data Output Enable Clear Register

Source

pub fn ier0(&self) -> &Ier0

0x1c - Interrupt Enable Register

Source

pub fn iesr0(&self) -> &Iesr0

0x20 - Interrupt Enable Set Register

Source

pub fn iecr0(&self) -> &Iecr0

0x24 - Interrupt Enable Clear Register

Source

pub fn itr0(&self) -> &Itr0

0x28 - Interrupt Type Register

Source

pub fn itsr0(&self) -> &Itsr0

0x2c - Interrupt Type Set Register

Source

pub fn itcr0(&self) -> &Itcr0

0x30 - Interrupt Type Clear Register

Source

pub fn iphr0(&self) -> &Iphr0

0x34 - Interrupt Polarity High Register

Source

pub fn iphsr0(&self) -> &Iphsr0

0x38 - Interrupt Polarity High Set Register

Source

pub fn iphcr0(&self) -> &Iphcr0

0x3c - Interrupt Polarity High Clear Register

Source

pub fn iplr0(&self) -> &Iplr0

0x40 - Interrupt Polarity Low Register

Source

pub fn iplsr0(&self) -> &Iplsr0

0x44 - Interrupt Polarity Low Set Register

Source

pub fn iplcr0(&self) -> &Iplcr0

0x48 - Interrupt Polarity Low Clear Register

Source

pub fn isr0(&self) -> &Isr0

0x4c - Interrupt Status Register

Source

pub fn rsvd3(&self) -> &Rsvd3

0x50 -

Source

pub fn oemr0(&self) -> &Oemr0

0x60 - output mode Register

Source

pub fn oemsr0(&self) -> &Oemsr0

0x64 - output mode Set Register

Source

pub fn oemcr0(&self) -> &Oemcr0

0x68 - output mode Clear Register

Source

pub fn rsvd2(&self) -> &Rsvd2

0x6c -

Source

pub fn dir1(&self) -> &Dir1

0x80 - Data Input Register

Source

pub fn dor1(&self) -> &Dor1

0x84 - Data Output Register

Source

pub fn dosr1(&self) -> &Dosr1

0x88 - Data Output Set Register

Source

pub fn docr1(&self) -> &Docr1

0x8c - Data Output Clear Register

Source

pub fn doer1(&self) -> &Doer1

0x90 - Data Output Enable Register

Source

pub fn doesr1(&self) -> &Doesr1

0x94 - Data Output Enable Set Register

Source

pub fn doecr1(&self) -> &Doecr1

0x98 - Data Output Enable Clear Register

Source

pub fn ier1(&self) -> &Ier1

0x9c - Interrupt Enable Register

Source

pub fn iesr1(&self) -> &Iesr1

0xa0 - Interrupt Enable Set Register

Source

pub fn iecr1(&self) -> &Iecr1

0xa4 - Interrupt Enable Clear Register

Source

pub fn itr1(&self) -> &Itr1

0xa8 - Interrupt Type Register

Source

pub fn itsr1(&self) -> &Itsr1

0xac - Interrupt Type Set Register

Source

pub fn itcr1(&self) -> &Itcr1

0xb0 - Interrupt Type Clear Register

Source

pub fn iphr1(&self) -> &Iphr1

0xb4 - Interrupt Polarity High Register

Source

pub fn iphsr1(&self) -> &Iphsr1

0xb8 - Interrupt Polarity High Set Register

Source

pub fn iphcr1(&self) -> &Iphcr1

0xbc - Interrupt Polarity High Clear Register

Source

pub fn iplr1(&self) -> &Iplr1

0xc0 - Interrupt Polarity Low Register

Source

pub fn iplsr1(&self) -> &Iplsr1

0xc4 - Interrupt Polarity Low Set Register

Source

pub fn iplcr1(&self) -> &Iplcr1

0xc8 - Interrupt Polarity Low Clear Register

Source

pub fn isr1(&self) -> &Isr1

0xcc - Interrupt Status Register

Source

pub fn rsvd1(&self) -> &Rsvd1

0xd0 -

Source

pub fn oemr1(&self) -> &Oemr1

0xe0 - output mode Register

Source

pub fn oemsr1(&self) -> &Oemsr1

0xe4 - output mode Set Register

Source

pub fn oemcr1(&self) -> &Oemcr1

0xe8 - output mode Clear Register

Trait Implementations§

Source§

impl Debug for HpsysGpio

Source§

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

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

impl Deref for HpsysGpio

Source§

type Target = RegisterBlock

The resulting type after dereferencing.
Source§

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

Dereferences the value.
Source§

impl Send for HpsysGpio

Auto Trait Implementations§

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<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

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

Source§

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>,

Source§

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.