1#[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; 0xd8],
10    #[doc = "0x104 - Granted transaction completed"]
11    pub events_end: EVENTS_END,
12    _reserved3: [u8; 0x08],
13    #[doc = "0x110 - End of RXD buffer reached"]
14    pub events_endrx: EVENTS_ENDRX,
15    _reserved4: [u8; 0x14],
16    #[doc = "0x128 - Semaphore acquired"]
17    pub events_acquired: EVENTS_ACQUIRED,
18    _reserved5: [u8; 0xd4],
19    #[doc = "0x200 - Shortcuts between local events and tasks"]
20    pub shorts: SHORTS,
21    _reserved6: [u8; 0x0100],
22    #[doc = "0x304 - Enable interrupt"]
23    pub intenset: INTENSET,
24    #[doc = "0x308 - Disable interrupt"]
25    pub intenclr: INTENCLR,
26    _reserved8: [u8; 0xf4],
27    #[doc = "0x400 - Semaphore status register"]
28    pub semstat: SEMSTAT,
29    _reserved9: [u8; 0x3c],
30    #[doc = "0x440 - Status from last transaction"]
31    pub status: STATUS,
32    _reserved10: [u8; 0xbc],
33    #[doc = "0x500 - Enable SPI slave"]
34    pub enable: ENABLE,
35    _reserved11: [u8; 0x04],
36    #[doc = "0x508..0x518 - Unspecified"]
37    pub psel: PSEL,
38    _reserved12: [u8; 0x1c],
39    #[doc = "0x534..0x544 - Unspecified"]
40    pub rxd: RXD,
41    #[doc = "0x544..0x554 - Unspecified"]
42    pub txd: TXD,
43    #[doc = "0x554 - Configuration register"]
44    pub config: CONFIG,
45    _reserved15: [u8; 0x04],
46    #[doc = "0x55c - Default character. Character clocked out in case of an ignored transaction."]
47    pub def: DEF,
48    _reserved16: [u8; 0x60],
49    #[doc = "0x5c0 - Over-read character"]
50    pub orc: ORC,
51}
52#[doc = "TASKS_ACQUIRE (w) register accessor: an alias for `Reg<TASKS_ACQUIRE_SPEC>`"]
53pub type TASKS_ACQUIRE = crate::Reg<tasks_acquire::TASKS_ACQUIRE_SPEC>;
54#[doc = "Acquire SPI semaphore"]
55pub mod tasks_acquire;
56#[doc = "TASKS_RELEASE (w) register accessor: an alias for `Reg<TASKS_RELEASE_SPEC>`"]
57pub type TASKS_RELEASE = crate::Reg<tasks_release::TASKS_RELEASE_SPEC>;
58#[doc = "Release SPI semaphore, enabling the SPI slave to acquire it"]
59pub mod tasks_release;
60#[doc = "EVENTS_END (rw) register accessor: an alias for `Reg<EVENTS_END_SPEC>`"]
61pub type EVENTS_END = crate::Reg<events_end::EVENTS_END_SPEC>;
62#[doc = "Granted transaction completed"]
63pub mod events_end;
64#[doc = "EVENTS_ENDRX (rw) register accessor: an alias for `Reg<EVENTS_ENDRX_SPEC>`"]
65pub type EVENTS_ENDRX = crate::Reg<events_endrx::EVENTS_ENDRX_SPEC>;
66#[doc = "End of RXD buffer reached"]
67pub mod events_endrx;
68#[doc = "EVENTS_ACQUIRED (rw) register accessor: an alias for `Reg<EVENTS_ACQUIRED_SPEC>`"]
69pub type EVENTS_ACQUIRED = crate::Reg<events_acquired::EVENTS_ACQUIRED_SPEC>;
70#[doc = "Semaphore acquired"]
71pub mod events_acquired;
72#[doc = "SHORTS (rw) register accessor: an alias for `Reg<SHORTS_SPEC>`"]
73pub type SHORTS = crate::Reg<shorts::SHORTS_SPEC>;
74#[doc = "Shortcuts between local events and tasks"]
75pub mod shorts;
76#[doc = "INTENSET (rw) register accessor: an alias for `Reg<INTENSET_SPEC>`"]
77pub type INTENSET = crate::Reg<intenset::INTENSET_SPEC>;
78#[doc = "Enable interrupt"]
79pub mod intenset;
80#[doc = "INTENCLR (rw) register accessor: an alias for `Reg<INTENCLR_SPEC>`"]
81pub type INTENCLR = crate::Reg<intenclr::INTENCLR_SPEC>;
82#[doc = "Disable interrupt"]
83pub mod intenclr;
84#[doc = "SEMSTAT (r) register accessor: an alias for `Reg<SEMSTAT_SPEC>`"]
85pub type SEMSTAT = crate::Reg<semstat::SEMSTAT_SPEC>;
86#[doc = "Semaphore status register"]
87pub mod semstat;
88#[doc = "STATUS (rw) register accessor: an alias for `Reg<STATUS_SPEC>`"]
89pub type STATUS = crate::Reg<status::STATUS_SPEC>;
90#[doc = "Status from last transaction"]
91pub mod status;
92#[doc = "ENABLE (rw) register accessor: an alias for `Reg<ENABLE_SPEC>`"]
93pub type ENABLE = crate::Reg<enable::ENABLE_SPEC>;
94#[doc = "Enable SPI slave"]
95pub mod enable;
96#[doc = "Unspecified"]
97pub use psel::PSEL;
98#[doc = r"Cluster"]
99#[doc = "Unspecified"]
100pub mod psel;
101#[doc = "Unspecified"]
102pub use rxd::RXD;
103#[doc = r"Cluster"]
104#[doc = "Unspecified"]
105pub mod rxd;
106#[doc = "Unspecified"]
107pub use txd::TXD;
108#[doc = r"Cluster"]
109#[doc = "Unspecified"]
110pub mod txd;
111#[doc = "CONFIG (rw) register accessor: an alias for `Reg<CONFIG_SPEC>`"]
112pub type CONFIG = crate::Reg<config::CONFIG_SPEC>;
113#[doc = "Configuration register"]
114pub mod config;
115#[doc = "DEF (rw) register accessor: an alias for `Reg<DEF_SPEC>`"]
116pub type DEF = crate::Reg<def::DEF_SPEC>;
117#[doc = "Default character. Character clocked out in case of an ignored transaction."]
118pub mod def;
119#[doc = "ORC (rw) register accessor: an alias for `Reg<ORC_SPEC>`"]
120pub type ORC = crate::Reg<orc::ORC_SPEC>;
121#[doc = "Over-read character"]
122pub mod orc;