nrf9160_pac/
gpiote0_s.rs

1#[doc = r"Register block"]
2#[repr(C)]
3pub struct RegisterBlock {
4    #[doc = "0x00..0x20 - Description collection: Task for writing to pin specified in CONFIG\\[n\\].PSEL. Action on pin is configured in CONFIG\\[n\\].POLARITY."]
5    pub tasks_out: [TASKS_OUT; 8],
6    _reserved1: [u8; 0x10],
7    #[doc = "0x30..0x50 - Description collection: Task for writing to pin specified in CONFIG\\[n\\].PSEL. Action on pin is to set it high."]
8    pub tasks_set: [TASKS_SET; 8],
9    _reserved2: [u8; 0x10],
10    #[doc = "0x60..0x80 - Description collection: Task for writing to pin specified in CONFIG\\[n\\].PSEL. Action on pin is to set it low."]
11    pub tasks_clr: [TASKS_CLR; 8],
12    #[doc = "0x80..0xa0 - Description collection: Subscribe configuration for task OUT\\[n\\]"]
13    pub subscribe_out: [SUBSCRIBE_OUT; 8],
14    _reserved4: [u8; 0x10],
15    #[doc = "0xb0..0xd0 - Description collection: Subscribe configuration for task SET\\[n\\]"]
16    pub subscribe_set: [SUBSCRIBE_SET; 8],
17    _reserved5: [u8; 0x10],
18    #[doc = "0xe0..0x100 - Description collection: Subscribe configuration for task CLR\\[n\\]"]
19    pub subscribe_clr: [SUBSCRIBE_CLR; 8],
20    #[doc = "0x100..0x120 - Description collection: Event generated from pin specified in CONFIG\\[n\\].PSEL"]
21    pub events_in: [EVENTS_IN; 8],
22    _reserved7: [u8; 0x5c],
23    #[doc = "0x17c - Event generated from multiple input GPIO pins with SENSE mechanism enabled"]
24    pub events_port: EVENTS_PORT,
25    #[doc = "0x180..0x1a0 - Description collection: Publish configuration for event IN\\[n\\]"]
26    pub publish_in: [PUBLISH_IN; 8],
27    _reserved9: [u8; 0x5c],
28    #[doc = "0x1fc - Publish configuration for event PORT"]
29    pub publish_port: PUBLISH_PORT,
30    _reserved10: [u8; 0x0104],
31    #[doc = "0x304 - Enable interrupt"]
32    pub intenset: INTENSET,
33    #[doc = "0x308 - Disable interrupt"]
34    pub intenclr: INTENCLR,
35    _reserved12: [u8; 0x0204],
36    #[doc = "0x510..0x530 - Description collection: Configuration for OUT\\[n\\], SET\\[n\\]
37and CLR\\[n\\]
38tasks and IN\\[n\\]
39event"]
40    pub config: [CONFIG; 8],
41}
42#[doc = "TASKS_OUT (w) register accessor: an alias for `Reg<TASKS_OUT_SPEC>`"]
43pub type TASKS_OUT = crate::Reg<tasks_out::TASKS_OUT_SPEC>;
44#[doc = "Description collection: Task for writing to pin specified in CONFIG\\[n\\].PSEL. Action on pin is configured in CONFIG\\[n\\].POLARITY."]
45pub mod tasks_out;
46#[doc = "TASKS_SET (w) register accessor: an alias for `Reg<TASKS_SET_SPEC>`"]
47pub type TASKS_SET = crate::Reg<tasks_set::TASKS_SET_SPEC>;
48#[doc = "Description collection: Task for writing to pin specified in CONFIG\\[n\\].PSEL. Action on pin is to set it high."]
49pub mod tasks_set;
50#[doc = "TASKS_CLR (w) register accessor: an alias for `Reg<TASKS_CLR_SPEC>`"]
51pub type TASKS_CLR = crate::Reg<tasks_clr::TASKS_CLR_SPEC>;
52#[doc = "Description collection: Task for writing to pin specified in CONFIG\\[n\\].PSEL. Action on pin is to set it low."]
53pub mod tasks_clr;
54#[doc = "SUBSCRIBE_OUT (rw) register accessor: an alias for `Reg<SUBSCRIBE_OUT_SPEC>`"]
55pub type SUBSCRIBE_OUT = crate::Reg<subscribe_out::SUBSCRIBE_OUT_SPEC>;
56#[doc = "Description collection: Subscribe configuration for task OUT\\[n\\]"]
57pub mod subscribe_out;
58#[doc = "SUBSCRIBE_SET (rw) register accessor: an alias for `Reg<SUBSCRIBE_SET_SPEC>`"]
59pub type SUBSCRIBE_SET = crate::Reg<subscribe_set::SUBSCRIBE_SET_SPEC>;
60#[doc = "Description collection: Subscribe configuration for task SET\\[n\\]"]
61pub mod subscribe_set;
62#[doc = "SUBSCRIBE_CLR (rw) register accessor: an alias for `Reg<SUBSCRIBE_CLR_SPEC>`"]
63pub type SUBSCRIBE_CLR = crate::Reg<subscribe_clr::SUBSCRIBE_CLR_SPEC>;
64#[doc = "Description collection: Subscribe configuration for task CLR\\[n\\]"]
65pub mod subscribe_clr;
66#[doc = "EVENTS_IN (rw) register accessor: an alias for `Reg<EVENTS_IN_SPEC>`"]
67pub type EVENTS_IN = crate::Reg<events_in::EVENTS_IN_SPEC>;
68#[doc = "Description collection: Event generated from pin specified in CONFIG\\[n\\].PSEL"]
69pub mod events_in;
70#[doc = "EVENTS_PORT (rw) register accessor: an alias for `Reg<EVENTS_PORT_SPEC>`"]
71pub type EVENTS_PORT = crate::Reg<events_port::EVENTS_PORT_SPEC>;
72#[doc = "Event generated from multiple input GPIO pins with SENSE mechanism enabled"]
73pub mod events_port;
74#[doc = "PUBLISH_IN (rw) register accessor: an alias for `Reg<PUBLISH_IN_SPEC>`"]
75pub type PUBLISH_IN = crate::Reg<publish_in::PUBLISH_IN_SPEC>;
76#[doc = "Description collection: Publish configuration for event IN\\[n\\]"]
77pub mod publish_in;
78#[doc = "PUBLISH_PORT (rw) register accessor: an alias for `Reg<PUBLISH_PORT_SPEC>`"]
79pub type PUBLISH_PORT = crate::Reg<publish_port::PUBLISH_PORT_SPEC>;
80#[doc = "Publish configuration for event PORT"]
81pub mod publish_port;
82#[doc = "INTENSET (rw) register accessor: an alias for `Reg<INTENSET_SPEC>`"]
83pub type INTENSET = crate::Reg<intenset::INTENSET_SPEC>;
84#[doc = "Enable interrupt"]
85pub mod intenset;
86#[doc = "INTENCLR (rw) register accessor: an alias for `Reg<INTENCLR_SPEC>`"]
87pub type INTENCLR = crate::Reg<intenclr::INTENCLR_SPEC>;
88#[doc = "Disable interrupt"]
89pub mod intenclr;
90#[doc = "CONFIG (rw) register accessor: an alias for `Reg<CONFIG_SPEC>`"]
91pub type CONFIG = crate::Reg<config::CONFIG_SPEC>;
92#[doc = "Description collection: Configuration for OUT\\[n\\], SET\\[n\\]
93and CLR\\[n\\]
94tasks and IN\\[n\\]
95event"]
96pub mod config;