#[repr(C)]
pub struct RegisterBlock {
Show 24 fields pub data: DATA, pub dir: DIR, pub is: IS, pub ibe: IBE, pub iev: IEV, pub im: IM, pub ris: RIS, pub mis: MIS, pub icr: ICR, pub afsel: AFSEL, pub dr2r: DR2R, pub dr4r: DR4R, pub dr8r: DR8R, pub odr: ODR, pub pur: PUR, pub pdr: PDR, pub slr: SLR, pub den: DEN, pub lock: LOCK, pub cr: CR, pub amsel: AMSEL, pub pctl: PCTL, pub adcctl: ADCCTL, pub dmactl: DMACTL, /* private fields */
}
Expand description

Register block

Fields§

§data: DATA

0x3fc - GPIO Data

§dir: DIR

0x400 - GPIO Direction

§is: IS

0x404 - GPIO Interrupt Sense

§ibe: IBE

0x408 - GPIO Interrupt Both Edges

§iev: IEV

0x40c - GPIO Interrupt Event

§im: IM

0x410 - GPIO Interrupt Mask

§ris: RIS

0x414 - GPIO Raw Interrupt Status

§mis: MIS

0x418 - GPIO Masked Interrupt Status

§icr: ICR

0x41c - GPIO Interrupt Clear

§afsel: AFSEL

0x420 - GPIO Alternate Function Select

§dr2r: DR2R

0x500 - GPIO 2-mA Drive Select

§dr4r: DR4R

0x504 - GPIO 4-mA Drive Select

§dr8r: DR8R

0x508 - GPIO 8-mA Drive Select

§odr: ODR

0x50c - GPIO Open Drain Select

§pur: PUR

0x510 - GPIO Pull-Up Select

§pdr: PDR

0x514 - GPIO Pull-Down Select

§slr: SLR

0x518 - GPIO Slew Rate Control Select

§den: DEN

0x51c - GPIO Digital Enable

§lock: LOCK

0x520 - GPIO Lock

§cr: CR

0x524 - GPIO Commit

§amsel: AMSEL

0x528 - GPIO Analog Mode Select

§pctl: PCTL

0x52c - GPIO Port Control

§adcctl: ADCCTL

0x530 - GPIO ADC Control

§dmactl: DMACTL

0x534 - GPIO DMA Control

Auto Trait Implementations§

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