[][src]Struct cc13x2_cc26x2_hal::gpio::RegisterBlock

#[repr(C)]
pub struct RegisterBlock { pub dout3_0: DOUT3_0, pub dout7_4: DOUT7_4, pub dout11_8: DOUT11_8, pub dout15_12: DOUT15_12, pub dout19_16: DOUT19_16, pub dout23_20: DOUT23_20, pub dout27_24: DOUT27_24, pub dout31_28: DOUT31_28, pub dout31_0: DOUT31_0, pub doutset31_0: DOUTSET31_0, pub doutclr31_0: DOUTCLR31_0, pub douttgl31_0: DOUTTGL31_0, pub din31_0: DIN31_0, pub doe31_0: DOE31_0, pub evflags31_0: EVFLAGS31_0, // some fields omitted }

Register block

Fields

dout3_0: DOUT3_0

0x00 - Data Out 0 to 3 Alias register for byte access to each bit in DOUT31_0

dout7_4: DOUT7_4

0x04 - Data Out 4 to 7 Alias register for byte access to each bit in DOUT31_0

dout11_8: DOUT11_8

0x08 - Data Out 8 to 11 Alias register for byte access to each bit in DOUT31_0

dout15_12: DOUT15_12

0x0c - Data Out 12 to 15 Alias register for byte access to each bit in DOUT31_0

dout19_16: DOUT19_16

0x10 - Data Out 16 to 19 Alias register for byte access to each bit in DOUT31_0

dout23_20: DOUT23_20

0x14 - Data Out 20 to 23 Alias register for byte access to each bit in DOUT31_0

dout27_24: DOUT27_24

0x18 - Data Out 24 to 27 Alias register for byte access to each bit in DOUT31_0

dout31_28: DOUT31_28

0x1c - Data Out 28 to 31 Alias register for byte access to each bit in DOUT31_0

dout31_0: DOUT31_0

0x80 - Data Output for DIO 0 to 31

doutset31_0: DOUTSET31_0

0x90 - Data Out Set Writing 1 to a bit position sets the corresponding bit in the DOUT31_0 register

doutclr31_0: DOUTCLR31_0

0xa0 - Data Out Clear Writing 1 to a bit position clears the corresponding bit in the DOUT31_0 register

douttgl31_0: DOUTTGL31_0

0xb0 - Data Out Toggle Writing 1 to a bit position will invert the corresponding DIO output.

din31_0: DIN31_0

0xc0 - Data Input from DIO 0 to 31

doe31_0: DOE31_0

0xd0 - Data Output Enable for DIO 0 to 31

evflags31_0: EVFLAGS31_0

0xe0 - Event Register for DIO 0 to 31 Reading this registers will return 1 for triggered event and 0 for non-triggered events. Writing a 1 to a bit field will clear the event. The configuration of events is done inside MCU IOC, e.g. events for DIO #0 is configured in IOC:IOCFG0.EDGE_DET and IOC:IOCFG0.EDGE_IRQ_EN.

Auto Trait Implementations

Blanket Implementations

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same for T

type Output = T

Should always be Self