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 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369
use vcell::VolatileCell; #[doc = r" Register block"] #[repr(C)] pub struct RegisterBlock { #[doc = "0x00 - Activate NFC peripheral for incoming and outgoing frames, change state to activated"] pub tasks_activate: TASKS_ACTIVATE, #[doc = "0x04 - Disable NFC peripheral"] pub tasks_disable: TASKS_DISABLE, #[doc = "0x08 - Enable NFC sense field mode, change state to sense mode"] pub tasks_sense: TASKS_SENSE, #[doc = "0x0c - Start transmission of a outgoing frame, change state to transmit"] pub tasks_starttx: TASKS_STARTTX, _reserved0: [u8; 12usize], #[doc = "0x1c - Initializes the EasyDMA for receive."] pub tasks_enablerxdata: TASKS_ENABLERXDATA, _reserved1: [u8; 4usize], #[doc = "0x24 - Force state machine to IDLE state"] pub tasks_goidle: TASKS_GOIDLE, #[doc = "0x28 - Force state machine to SLEEP_A state"] pub tasks_gosleep: TASKS_GOSLEEP, _reserved2: [u8; 212usize], #[doc = "0x100 - The NFC peripheral is ready to receive and send frames"] pub events_ready: EVENTS_READY, #[doc = "0x104 - Remote NFC field detected"] pub events_fielddetected: EVENTS_FIELDDETECTED, #[doc = "0x108 - Remote NFC field lost"] pub events_fieldlost: EVENTS_FIELDLOST, #[doc = "0x10c - Marks the start of the first symbol of a transmitted frame"] pub events_txframestart: EVENTS_TXFRAMESTART, #[doc = "0x110 - Marks the end of the last transmitted on-air symbol of a frame"] pub events_txframeend: EVENTS_TXFRAMEEND, #[doc = "0x114 - Marks the end of the first symbol of a received frame"] pub events_rxframestart: EVENTS_RXFRAMESTART, #[doc = "0x118 - Received data have been checked (CRC, parity) and transferred to RAM, and EasyDMA has ended accessing the RX buffer"] pub events_rxframeend: EVENTS_RXFRAMEEND, #[doc = "0x11c - NFC error reported. The ERRORSTATUS register contains details on the source of the error."] pub events_error: EVENTS_ERROR, _reserved3: [u8; 8usize], #[doc = "0x128 - NFC RX frame error reported. The FRAMESTATUS.RX register contains details on the source of the error."] pub events_rxerror: EVENTS_RXERROR, #[doc = "0x12c - RX buffer (as defined by PACKETPTR and MAXLEN) in Data RAM full."] pub events_endrx: EVENTS_ENDRX, #[doc = "0x130 - Transmission of data in RAM has ended, and EasyDMA has ended accessing the TX buffer"] pub events_endtx: EVENTS_ENDTX, _reserved4: [u8; 4usize], #[doc = "0x138 - Auto collision resolution process has started"] pub events_autocolresstarted: EVENTS_AUTOCOLRESSTARTED, _reserved5: [u8; 12usize], #[doc = "0x148 - NFC Auto collision resolution error reported."] pub events_collision: EVENTS_COLLISION, #[doc = "0x14c - NFC Auto collision resolution successfully completed"] pub events_selected: EVENTS_SELECTED, #[doc = "0x150 - EasyDMA is ready to receive or send frames."] pub events_started: EVENTS_STARTED, _reserved6: [u8; 172usize], #[doc = "0x200 - Shortcut register"] pub shorts: SHORTS, _reserved7: [u8; 252usize], #[doc = "0x300 - Enable or disable interrupt"] pub inten: INTEN, #[doc = "0x304 - Enable interrupt"] pub intenset: INTENSET, #[doc = "0x308 - Disable interrupt"] pub intenclr: INTENCLR, _reserved8: [u8; 248usize], #[doc = "0x404 - NFC Error Status register"] pub errorstatus: ERRORSTATUS, _reserved9: [u8; 4usize], #[doc = "0x40c - Unspecified"] pub framestatus: FRAMESTATUS, _reserved10: [u8; 32usize], #[doc = "0x430 - Current value driven to the NFC Load Control"] pub currentloadctrl: CURRENTLOADCTRL, _reserved11: [u8; 8usize], #[doc = "0x43c - Indicates the presence or not of a valid field"] pub fieldpresent: FIELDPRESENT, _reserved12: [u8; 196usize], #[doc = "0x504 - Minimum frame delay"] pub framedelaymin: FRAMEDELAYMIN, #[doc = "0x508 - Maximum frame delay"] pub framedelaymax: FRAMEDELAYMAX, #[doc = "0x50c - Configuration register for the Frame Delay Timer"] pub framedelaymode: FRAMEDELAYMODE, #[doc = "0x510 - Packet pointer for TXD and RXD data storage in Data RAM"] pub packetptr: PACKETPTR, #[doc = "0x514 - Size of allocated for TXD and RXD data storage buffer in Data RAM"] pub maxlen: MAXLEN, #[doc = "0x518 - Unspecified"] pub txd: TXD, #[doc = "0x520 - Unspecified"] pub rxd: RXD, _reserved13: [u8; 104usize], #[doc = "0x590 - Last NFCID1 part (4, 7 or 10 bytes ID)"] pub nfcid1_last: NFCID1_LAST, #[doc = "0x594 - Second last NFCID1 part (7 or 10 bytes ID)"] pub nfcid1_2nd_last: NFCID1_2ND_LAST, #[doc = "0x598 - Third last NFCID1 part (10 bytes ID)"] pub nfcid1_3rd_last: NFCID1_3RD_LAST, _reserved14: [u8; 4usize], #[doc = "0x5a0 - NFC-A SENS_RES auto-response settings"] pub sensres: SENSRES, #[doc = "0x5a4 - NFC-A SEL_RES auto-response settings"] pub selres: SELRES, } #[doc = r" Register block"] #[repr(C)] pub struct FRAMESTATUS { #[doc = "0x00 - Result of last incoming frames"] pub rx: self::framestatus::RX, } #[doc = r" Register block"] #[doc = "Unspecified"] pub mod framestatus; #[doc = r" Register block"] #[repr(C)] pub struct TXD { #[doc = "0x00 - Configuration of outgoing frames"] pub frameconfig: self::txd::FRAMECONFIG, #[doc = "0x04 - Size of outgoing frame"] pub amount: self::txd::AMOUNT, } #[doc = r" Register block"] #[doc = "Unspecified"] pub mod txd; #[doc = r" Register block"] #[repr(C)] pub struct RXD { #[doc = "0x00 - Configuration of incoming frames"] pub frameconfig: self::rxd::FRAMECONFIG, #[doc = "0x04 - Size of last incoming frame"] pub amount: self::rxd::AMOUNT, } #[doc = r" Register block"] #[doc = "Unspecified"] pub mod rxd; #[doc = "Activate NFC peripheral for incoming and outgoing frames, change state to activated"] pub struct TASKS_ACTIVATE { register: VolatileCell<u32>, } #[doc = "Activate NFC peripheral for incoming and outgoing frames, change state to activated"] pub mod tasks_activate; #[doc = "Disable NFC peripheral"] pub struct TASKS_DISABLE { register: VolatileCell<u32>, } #[doc = "Disable NFC peripheral"] pub mod tasks_disable; #[doc = "Enable NFC sense field mode, change state to sense mode"] pub struct TASKS_SENSE { register: VolatileCell<u32>, } #[doc = "Enable NFC sense field mode, change state to sense mode"] pub mod tasks_sense; #[doc = "Start transmission of a outgoing frame, change state to transmit"] pub struct TASKS_STARTTX { register: VolatileCell<u32>, } #[doc = "Start transmission of a outgoing frame, change state to transmit"] pub mod tasks_starttx; #[doc = "Initializes the EasyDMA for receive."] pub struct TASKS_ENABLERXDATA { register: VolatileCell<u32>, } #[doc = "Initializes the EasyDMA for receive."] pub mod tasks_enablerxdata; #[doc = "Force state machine to IDLE state"] pub struct TASKS_GOIDLE { register: VolatileCell<u32>, } #[doc = "Force state machine to IDLE state"] pub mod tasks_goidle; #[doc = "Force state machine to SLEEP_A state"] pub struct TASKS_GOSLEEP { register: VolatileCell<u32>, } #[doc = "Force state machine to SLEEP_A state"] pub mod tasks_gosleep; #[doc = "The NFC peripheral is ready to receive and send frames"] pub struct EVENTS_READY { register: VolatileCell<u32>, } #[doc = "The NFC peripheral is ready to receive and send frames"] pub mod events_ready; #[doc = "Remote NFC field detected"] pub struct EVENTS_FIELDDETECTED { register: VolatileCell<u32>, } #[doc = "Remote NFC field detected"] pub mod events_fielddetected; #[doc = "Remote NFC field lost"] pub struct EVENTS_FIELDLOST { register: VolatileCell<u32>, } #[doc = "Remote NFC field lost"] pub mod events_fieldlost; #[doc = "Marks the start of the first symbol of a transmitted frame"] pub struct EVENTS_TXFRAMESTART { register: VolatileCell<u32>, } #[doc = "Marks the start of the first symbol of a transmitted frame"] pub mod events_txframestart; #[doc = "Marks the end of the last transmitted on-air symbol of a frame"] pub struct EVENTS_TXFRAMEEND { register: VolatileCell<u32>, } #[doc = "Marks the end of the last transmitted on-air symbol of a frame"] pub mod events_txframeend; #[doc = "Marks the end of the first symbol of a received frame"] pub struct EVENTS_RXFRAMESTART { register: VolatileCell<u32>, } #[doc = "Marks the end of the first symbol of a received frame"] pub mod events_rxframestart; #[doc = "Received data have been checked (CRC, parity) and transferred to RAM, and EasyDMA has ended accessing the RX buffer"] pub struct EVENTS_RXFRAMEEND { register: VolatileCell<u32>, } #[doc = "Received data have been checked (CRC, parity) and transferred to RAM, and EasyDMA has ended accessing the RX buffer"] pub mod events_rxframeend; #[doc = "NFC error reported. The ERRORSTATUS register contains details on the source of the error."] pub struct EVENTS_ERROR { register: VolatileCell<u32>, } #[doc = "NFC error reported. The ERRORSTATUS register contains details on the source of the error."] pub mod events_error; #[doc = "NFC RX frame error reported. The FRAMESTATUS.RX register contains details on the source of the error."] pub struct EVENTS_RXERROR { register: VolatileCell<u32>, } #[doc = "NFC RX frame error reported. The FRAMESTATUS.RX register contains details on the source of the error."] pub mod events_rxerror; #[doc = "RX buffer (as defined by PACKETPTR and MAXLEN) in Data RAM full."] pub struct EVENTS_ENDRX { register: VolatileCell<u32>, } #[doc = "RX buffer (as defined by PACKETPTR and MAXLEN) in Data RAM full."] pub mod events_endrx; #[doc = "Transmission of data in RAM has ended, and EasyDMA has ended accessing the TX buffer"] pub struct EVENTS_ENDTX { register: VolatileCell<u32>, } #[doc = "Transmission of data in RAM has ended, and EasyDMA has ended accessing the TX buffer"] pub mod events_endtx; #[doc = "Auto collision resolution process has started"] pub struct EVENTS_AUTOCOLRESSTARTED { register: VolatileCell<u32>, } #[doc = "Auto collision resolution process has started"] pub mod events_autocolresstarted; #[doc = "NFC Auto collision resolution error reported."] pub struct EVENTS_COLLISION { register: VolatileCell<u32>, } #[doc = "NFC Auto collision resolution error reported."] pub mod events_collision; #[doc = "NFC Auto collision resolution successfully completed"] pub struct EVENTS_SELECTED { register: VolatileCell<u32>, } #[doc = "NFC Auto collision resolution successfully completed"] pub mod events_selected; #[doc = "EasyDMA is ready to receive or send frames."] pub struct EVENTS_STARTED { register: VolatileCell<u32>, } #[doc = "EasyDMA is ready to receive or send frames."] pub mod events_started; #[doc = "Shortcut register"] pub struct SHORTS { register: VolatileCell<u32>, } #[doc = "Shortcut register"] pub mod shorts; #[doc = "Enable or disable interrupt"] pub struct INTEN { register: VolatileCell<u32>, } #[doc = "Enable or disable interrupt"] pub mod inten; #[doc = "Enable interrupt"] pub struct INTENSET { register: VolatileCell<u32>, } #[doc = "Enable interrupt"] pub mod intenset; #[doc = "Disable interrupt"] pub struct INTENCLR { register: VolatileCell<u32>, } #[doc = "Disable interrupt"] pub mod intenclr; #[doc = "NFC Error Status register"] pub struct ERRORSTATUS { register: VolatileCell<u32>, } #[doc = "NFC Error Status register"] pub mod errorstatus; #[doc = "Current value driven to the NFC Load Control"] pub struct CURRENTLOADCTRL { register: VolatileCell<u32>, } #[doc = "Current value driven to the NFC Load Control"] pub mod currentloadctrl; #[doc = "Indicates the presence or not of a valid field"] pub struct FIELDPRESENT { register: VolatileCell<u32>, } #[doc = "Indicates the presence or not of a valid field"] pub mod fieldpresent; #[doc = "Minimum frame delay"] pub struct FRAMEDELAYMIN { register: VolatileCell<u32>, } #[doc = "Minimum frame delay"] pub mod framedelaymin; #[doc = "Maximum frame delay"] pub struct FRAMEDELAYMAX { register: VolatileCell<u32>, } #[doc = "Maximum frame delay"] pub mod framedelaymax; #[doc = "Configuration register for the Frame Delay Timer"] pub struct FRAMEDELAYMODE { register: VolatileCell<u32>, } #[doc = "Configuration register for the Frame Delay Timer"] pub mod framedelaymode; #[doc = "Packet pointer for TXD and RXD data storage in Data RAM"] pub struct PACKETPTR { register: VolatileCell<u32>, } #[doc = "Packet pointer for TXD and RXD data storage in Data RAM"] pub mod packetptr; #[doc = "Size of allocated for TXD and RXD data storage buffer in Data RAM"] pub struct MAXLEN { register: VolatileCell<u32>, } #[doc = "Size of allocated for TXD and RXD data storage buffer in Data RAM"] pub mod maxlen; #[doc = "Last NFCID1 part (4, 7 or 10 bytes ID)"] pub struct NFCID1_LAST { register: VolatileCell<u32>, } #[doc = "Last NFCID1 part (4, 7 or 10 bytes ID)"] pub mod nfcid1_last; #[doc = "Second last NFCID1 part (7 or 10 bytes ID)"] pub struct NFCID1_2ND_LAST { register: VolatileCell<u32>, } #[doc = "Second last NFCID1 part (7 or 10 bytes ID)"] pub mod nfcid1_2nd_last; #[doc = "Third last NFCID1 part (10 bytes ID)"] pub struct NFCID1_3RD_LAST { register: VolatileCell<u32>, } #[doc = "Third last NFCID1 part (10 bytes ID)"] pub mod nfcid1_3rd_last; #[doc = "NFC-A SENS_RES auto-response settings"] pub struct SENSRES { register: VolatileCell<u32>, } #[doc = "NFC-A SENS_RES auto-response settings"] pub mod sensres; #[doc = "NFC-A SEL_RES auto-response settings"] pub struct SELRES { register: VolatileCell<u32>, } #[doc = "NFC-A SEL_RES auto-response settings"] pub mod selres;