RegisterBlock

Struct RegisterBlock 

Source
#[repr(C)]
pub struct RegisterBlock { pub b: [B; 2], pub w: [W; 2], pub dir: [Reg<DIR_SPEC>; 2], pub mask: [Reg<MASK_SPEC>; 2], pub pin: [Reg<PIN_SPEC>; 2], pub mpin: [Reg<MPIN_SPEC>; 2], pub set: [Reg<SET_SPEC>; 2], pub clr: [Reg<CLR_SPEC>; 2], pub not: [Reg<NOT_SPEC>; 2], pub dirset: [Reg<DIRSET_SPEC>; 2], pub dirclr: [Reg<DIRCLR_SPEC>; 2], pub dirnot: [Reg<DIRNOT_SPEC>; 2], /* private fields */ }
Expand description

Register block

Fields§

§b: [B; 2]

0x00..0x40 - no description available

§w: [W; 2]

0x1000..0x1100 - no description available

§dir: [Reg<DIR_SPEC>; 2]

0x2000..0x2008 - Direction registers

§mask: [Reg<MASK_SPEC>; 2]

0x2080..0x2088 - Mask register

§pin: [Reg<PIN_SPEC>; 2]

0x2100..0x2108 - Port pin register

§mpin: [Reg<MPIN_SPEC>; 2]

0x2180..0x2188 - Masked port register

§set: [Reg<SET_SPEC>; 2]

0x2200..0x2208 - Write: Set register for port Read: output bits for port

§clr: [Reg<CLR_SPEC>; 2]

0x2280..0x2288 - Clear port

§not: [Reg<NOT_SPEC>; 2]

0x2300..0x2308 - Toggle port

§dirset: [Reg<DIRSET_SPEC>; 2]

0x2380..0x2388 - Set pin direction bits for port

§dirclr: [Reg<DIRCLR_SPEC>; 2]

0x2400..0x2408 - Clear pin direction bits for port

§dirnot: [Reg<DIRNOT_SPEC>; 2]

0x2480..0x2488 - Toggle pin direction bits for port

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