#[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§
impl !Freeze for RegisterBlock
impl !RefUnwindSafe for RegisterBlock
impl Send for RegisterBlock
impl !Sync for RegisterBlock
impl Unpin for RegisterBlock
impl UnwindSafe for RegisterBlock
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more