1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
#[doc = r"Register block"]
#[repr(C)]
pub struct RegisterBlock {
    #[doc = "0x00 - Activate QSPI interface"]
    pub tasks_activate: crate::Reg<tasks_activate::TASKS_ACTIVATE_SPEC>,
    #[doc = "0x04 - Start transfer from external flash memory to internal RAM"]
    pub tasks_readstart: crate::Reg<tasks_readstart::TASKS_READSTART_SPEC>,
    #[doc = "0x08 - Start transfer from internal RAM to external flash memory"]
    pub tasks_writestart: crate::Reg<tasks_writestart::TASKS_WRITESTART_SPEC>,
    #[doc = "0x0c - Start external flash memory erase operation"]
    pub tasks_erasestart: crate::Reg<tasks_erasestart::TASKS_ERASESTART_SPEC>,
    #[doc = "0x10 - Deactivate QSPI interface"]
    pub tasks_deactivate: crate::Reg<tasks_deactivate::TASKS_DEACTIVATE_SPEC>,
    _reserved5: [u8; 0x6c],
    #[doc = "0x80 - Subscribe configuration for task ACTIVATE"]
    pub subscribe_activate: crate::Reg<subscribe_activate::SUBSCRIBE_ACTIVATE_SPEC>,
    #[doc = "0x84 - Subscribe configuration for task READSTART"]
    pub subscribe_readstart: crate::Reg<subscribe_readstart::SUBSCRIBE_READSTART_SPEC>,
    #[doc = "0x88 - Subscribe configuration for task WRITESTART"]
    pub subscribe_writestart: crate::Reg<subscribe_writestart::SUBSCRIBE_WRITESTART_SPEC>,
    #[doc = "0x8c - Subscribe configuration for task ERASESTART"]
    pub subscribe_erasestart: crate::Reg<subscribe_erasestart::SUBSCRIBE_ERASESTART_SPEC>,
    #[doc = "0x90 - Subscribe configuration for task DEACTIVATE"]
    pub subscribe_deactivate: crate::Reg<subscribe_deactivate::SUBSCRIBE_DEACTIVATE_SPEC>,
    _reserved10: [u8; 0x6c],
    #[doc = "0x100 - QSPI peripheral is ready. This event will be generated as a response to all QSPI tasks except DEACTIVATE."]
    pub events_ready: crate::Reg<events_ready::EVENTS_READY_SPEC>,
    _reserved11: [u8; 0x7c],
    #[doc = "0x180 - Publish configuration for event READY"]
    pub publish_ready: crate::Reg<publish_ready::PUBLISH_READY_SPEC>,
    _reserved12: [u8; 0x017c],
    #[doc = "0x300 - Enable or disable interrupt"]
    pub inten: crate::Reg<inten::INTEN_SPEC>,
    #[doc = "0x304 - Enable interrupt"]
    pub intenset: crate::Reg<intenset::INTENSET_SPEC>,
    #[doc = "0x308 - Disable interrupt"]
    pub intenclr: crate::Reg<intenclr::INTENCLR_SPEC>,
    _reserved15: [u8; 0x01f4],
    #[doc = "0x500 - Enable QSPI peripheral and acquire the pins selected in PSELn registers"]
    pub enable: crate::Reg<enable::ENABLE_SPEC>,
    #[doc = "0x504..0x510 - Unspecified"]
    pub read: READ,
    #[doc = "0x510..0x51c - Unspecified"]
    pub write: WRITE,
    #[doc = "0x51c..0x524 - Unspecified"]
    pub erase: ERASE,
    #[doc = "0x524..0x540 - Unspecified"]
    pub psel: PSEL,
    #[doc = "0x540 - Address offset into the external memory for Execute in Place operation."]
    pub xipoffset: crate::Reg<xipoffset::XIPOFFSET_SPEC>,
    #[doc = "0x544 - Interface configuration."]
    pub ifconfig0: crate::Reg<ifconfig0::IFCONFIG0_SPEC>,
    _reserved22: [u8; 0x04],
    #[doc = "0x54c - Enable Execute in Place operation."]
    pub xipen: crate::Reg<xipen::XIPEN_SPEC>,
    _reserved23: [u8; 0x10],
    #[doc = "0x560..0x580 - Unspecified"]
    pub xip_enc: XIP_ENC,
    #[doc = "0x580..0x5a0 - Unspecified"]
    pub dma_enc: DMA_ENC,
    _reserved25: [u8; 0x60],
    #[doc = "0x600 - Interface configuration."]
    pub ifconfig1: crate::Reg<ifconfig1::IFCONFIG1_SPEC>,
    #[doc = "0x604 - Status register."]
    pub status: crate::Reg<status::STATUS_SPEC>,
    _reserved27: [u8; 0x0c],
    #[doc = "0x614 - Set the duration required to enter/exit deep power-down mode (DPM)."]
    pub dpmdur: crate::Reg<dpmdur::DPMDUR_SPEC>,
    _reserved28: [u8; 0x0c],
    #[doc = "0x624 - Extended address configuration."]
    pub addrconf: crate::Reg<addrconf::ADDRCONF_SPEC>,
    _reserved29: [u8; 0x0c],
    #[doc = "0x634 - Custom instruction configuration register."]
    pub cinstrconf: crate::Reg<cinstrconf::CINSTRCONF_SPEC>,
    #[doc = "0x638 - Custom instruction data register 0."]
    pub cinstrdat0: crate::Reg<cinstrdat0::CINSTRDAT0_SPEC>,
    #[doc = "0x63c - Custom instruction data register 1."]
    pub cinstrdat1: crate::Reg<cinstrdat1::CINSTRDAT1_SPEC>,
    #[doc = "0x640 - SPI interface timing."]
    pub iftiming: crate::Reg<iftiming::IFTIMING_SPEC>,
}
#[doc = r"Register block"]
#[repr(C)]
pub struct READ {
    #[doc = "0x00 - Flash memory source address"]
    pub src: crate::Reg<self::read::src::SRC_SPEC>,
    #[doc = "0x04 - RAM destination address"]
    pub dst: crate::Reg<self::read::dst::DST_SPEC>,
    #[doc = "0x08 - Read transfer length"]
    pub cnt: crate::Reg<self::read::cnt::CNT_SPEC>,
}
#[doc = r"Register block"]
#[doc = "Unspecified"]
pub mod read;
#[doc = r"Register block"]
#[repr(C)]
pub struct WRITE {
    #[doc = "0x00 - Flash destination address"]
    pub dst: crate::Reg<self::write::dst::DST_SPEC>,
    #[doc = "0x04 - RAM source address"]
    pub src: crate::Reg<self::write::src::SRC_SPEC>,
    #[doc = "0x08 - Write transfer length"]
    pub cnt: crate::Reg<self::write::cnt::CNT_SPEC>,
}
#[doc = r"Register block"]
#[doc = "Unspecified"]
pub mod write;
#[doc = r"Register block"]
#[repr(C)]
pub struct ERASE {
    #[doc = "0x00 - Start address of flash block to be erased"]
    pub ptr: crate::Reg<self::erase::ptr::PTR_SPEC>,
    #[doc = "0x04 - Size of block to be erased."]
    pub len: crate::Reg<self::erase::len::LEN_SPEC>,
}
#[doc = r"Register block"]
#[doc = "Unspecified"]
pub mod erase;
#[doc = r"Register block"]
#[repr(C)]
pub struct PSEL {
    #[doc = "0x00 - Pin select for serial clock SCK"]
    pub sck: crate::Reg<self::psel::sck::SCK_SPEC>,
    #[doc = "0x04 - Pin select for chip select signal CSN."]
    pub csn: crate::Reg<self::psel::csn::CSN_SPEC>,
    _reserved2: [u8; 0x04],
    #[doc = "0x0c - Pin select for serial data MOSI/IO0."]
    pub io0: crate::Reg<self::psel::io0::IO0_SPEC>,
    #[doc = "0x10 - Pin select for serial data MISO/IO1."]
    pub io1: crate::Reg<self::psel::io1::IO1_SPEC>,
    #[doc = "0x14 - Pin select for serial data WP/IO2."]
    pub io2: crate::Reg<self::psel::io2::IO2_SPEC>,
    #[doc = "0x18 - Pin select for serial data HOLD/IO3."]
    pub io3: crate::Reg<self::psel::io3::IO3_SPEC>,
}
#[doc = r"Register block"]
#[doc = "Unspecified"]
pub mod psel;
#[doc = r"Register block"]
#[repr(C)]
pub struct XIP_ENC {
    #[doc = "0x00 - Bits 31:0 of XIP AES KEY"]
    pub key0: crate::Reg<self::xip_enc::key0::KEY0_SPEC>,
    #[doc = "0x04 - Bits 63:32 of XIP AES KEY"]
    pub key1: crate::Reg<self::xip_enc::key1::KEY1_SPEC>,
    #[doc = "0x08 - Bits 95:64 of XIP AES KEY"]
    pub key2: crate::Reg<self::xip_enc::key2::KEY2_SPEC>,
    #[doc = "0x0c - Bits 127:96 of XIP AES KEY"]
    pub key3: crate::Reg<self::xip_enc::key3::KEY3_SPEC>,
    #[doc = "0x10 - Bits 31:0 of XIP NONCE"]
    pub nonce0: crate::Reg<self::xip_enc::nonce0::NONCE0_SPEC>,
    #[doc = "0x14 - Bits 63:32 of XIP NONCE"]
    pub nonce1: crate::Reg<self::xip_enc::nonce1::NONCE1_SPEC>,
    #[doc = "0x18 - Bits 95:64 of XIP NONCE"]
    pub nonce2: crate::Reg<self::xip_enc::nonce2::NONCE2_SPEC>,
    #[doc = "0x1c - Enable stream cipher for XIP"]
    pub enable: crate::Reg<self::xip_enc::enable::ENABLE_SPEC>,
}
#[doc = r"Register block"]
#[doc = "Unspecified"]
pub mod xip_enc;
#[doc = r"Register block"]
#[repr(C)]
pub struct DMA_ENC {
    #[doc = "0x00 - Bits 31:0 of DMA AES KEY"]
    pub key0: crate::Reg<self::dma_enc::key0::KEY0_SPEC>,
    #[doc = "0x04 - Bits 63:32 of DMA AES KEY"]
    pub key1: crate::Reg<self::dma_enc::key1::KEY1_SPEC>,
    #[doc = "0x08 - Bits 95:64 of DMA AES KEY"]
    pub key2: crate::Reg<self::dma_enc::key2::KEY2_SPEC>,
    #[doc = "0x0c - Bits 127:96 of DMA AES KEY"]
    pub key3: crate::Reg<self::dma_enc::key3::KEY3_SPEC>,
    #[doc = "0x10 - Bits 31:0 of DMA NONCE"]
    pub nonce0: crate::Reg<self::dma_enc::nonce0::NONCE0_SPEC>,
    #[doc = "0x14 - Bits 63:32 of DMA NONCE"]
    pub nonce1: crate::Reg<self::dma_enc::nonce1::NONCE1_SPEC>,
    #[doc = "0x18 - Bits 95:64 of DMA NONCE"]
    pub nonce2: crate::Reg<self::dma_enc::nonce2::NONCE2_SPEC>,
    #[doc = "0x1c - Enable stream cipher for EasyDMA"]
    pub enable: crate::Reg<self::dma_enc::enable::ENABLE_SPEC>,
}
#[doc = r"Register block"]
#[doc = "Unspecified"]
pub mod dma_enc;
#[doc = "TASKS_ACTIVATE register accessor: an alias for `Reg<TASKS_ACTIVATE_SPEC>`"]
pub type TASKS_ACTIVATE = crate::Reg<tasks_activate::TASKS_ACTIVATE_SPEC>;
#[doc = "Activate QSPI interface"]
pub mod tasks_activate;
#[doc = "TASKS_READSTART register accessor: an alias for `Reg<TASKS_READSTART_SPEC>`"]
pub type TASKS_READSTART = crate::Reg<tasks_readstart::TASKS_READSTART_SPEC>;
#[doc = "Start transfer from external flash memory to internal RAM"]
pub mod tasks_readstart;
#[doc = "TASKS_WRITESTART register accessor: an alias for `Reg<TASKS_WRITESTART_SPEC>`"]
pub type TASKS_WRITESTART = crate::Reg<tasks_writestart::TASKS_WRITESTART_SPEC>;
#[doc = "Start transfer from internal RAM to external flash memory"]
pub mod tasks_writestart;
#[doc = "TASKS_ERASESTART register accessor: an alias for `Reg<TASKS_ERASESTART_SPEC>`"]
pub type TASKS_ERASESTART = crate::Reg<tasks_erasestart::TASKS_ERASESTART_SPEC>;
#[doc = "Start external flash memory erase operation"]
pub mod tasks_erasestart;
#[doc = "TASKS_DEACTIVATE register accessor: an alias for `Reg<TASKS_DEACTIVATE_SPEC>`"]
pub type TASKS_DEACTIVATE = crate::Reg<tasks_deactivate::TASKS_DEACTIVATE_SPEC>;
#[doc = "Deactivate QSPI interface"]
pub mod tasks_deactivate;
#[doc = "SUBSCRIBE_ACTIVATE register accessor: an alias for `Reg<SUBSCRIBE_ACTIVATE_SPEC>`"]
pub type SUBSCRIBE_ACTIVATE = crate::Reg<subscribe_activate::SUBSCRIBE_ACTIVATE_SPEC>;
#[doc = "Subscribe configuration for task ACTIVATE"]
pub mod subscribe_activate;
#[doc = "SUBSCRIBE_READSTART register accessor: an alias for `Reg<SUBSCRIBE_READSTART_SPEC>`"]
pub type SUBSCRIBE_READSTART = crate::Reg<subscribe_readstart::SUBSCRIBE_READSTART_SPEC>;
#[doc = "Subscribe configuration for task READSTART"]
pub mod subscribe_readstart;
#[doc = "SUBSCRIBE_WRITESTART register accessor: an alias for `Reg<SUBSCRIBE_WRITESTART_SPEC>`"]
pub type SUBSCRIBE_WRITESTART = crate::Reg<subscribe_writestart::SUBSCRIBE_WRITESTART_SPEC>;
#[doc = "Subscribe configuration for task WRITESTART"]
pub mod subscribe_writestart;
#[doc = "SUBSCRIBE_ERASESTART register accessor: an alias for `Reg<SUBSCRIBE_ERASESTART_SPEC>`"]
pub type SUBSCRIBE_ERASESTART = crate::Reg<subscribe_erasestart::SUBSCRIBE_ERASESTART_SPEC>;
#[doc = "Subscribe configuration for task ERASESTART"]
pub mod subscribe_erasestart;
#[doc = "SUBSCRIBE_DEACTIVATE register accessor: an alias for `Reg<SUBSCRIBE_DEACTIVATE_SPEC>`"]
pub type SUBSCRIBE_DEACTIVATE = crate::Reg<subscribe_deactivate::SUBSCRIBE_DEACTIVATE_SPEC>;
#[doc = "Subscribe configuration for task DEACTIVATE"]
pub mod subscribe_deactivate;
#[doc = "EVENTS_READY register accessor: an alias for `Reg<EVENTS_READY_SPEC>`"]
pub type EVENTS_READY = crate::Reg<events_ready::EVENTS_READY_SPEC>;
#[doc = "QSPI peripheral is ready. This event will be generated as a response to all QSPI tasks except DEACTIVATE."]
pub mod events_ready;
#[doc = "PUBLISH_READY register accessor: an alias for `Reg<PUBLISH_READY_SPEC>`"]
pub type PUBLISH_READY = crate::Reg<publish_ready::PUBLISH_READY_SPEC>;
#[doc = "Publish configuration for event READY"]
pub mod publish_ready;
#[doc = "INTEN register accessor: an alias for `Reg<INTEN_SPEC>`"]
pub type INTEN = crate::Reg<inten::INTEN_SPEC>;
#[doc = "Enable or disable interrupt"]
pub mod inten;
#[doc = "INTENSET register accessor: an alias for `Reg<INTENSET_SPEC>`"]
pub type INTENSET = crate::Reg<intenset::INTENSET_SPEC>;
#[doc = "Enable interrupt"]
pub mod intenset;
#[doc = "INTENCLR register accessor: an alias for `Reg<INTENCLR_SPEC>`"]
pub type INTENCLR = crate::Reg<intenclr::INTENCLR_SPEC>;
#[doc = "Disable interrupt"]
pub mod intenclr;
#[doc = "ENABLE register accessor: an alias for `Reg<ENABLE_SPEC>`"]
pub type ENABLE = crate::Reg<enable::ENABLE_SPEC>;
#[doc = "Enable QSPI peripheral and acquire the pins selected in PSELn registers"]
pub mod enable;
#[doc = "XIPOFFSET register accessor: an alias for `Reg<XIPOFFSET_SPEC>`"]
pub type XIPOFFSET = crate::Reg<xipoffset::XIPOFFSET_SPEC>;
#[doc = "Address offset into the external memory for Execute in Place operation."]
pub mod xipoffset;
#[doc = "IFCONFIG0 register accessor: an alias for `Reg<IFCONFIG0_SPEC>`"]
pub type IFCONFIG0 = crate::Reg<ifconfig0::IFCONFIG0_SPEC>;
#[doc = "Interface configuration."]
pub mod ifconfig0;
#[doc = "XIPEN register accessor: an alias for `Reg<XIPEN_SPEC>`"]
pub type XIPEN = crate::Reg<xipen::XIPEN_SPEC>;
#[doc = "Enable Execute in Place operation."]
pub mod xipen;
#[doc = "IFCONFIG1 register accessor: an alias for `Reg<IFCONFIG1_SPEC>`"]
pub type IFCONFIG1 = crate::Reg<ifconfig1::IFCONFIG1_SPEC>;
#[doc = "Interface configuration."]
pub mod ifconfig1;
#[doc = "STATUS register accessor: an alias for `Reg<STATUS_SPEC>`"]
pub type STATUS = crate::Reg<status::STATUS_SPEC>;
#[doc = "Status register."]
pub mod status;
#[doc = "DPMDUR register accessor: an alias for `Reg<DPMDUR_SPEC>`"]
pub type DPMDUR = crate::Reg<dpmdur::DPMDUR_SPEC>;
#[doc = "Set the duration required to enter/exit deep power-down mode (DPM)."]
pub mod dpmdur;
#[doc = "ADDRCONF register accessor: an alias for `Reg<ADDRCONF_SPEC>`"]
pub type ADDRCONF = crate::Reg<addrconf::ADDRCONF_SPEC>;
#[doc = "Extended address configuration."]
pub mod addrconf;
#[doc = "CINSTRCONF register accessor: an alias for `Reg<CINSTRCONF_SPEC>`"]
pub type CINSTRCONF = crate::Reg<cinstrconf::CINSTRCONF_SPEC>;
#[doc = "Custom instruction configuration register."]
pub mod cinstrconf;
#[doc = "CINSTRDAT0 register accessor: an alias for `Reg<CINSTRDAT0_SPEC>`"]
pub type CINSTRDAT0 = crate::Reg<cinstrdat0::CINSTRDAT0_SPEC>;
#[doc = "Custom instruction data register 0."]
pub mod cinstrdat0;
#[doc = "CINSTRDAT1 register accessor: an alias for `Reg<CINSTRDAT1_SPEC>`"]
pub type CINSTRDAT1 = crate::Reg<cinstrdat1::CINSTRDAT1_SPEC>;
#[doc = "Custom instruction data register 1."]
pub mod cinstrdat1;
#[doc = "IFTIMING register accessor: an alias for `Reg<IFTIMING_SPEC>`"]
pub type IFTIMING = crate::Reg<iftiming::IFTIMING_SPEC>;
#[doc = "SPI interface timing."]
pub mod iftiming;