Struct atsamd21g::port::RegisterBlock
source · [−]#[repr(C)]pub struct RegisterBlock {Show 26 fields
pub dir0: Reg<DIR_SPEC>,
pub dirclr0: Reg<DIRCLR_SPEC>,
pub dirset0: Reg<DIRSET_SPEC>,
pub dirtgl0: Reg<DIRTGL_SPEC>,
pub out0: Reg<OUT_SPEC>,
pub outclr0: Reg<OUTCLR_SPEC>,
pub outset0: Reg<OUTSET_SPEC>,
pub outtgl0: Reg<OUTTGL_SPEC>,
pub in0: Reg<IN_SPEC>,
pub ctrl0: Reg<CTRL_SPEC>,
pub wrconfig0: Reg<WRCONFIG_SPEC>,
pub pmux0_: [Reg<PMUX0__SPEC>; 16],
pub pincfg0_: [Reg<PINCFG0__SPEC>; 32],
pub dir1: Reg<DIR_SPEC>,
pub dirclr1: Reg<DIRCLR_SPEC>,
pub dirset1: Reg<DIRSET_SPEC>,
pub dirtgl1: Reg<DIRTGL_SPEC>,
pub out1: Reg<OUT_SPEC>,
pub outclr1: Reg<OUTCLR_SPEC>,
pub outset1: Reg<OUTSET_SPEC>,
pub outtgl1: Reg<OUTTGL_SPEC>,
pub in1: Reg<IN_SPEC>,
pub ctrl1: Reg<CTRL_SPEC>,
pub wrconfig1: Reg<WRCONFIG_SPEC>,
pub pmux1_: [Reg<PMUX1__SPEC>; 16],
pub pincfg1_: [Reg<PINCFG1__SPEC>; 32],
/* private fields */
}
Expand description
Register block
Fields
dir0: Reg<DIR_SPEC>
0x00 - Data Direction
dirclr0: Reg<DIRCLR_SPEC>
0x04 - Data Direction Clear
dirset0: Reg<DIRSET_SPEC>
0x08 - Data Direction Set
dirtgl0: Reg<DIRTGL_SPEC>
0x0c - Data Direction Toggle
out0: Reg<OUT_SPEC>
0x10 - Data Output Value
outclr0: Reg<OUTCLR_SPEC>
0x14 - Data Output Value Clear
outset0: Reg<OUTSET_SPEC>
0x18 - Data Output Value Set
outtgl0: Reg<OUTTGL_SPEC>
0x1c - Data Output Value Toggle
in0: Reg<IN_SPEC>
0x20 - Data Input Value
ctrl0: Reg<CTRL_SPEC>
0x24 - Control
wrconfig0: Reg<WRCONFIG_SPEC>
0x28 - Write Configuration
pmux0_: [Reg<PMUX0__SPEC>; 16]
0x30..0x40 - Peripheral Multiplexing n - Group 0
pincfg0_: [Reg<PINCFG0__SPEC>; 32]
0x40..0x60 - Pin Configuration n - Group 0
dir1: Reg<DIR_SPEC>
0x80 - Data Direction
dirclr1: Reg<DIRCLR_SPEC>
0x84 - Data Direction Clear
dirset1: Reg<DIRSET_SPEC>
0x88 - Data Direction Set
dirtgl1: Reg<DIRTGL_SPEC>
0x8c - Data Direction Toggle
out1: Reg<OUT_SPEC>
0x90 - Data Output Value
outclr1: Reg<OUTCLR_SPEC>
0x94 - Data Output Value Clear
outset1: Reg<OUTSET_SPEC>
0x98 - Data Output Value Set
outtgl1: Reg<OUTTGL_SPEC>
0x9c - Data Output Value Toggle
in1: Reg<IN_SPEC>
0xa0 - Data Input Value
ctrl1: Reg<CTRL_SPEC>
0xa4 - Control
wrconfig1: Reg<WRCONFIG_SPEC>
0xa8 - Write Configuration
pmux1_: [Reg<PMUX1__SPEC>; 16]
0xb0..0xc0 - Peripheral Multiplexing n - Group 1
pincfg1_: [Reg<PINCFG1__SPEC>; 32]
0xc0..0xe0 - Pin Configuration n - Group 1
Auto Trait Implementations
impl !RefUnwindSafe for RegisterBlock
impl Send for RegisterBlock
impl !Sync for RegisterBlock
impl Unpin for RegisterBlock
impl UnwindSafe for RegisterBlock
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more