1#[doc = r"Register block"]
2#[repr(C)]
3pub struct RegisterBlock {
4 _reserved0: [u8; 0x04],
5 #[doc = "0x04 - Write GPIO port"]
6 pub out: OUT,
7 #[doc = "0x08 - Set individual bits in GPIO port"]
8 pub outset: OUTSET,
9 #[doc = "0x0c - Clear individual bits in GPIO port"]
10 pub outclr: OUTCLR,
11 #[doc = "0x10 - Read GPIO port"]
12 pub in_: IN,
13 #[doc = "0x14 - Direction of GPIO pins"]
14 pub dir: DIR,
15 #[doc = "0x18 - DIR set register"]
16 pub dirset: DIRSET,
17 #[doc = "0x1c - DIR clear register"]
18 pub dirclr: DIRCLR,
19 #[doc = "0x20 - Latch register indicating what GPIO pins that have met the criteria set in the PIN_CNF\\[n\\].SENSE registers"]
20 pub latch: LATCH,
21 #[doc = "0x24 - Select between default DETECT signal behavior and LDETECT mode (For non-secure pin only)"]
22 pub detectmode: DETECTMODE,
23 #[doc = "0x28 - Select between default DETECT signal behavior and LDETECT mode (For secure pin only)"]
24 pub detectmode_sec: DETECTMODE_SEC,
25 _reserved10: [u8; 0x01d4],
26 #[doc = "0x200..0x280 - Description collection: Configuration of GPIO pins"]
27 pub pin_cnf: [PIN_CNF; 32],
28}
29#[doc = "OUT (rw) register accessor: an alias for `Reg<OUT_SPEC>`"]
30pub type OUT = crate::Reg<out::OUT_SPEC>;
31#[doc = "Write GPIO port"]
32pub mod out;
33#[doc = "OUTSET (rw) register accessor: an alias for `Reg<OUTSET_SPEC>`"]
34pub type OUTSET = crate::Reg<outset::OUTSET_SPEC>;
35#[doc = "Set individual bits in GPIO port"]
36pub mod outset;
37#[doc = "OUTCLR (rw) register accessor: an alias for `Reg<OUTCLR_SPEC>`"]
38pub type OUTCLR = crate::Reg<outclr::OUTCLR_SPEC>;
39#[doc = "Clear individual bits in GPIO port"]
40pub mod outclr;
41#[doc = "IN (r) register accessor: an alias for `Reg<IN_SPEC>`"]
42pub type IN = crate::Reg<in_::IN_SPEC>;
43#[doc = "Read GPIO port"]
44pub mod in_;
45#[doc = "DIR (rw) register accessor: an alias for `Reg<DIR_SPEC>`"]
46pub type DIR = crate::Reg<dir::DIR_SPEC>;
47#[doc = "Direction of GPIO pins"]
48pub mod dir;
49#[doc = "DIRSET (rw) register accessor: an alias for `Reg<DIRSET_SPEC>`"]
50pub type DIRSET = crate::Reg<dirset::DIRSET_SPEC>;
51#[doc = "DIR set register"]
52pub mod dirset;
53#[doc = "DIRCLR (rw) register accessor: an alias for `Reg<DIRCLR_SPEC>`"]
54pub type DIRCLR = crate::Reg<dirclr::DIRCLR_SPEC>;
55#[doc = "DIR clear register"]
56pub mod dirclr;
57#[doc = "LATCH (rw) register accessor: an alias for `Reg<LATCH_SPEC>`"]
58pub type LATCH = crate::Reg<latch::LATCH_SPEC>;
59#[doc = "Latch register indicating what GPIO pins that have met the criteria set in the PIN_CNF\\[n\\].SENSE registers"]
60pub mod latch;
61#[doc = "DETECTMODE (rw) register accessor: an alias for `Reg<DETECTMODE_SPEC>`"]
62pub type DETECTMODE = crate::Reg<detectmode::DETECTMODE_SPEC>;
63#[doc = "Select between default DETECT signal behavior and LDETECT mode (For non-secure pin only)"]
64pub mod detectmode;
65#[doc = "DETECTMODE_SEC (rw) register accessor: an alias for `Reg<DETECTMODE_SEC_SPEC>`"]
66pub type DETECTMODE_SEC = crate::Reg<detectmode_sec::DETECTMODE_SEC_SPEC>;
67#[doc = "Select between default DETECT signal behavior and LDETECT mode (For secure pin only)"]
68pub mod detectmode_sec;
69#[doc = "PIN_CNF (rw) register accessor: an alias for `Reg<PIN_CNF_SPEC>`"]
70pub type PIN_CNF = crate::Reg<pin_cnf::PIN_CNF_SPEC>;
71#[doc = "Description collection: Configuration of GPIO pins"]
72pub mod pin_cnf;