Struct msp430g2553::port_1_2::RegisterBlock
source · [−]#[repr(C)]pub struct RegisterBlock {Show 18 fields
pub p1in: P1IN,
pub p1out: P1OUT,
pub p1dir: P1DIR,
pub p1ifg: P1IFG,
pub p1ies: P1IES,
pub p1ie: P1IE,
pub p1sel: P1SEL,
pub p1ren: P1REN,
pub p2in: P2IN,
pub p2out: P2OUT,
pub p2dir: P2DIR,
pub p2ifg: P2IFG,
pub p2ies: P2IES,
pub p2ie: P2IE,
pub p2sel: P2SEL,
pub p2ren: P2REN,
pub p1sel2: P1SEL2,
pub p2sel2: P2SEL2,
/* private fields */
}
Expand description
Register block
Fields
p1in: P1IN
0x00 - Port 1 Input
p1out: P1OUT
0x01 - Port 1 Output
p1dir: P1DIR
0x02 - Port 1 Direction
p1ifg: P1IFG
0x03 - Port 1 Interrupt Flag
p1ies: P1IES
0x04 - Port 1 Interrupt Edge Select
p1ie: P1IE
0x05 - Port 1 Interrupt Enable
p1sel: P1SEL
0x06 - Port 1 Selection
p1ren: P1REN
0x07 - Port 1 Resistor Enable
p2in: P2IN
0x08 - Port 2 Input
p2out: P2OUT
0x09 - Port 2 Output
p2dir: P2DIR
0x0a - Port 2 Direction
p2ifg: P2IFG
0x0b - Port 2 Interrupt Flag
p2ies: P2IES
0x0c - Port 2 Interrupt Edge Select
p2ie: P2IE
0x0d - Port 2 Interrupt Enable
p2sel: P2SEL
0x0e - Port 2 Selection
p2ren: P2REN
0x0f - Port 2 Resistor Enable
p1sel2: P1SEL2
0x21 - Port 1 Selection 2
p2sel2: P2SEL2
0x22 - Port 2 Selection 2
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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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