nrf5340_app_pac/
spis0_ns.rs1#[doc = r"Register block"]
2#[repr(C)]
3pub struct RegisterBlock {
4 _reserved0: [u8; 0x24],
5 #[doc = "0x24 - Acquire SPI semaphore"]
6 pub tasks_acquire: TASKS_ACQUIRE,
7 #[doc = "0x28 - Release SPI semaphore, enabling the SPI slave to acquire it"]
8 pub tasks_release: TASKS_RELEASE,
9 _reserved2: [u8; 0x78],
10 #[doc = "0xa4 - Subscribe configuration for task ACQUIRE"]
11 pub subscribe_acquire: SUBSCRIBE_ACQUIRE,
12 #[doc = "0xa8 - Subscribe configuration for task RELEASE"]
13 pub subscribe_release: SUBSCRIBE_RELEASE,
14 _reserved4: [u8; 0x58],
15 #[doc = "0x104 - Granted transaction completed"]
16 pub events_end: EVENTS_END,
17 _reserved5: [u8; 0x08],
18 #[doc = "0x110 - End of RXD buffer reached"]
19 pub events_endrx: EVENTS_ENDRX,
20 _reserved6: [u8; 0x14],
21 #[doc = "0x128 - Semaphore acquired"]
22 pub events_acquired: EVENTS_ACQUIRED,
23 _reserved7: [u8; 0x58],
24 #[doc = "0x184 - Publish configuration for event END"]
25 pub publish_end: PUBLISH_END,
26 _reserved8: [u8; 0x08],
27 #[doc = "0x190 - Publish configuration for event ENDRX"]
28 pub publish_endrx: PUBLISH_ENDRX,
29 _reserved9: [u8; 0x14],
30 #[doc = "0x1a8 - Publish configuration for event ACQUIRED"]
31 pub publish_acquired: PUBLISH_ACQUIRED,
32 _reserved10: [u8; 0x54],
33 #[doc = "0x200 - Shortcuts between local events and tasks"]
34 pub shorts: SHORTS,
35 _reserved11: [u8; 0x0100],
36 #[doc = "0x304 - Enable interrupt"]
37 pub intenset: INTENSET,
38 #[doc = "0x308 - Disable interrupt"]
39 pub intenclr: INTENCLR,
40 _reserved13: [u8; 0xf4],
41 #[doc = "0x400 - Semaphore status register"]
42 pub semstat: SEMSTAT,
43 _reserved14: [u8; 0x3c],
44 #[doc = "0x440 - Status from last transaction"]
45 pub status: STATUS,
46 _reserved15: [u8; 0xbc],
47 #[doc = "0x500 - Enable SPI slave"]
48 pub enable: ENABLE,
49 _reserved16: [u8; 0x04],
50 #[doc = "0x508..0x518 - Unspecified"]
51 pub psel: PSEL,
52 _reserved17: [u8; 0x1c],
53 #[doc = "0x534..0x544 - Unspecified"]
54 pub rxd: RXD,
55 #[doc = "0x544..0x554 - Unspecified"]
56 pub txd: TXD,
57 #[doc = "0x554 - Configuration register"]
58 pub config: CONFIG,
59 _reserved20: [u8; 0x04],
60 #[doc = "0x55c - Default character. Character clocked out in case of an ignored transaction."]
61 pub def: DEF,
62 _reserved21: [u8; 0x60],
63 #[doc = "0x5c0 - Over-read character"]
64 pub orc: ORC,
65}
66#[doc = "TASKS_ACQUIRE (w) register accessor: an alias for `Reg<TASKS_ACQUIRE_SPEC>`"]
67pub type TASKS_ACQUIRE = crate::Reg<tasks_acquire::TASKS_ACQUIRE_SPEC>;
68#[doc = "Acquire SPI semaphore"]
69pub mod tasks_acquire;
70#[doc = "TASKS_RELEASE (w) register accessor: an alias for `Reg<TASKS_RELEASE_SPEC>`"]
71pub type TASKS_RELEASE = crate::Reg<tasks_release::TASKS_RELEASE_SPEC>;
72#[doc = "Release SPI semaphore, enabling the SPI slave to acquire it"]
73pub mod tasks_release;
74#[doc = "SUBSCRIBE_ACQUIRE (rw) register accessor: an alias for `Reg<SUBSCRIBE_ACQUIRE_SPEC>`"]
75pub type SUBSCRIBE_ACQUIRE = crate::Reg<subscribe_acquire::SUBSCRIBE_ACQUIRE_SPEC>;
76#[doc = "Subscribe configuration for task ACQUIRE"]
77pub mod subscribe_acquire;
78#[doc = "SUBSCRIBE_RELEASE (rw) register accessor: an alias for `Reg<SUBSCRIBE_RELEASE_SPEC>`"]
79pub type SUBSCRIBE_RELEASE = crate::Reg<subscribe_release::SUBSCRIBE_RELEASE_SPEC>;
80#[doc = "Subscribe configuration for task RELEASE"]
81pub mod subscribe_release;
82#[doc = "EVENTS_END (rw) register accessor: an alias for `Reg<EVENTS_END_SPEC>`"]
83pub type EVENTS_END = crate::Reg<events_end::EVENTS_END_SPEC>;
84#[doc = "Granted transaction completed"]
85pub mod events_end;
86#[doc = "EVENTS_ENDRX (rw) register accessor: an alias for `Reg<EVENTS_ENDRX_SPEC>`"]
87pub type EVENTS_ENDRX = crate::Reg<events_endrx::EVENTS_ENDRX_SPEC>;
88#[doc = "End of RXD buffer reached"]
89pub mod events_endrx;
90#[doc = "EVENTS_ACQUIRED (rw) register accessor: an alias for `Reg<EVENTS_ACQUIRED_SPEC>`"]
91pub type EVENTS_ACQUIRED = crate::Reg<events_acquired::EVENTS_ACQUIRED_SPEC>;
92#[doc = "Semaphore acquired"]
93pub mod events_acquired;
94#[doc = "PUBLISH_END (rw) register accessor: an alias for `Reg<PUBLISH_END_SPEC>`"]
95pub type PUBLISH_END = crate::Reg<publish_end::PUBLISH_END_SPEC>;
96#[doc = "Publish configuration for event END"]
97pub mod publish_end;
98#[doc = "PUBLISH_ENDRX (rw) register accessor: an alias for `Reg<PUBLISH_ENDRX_SPEC>`"]
99pub type PUBLISH_ENDRX = crate::Reg<publish_endrx::PUBLISH_ENDRX_SPEC>;
100#[doc = "Publish configuration for event ENDRX"]
101pub mod publish_endrx;
102#[doc = "PUBLISH_ACQUIRED (rw) register accessor: an alias for `Reg<PUBLISH_ACQUIRED_SPEC>`"]
103pub type PUBLISH_ACQUIRED = crate::Reg<publish_acquired::PUBLISH_ACQUIRED_SPEC>;
104#[doc = "Publish configuration for event ACQUIRED"]
105pub mod publish_acquired;
106#[doc = "SHORTS (rw) register accessor: an alias for `Reg<SHORTS_SPEC>`"]
107pub type SHORTS = crate::Reg<shorts::SHORTS_SPEC>;
108#[doc = "Shortcuts between local events and tasks"]
109pub mod shorts;
110#[doc = "INTENSET (rw) register accessor: an alias for `Reg<INTENSET_SPEC>`"]
111pub type INTENSET = crate::Reg<intenset::INTENSET_SPEC>;
112#[doc = "Enable interrupt"]
113pub mod intenset;
114#[doc = "INTENCLR (rw) register accessor: an alias for `Reg<INTENCLR_SPEC>`"]
115pub type INTENCLR = crate::Reg<intenclr::INTENCLR_SPEC>;
116#[doc = "Disable interrupt"]
117pub mod intenclr;
118#[doc = "SEMSTAT (r) register accessor: an alias for `Reg<SEMSTAT_SPEC>`"]
119pub type SEMSTAT = crate::Reg<semstat::SEMSTAT_SPEC>;
120#[doc = "Semaphore status register"]
121pub mod semstat;
122#[doc = "STATUS (rw) register accessor: an alias for `Reg<STATUS_SPEC>`"]
123pub type STATUS = crate::Reg<status::STATUS_SPEC>;
124#[doc = "Status from last transaction"]
125pub mod status;
126#[doc = "ENABLE (rw) register accessor: an alias for `Reg<ENABLE_SPEC>`"]
127pub type ENABLE = crate::Reg<enable::ENABLE_SPEC>;
128#[doc = "Enable SPI slave"]
129pub mod enable;
130#[doc = "Unspecified"]
131pub use psel::PSEL;
132#[doc = r"Cluster"]
133#[doc = "Unspecified"]
134pub mod psel;
135#[doc = "Unspecified"]
136pub use rxd::RXD;
137#[doc = r"Cluster"]
138#[doc = "Unspecified"]
139pub mod rxd;
140#[doc = "Unspecified"]
141pub use txd::TXD;
142#[doc = r"Cluster"]
143#[doc = "Unspecified"]
144pub mod txd;
145#[doc = "CONFIG (rw) register accessor: an alias for `Reg<CONFIG_SPEC>`"]
146pub type CONFIG = crate::Reg<config::CONFIG_SPEC>;
147#[doc = "Configuration register"]
148pub mod config;
149#[doc = "DEF (rw) register accessor: an alias for `Reg<DEF_SPEC>`"]
150pub type DEF = crate::Reg<def::DEF_SPEC>;
151#[doc = "Default character. Character clocked out in case of an ignored transaction."]
152pub mod def;
153#[doc = "ORC (rw) register accessor: an alias for `Reg<ORC_SPEC>`"]
154pub type ORC = crate::Reg<orc::ORC_SPEC>;
155#[doc = "Over-read character"]
156pub mod orc;