1#[doc = r"Register block"]
2#[repr(C)]
3pub struct RegisterBlock {
4 #[doc = "0x00 - Memory System Control Register"]
5 pub ctrl: crate::Reg<ctrl::CTRL_SPEC>,
6 #[doc = "0x04 - Read Control Register"]
7 pub readctrl: crate::Reg<readctrl::READCTRL_SPEC>,
8 #[doc = "0x08 - Write Control Register"]
9 pub writectrl: crate::Reg<writectrl::WRITECTRL_SPEC>,
10 #[doc = "0x0c - Write Command Register"]
11 pub writecmd: crate::Reg<writecmd::WRITECMD_SPEC>,
12 #[doc = "0x10 - Page Erase/Write Address Buffer"]
13 pub addrb: crate::Reg<addrb::ADDRB_SPEC>,
14 _reserved5: [u8; 0x04],
15 #[doc = "0x18 - Write Data Register"]
16 pub wdata: crate::Reg<wdata::WDATA_SPEC>,
17 #[doc = "0x1c - Status Register"]
18 pub status: crate::Reg<status::STATUS_SPEC>,
19 _reserved7: [u8; 0x10],
20 #[doc = "0x30 - Interrupt Flag Register"]
21 pub if_: crate::Reg<if_::IF_SPEC>,
22 #[doc = "0x34 - Interrupt Flag Set Register"]
23 pub ifs: crate::Reg<ifs::IFS_SPEC>,
24 #[doc = "0x38 - Interrupt Flag Clear Register"]
25 pub ifc: crate::Reg<ifc::IFC_SPEC>,
26 #[doc = "0x3c - Interrupt Enable Register"]
27 pub ien: crate::Reg<ien::IEN_SPEC>,
28 #[doc = "0x40 - Configuration Lock Register"]
29 pub lock: crate::Reg<lock::LOCK_SPEC>,
30 #[doc = "0x44 - Flash Cache Command Register"]
31 pub cachecmd: crate::Reg<cachecmd::CACHECMD_SPEC>,
32 #[doc = "0x48 - Cache Hits Performance Counter"]
33 pub cachehits: crate::Reg<cachehits::CACHEHITS_SPEC>,
34 #[doc = "0x4c - Cache Misses Performance Counter"]
35 pub cachemisses: crate::Reg<cachemisses::CACHEMISSES_SPEC>,
36 _reserved15: [u8; 0x04],
37 #[doc = "0x54 - Mass Erase Lock Register"]
38 pub masslock: crate::Reg<masslock::MASSLOCK_SPEC>,
39 #[doc = "0x58 - Irq Latency Register"]
40 pub irqlatency: crate::Reg<irqlatency::IRQLATENCY_SPEC>,
41 #[doc = "0x5c - Startup Control"]
42 pub startup: crate::Reg<startup::STARTUP_SPEC>,
43 _reserved18: [u8; 0x14],
44 #[doc = "0x74 - Command Register"]
45 pub cmd: crate::Reg<cmd::CMD_SPEC>,
46 _reserved19: [u8; 0x18],
47 #[doc = "0x90 - Bootloader Read and Write Enable, Write Once Register"]
48 pub bootloaderctrl: crate::Reg<bootloaderctrl::BOOTLOADERCTRL_SPEC>,
49 #[doc = "0x94 - Software Unlock AAP Command Register"]
50 pub aapunlockcmd: crate::Reg<aapunlockcmd::AAPUNLOCKCMD_SPEC>,
51 #[doc = "0x98 - Cache Configuration Register 0"]
52 pub cacheconfig0: crate::Reg<cacheconfig0::CACHECONFIG0_SPEC>,
53}
54#[doc = "CTRL register accessor: an alias for `Reg<CTRL_SPEC>`"]
55pub type CTRL = crate::Reg<ctrl::CTRL_SPEC>;
56#[doc = "Memory System Control Register"]
57pub mod ctrl;
58#[doc = "READCTRL register accessor: an alias for `Reg<READCTRL_SPEC>`"]
59pub type READCTRL = crate::Reg<readctrl::READCTRL_SPEC>;
60#[doc = "Read Control Register"]
61pub mod readctrl;
62#[doc = "WRITECTRL register accessor: an alias for `Reg<WRITECTRL_SPEC>`"]
63pub type WRITECTRL = crate::Reg<writectrl::WRITECTRL_SPEC>;
64#[doc = "Write Control Register"]
65pub mod writectrl;
66#[doc = "WRITECMD register accessor: an alias for `Reg<WRITECMD_SPEC>`"]
67pub type WRITECMD = crate::Reg<writecmd::WRITECMD_SPEC>;
68#[doc = "Write Command Register"]
69pub mod writecmd;
70#[doc = "ADDRB register accessor: an alias for `Reg<ADDRB_SPEC>`"]
71pub type ADDRB = crate::Reg<addrb::ADDRB_SPEC>;
72#[doc = "Page Erase/Write Address Buffer"]
73pub mod addrb;
74#[doc = "WDATA register accessor: an alias for `Reg<WDATA_SPEC>`"]
75pub type WDATA = crate::Reg<wdata::WDATA_SPEC>;
76#[doc = "Write Data Register"]
77pub mod wdata;
78#[doc = "STATUS register accessor: an alias for `Reg<STATUS_SPEC>`"]
79pub type STATUS = crate::Reg<status::STATUS_SPEC>;
80#[doc = "Status Register"]
81pub mod status;
82#[doc = "IF register accessor: an alias for `Reg<IF_SPEC>`"]
83pub type IF = crate::Reg<if_::IF_SPEC>;
84#[doc = "Interrupt Flag Register"]
85pub mod if_;
86#[doc = "IFS register accessor: an alias for `Reg<IFS_SPEC>`"]
87pub type IFS = crate::Reg<ifs::IFS_SPEC>;
88#[doc = "Interrupt Flag Set Register"]
89pub mod ifs;
90#[doc = "IFC register accessor: an alias for `Reg<IFC_SPEC>`"]
91pub type IFC = crate::Reg<ifc::IFC_SPEC>;
92#[doc = "Interrupt Flag Clear Register"]
93pub mod ifc;
94#[doc = "IEN register accessor: an alias for `Reg<IEN_SPEC>`"]
95pub type IEN = crate::Reg<ien::IEN_SPEC>;
96#[doc = "Interrupt Enable Register"]
97pub mod ien;
98#[doc = "LOCK register accessor: an alias for `Reg<LOCK_SPEC>`"]
99pub type LOCK = crate::Reg<lock::LOCK_SPEC>;
100#[doc = "Configuration Lock Register"]
101pub mod lock;
102#[doc = "CACHECMD register accessor: an alias for `Reg<CACHECMD_SPEC>`"]
103pub type CACHECMD = crate::Reg<cachecmd::CACHECMD_SPEC>;
104#[doc = "Flash Cache Command Register"]
105pub mod cachecmd;
106#[doc = "CACHEHITS register accessor: an alias for `Reg<CACHEHITS_SPEC>`"]
107pub type CACHEHITS = crate::Reg<cachehits::CACHEHITS_SPEC>;
108#[doc = "Cache Hits Performance Counter"]
109pub mod cachehits;
110#[doc = "CACHEMISSES register accessor: an alias for `Reg<CACHEMISSES_SPEC>`"]
111pub type CACHEMISSES = crate::Reg<cachemisses::CACHEMISSES_SPEC>;
112#[doc = "Cache Misses Performance Counter"]
113pub mod cachemisses;
114#[doc = "MASSLOCK register accessor: an alias for `Reg<MASSLOCK_SPEC>`"]
115pub type MASSLOCK = crate::Reg<masslock::MASSLOCK_SPEC>;
116#[doc = "Mass Erase Lock Register"]
117pub mod masslock;
118#[doc = "IRQLATENCY register accessor: an alias for `Reg<IRQLATENCY_SPEC>`"]
119pub type IRQLATENCY = crate::Reg<irqlatency::IRQLATENCY_SPEC>;
120#[doc = "Irq Latency Register"]
121pub mod irqlatency;
122#[doc = "STARTUP register accessor: an alias for `Reg<STARTUP_SPEC>`"]
123pub type STARTUP = crate::Reg<startup::STARTUP_SPEC>;
124#[doc = "Startup Control"]
125pub mod startup;
126#[doc = "CMD register accessor: an alias for `Reg<CMD_SPEC>`"]
127pub type CMD = crate::Reg<cmd::CMD_SPEC>;
128#[doc = "Command Register"]
129pub mod cmd;
130#[doc = "BOOTLOADERCTRL register accessor: an alias for `Reg<BOOTLOADERCTRL_SPEC>`"]
131pub type BOOTLOADERCTRL = crate::Reg<bootloaderctrl::BOOTLOADERCTRL_SPEC>;
132#[doc = "Bootloader Read and Write Enable, Write Once Register"]
133pub mod bootloaderctrl;
134#[doc = "AAPUNLOCKCMD register accessor: an alias for `Reg<AAPUNLOCKCMD_SPEC>`"]
135pub type AAPUNLOCKCMD = crate::Reg<aapunlockcmd::AAPUNLOCKCMD_SPEC>;
136#[doc = "Software Unlock AAP Command Register"]
137pub mod aapunlockcmd;
138#[doc = "CACHECONFIG0 register accessor: an alias for `Reg<CACHECONFIG0_SPEC>`"]
139pub type CACHECONFIG0 = crate::Reg<cacheconfig0::CACHECONFIG0_SPEC>;
140#[doc = "Cache Configuration Register 0"]
141pub mod cacheconfig0;