#[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: crate::Reg, #[doc = "0x04 - Disable NFC peripheral"] pub tasks_disable: crate::Reg, #[doc = "0x08 - Enable NFC sense field mode, change state to sense mode"] pub tasks_sense: crate::Reg, #[doc = "0x0c - Start transmission of a outgoing frame, change state to transmit"] pub tasks_starttx: crate::Reg, _reserved4: [u8; 0x0c], #[doc = "0x1c - Initializes the EasyDMA for receive."] pub tasks_enablerxdata: crate::Reg, _reserved5: [u8; 0x04], #[doc = "0x24 - Force state machine to IDLE state"] pub tasks_goidle: crate::Reg, #[doc = "0x28 - Force state machine to SLEEP_A state"] pub tasks_gosleep: crate::Reg, _reserved7: [u8; 0xd4], #[doc = "0x100 - The NFC peripheral is ready to receive and send frames"] pub events_ready: crate::Reg, #[doc = "0x104 - Remote NFC field detected"] pub events_fielddetected: crate::Reg, #[doc = "0x108 - Remote NFC field lost"] pub events_fieldlost: crate::Reg, #[doc = "0x10c - Marks the start of the first symbol of a transmitted frame"] pub events_txframestart: crate::Reg, #[doc = "0x110 - Marks the end of the last transmitted on-air symbol of a frame"] pub events_txframeend: crate::Reg, #[doc = "0x114 - Marks the end of the first symbol of a received frame"] pub events_rxframestart: crate::Reg, #[doc = "0x118 - Received data have been checked (CRC, parity) and transferred to RAM, and EasyDMA has ended accessing the RX buffer"] pub events_rxframeend: crate::Reg, #[doc = "0x11c - NFC error reported. The ERRORSTATUS register contains details on the source of the error."] pub events_error: crate::Reg, _reserved15: [u8; 0x08], #[doc = "0x128 - NFC RX frame error reported. The FRAMESTATUS.RX register contains details on the source of the error."] pub events_rxerror: crate::Reg, #[doc = "0x12c - RX buffer (as defined by PACKETPTR and MAXLEN) in Data RAM full."] pub events_endrx: crate::Reg, #[doc = "0x130 - Transmission of data in RAM has ended, and EasyDMA has ended accessing the TX buffer"] pub events_endtx: crate::Reg, _reserved18: [u8; 0x04], #[doc = "0x138 - Auto collision resolution process has started"] pub events_autocolresstarted: crate::Reg, _reserved19: [u8; 0x0c], #[doc = "0x148 - NFC Auto collision resolution error reported."] pub events_collision: crate::Reg, #[doc = "0x14c - NFC Auto collision resolution successfully completed"] pub events_selected: crate::Reg, #[doc = "0x150 - EasyDMA is ready to receive or send frames."] pub events_started: crate::Reg, _reserved22: [u8; 0xac], #[doc = "0x200 - Shortcut register"] pub shorts: crate::Reg, _reserved23: [u8; 0xfc], #[doc = "0x300 - Enable or disable interrupt"] pub inten: crate::Reg, #[doc = "0x304 - Enable interrupt"] pub intenset: crate::Reg, #[doc = "0x308 - Disable interrupt"] pub intenclr: crate::Reg, _reserved26: [u8; 0xf8], #[doc = "0x404 - NFC Error Status register"] pub errorstatus: crate::Reg, _reserved27: [u8; 0x04], #[doc = "0x40c - Unspecified"] pub framestatus: FRAMESTATUS, _reserved28: [u8; 0x20], #[doc = "0x430 - Current value driven to the NFC Load Control"] pub currentloadctrl: crate::Reg, _reserved29: [u8; 0x08], #[doc = "0x43c - Indicates the presence or not of a valid field"] pub fieldpresent: crate::Reg, _reserved30: [u8; 0xc4], #[doc = "0x504 - Minimum frame delay"] pub framedelaymin: crate::Reg, #[doc = "0x508 - Maximum frame delay"] pub framedelaymax: crate::Reg, #[doc = "0x50c - Configuration register for the Frame Delay Timer"] pub framedelaymode: crate::Reg, #[doc = "0x510 - Packet pointer for TXD and RXD data storage in Data RAM"] pub packetptr: crate::Reg, #[doc = "0x514 - Size of allocated for TXD and RXD data storage buffer in Data RAM"] pub maxlen: crate::Reg, #[doc = "0x518..0x520 - Unspecified"] pub txd: TXD, #[doc = "0x520..0x528 - Unspecified"] pub rxd: RXD, _reserved37: [u8; 0x68], #[doc = "0x590 - Last NFCID1 part (4, 7 or 10 bytes ID)"] pub nfcid1_last: crate::Reg, #[doc = "0x594 - Second last NFCID1 part (7 or 10 bytes ID)"] pub nfcid1_2nd_last: crate::Reg, #[doc = "0x598 - Third last NFCID1 part (10 bytes ID)"] pub nfcid1_3rd_last: crate::Reg, _reserved40: [u8; 0x04], #[doc = "0x5a0 - NFC-A SENS_RES auto-response settings"] pub sensres: crate::Reg, #[doc = "0x5a4 - NFC-A SEL_RES auto-response settings"] pub selres: crate::Reg, } #[doc = r"Register block"] #[repr(C)] pub struct FRAMESTATUS { #[doc = "0x00 - Result of last incoming frames"] pub rx: crate::Reg, } #[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: crate::Reg, #[doc = "0x04 - Size of outgoing frame"] pub amount: crate::Reg, } #[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: crate::Reg, #[doc = "0x04 - Size of last incoming frame"] pub amount: crate::Reg, } #[doc = r"Register block"] #[doc = "Unspecified"] pub mod rxd; #[doc = "TASKS_ACTIVATE register accessor: an alias for `Reg`"] pub type TASKS_ACTIVATE = crate::Reg; #[doc = "Activate NFC peripheral for incoming and outgoing frames, change state to activated"] pub mod tasks_activate; #[doc = "TASKS_DISABLE register accessor: an alias for `Reg`"] pub type TASKS_DISABLE = crate::Reg; #[doc = "Disable NFC peripheral"] pub mod tasks_disable; #[doc = "TASKS_SENSE register accessor: an alias for `Reg`"] pub type TASKS_SENSE = crate::Reg; #[doc = "Enable NFC sense field mode, change state to sense mode"] pub mod tasks_sense; #[doc = "TASKS_STARTTX register accessor: an alias for `Reg`"] pub type TASKS_STARTTX = crate::Reg; #[doc = "Start transmission of a outgoing frame, change state to transmit"] pub mod tasks_starttx; #[doc = "TASKS_ENABLERXDATA register accessor: an alias for `Reg`"] pub type TASKS_ENABLERXDATA = crate::Reg; #[doc = "Initializes the EasyDMA for receive."] pub mod tasks_enablerxdata; #[doc = "TASKS_GOIDLE register accessor: an alias for `Reg`"] pub type TASKS_GOIDLE = crate::Reg; #[doc = "Force state machine to IDLE state"] pub mod tasks_goidle; #[doc = "TASKS_GOSLEEP register accessor: an alias for `Reg`"] pub type TASKS_GOSLEEP = crate::Reg; #[doc = "Force state machine to SLEEP_A state"] pub mod tasks_gosleep; #[doc = "EVENTS_READY register accessor: an alias for `Reg`"] pub type EVENTS_READY = crate::Reg; #[doc = "The NFC peripheral is ready to receive and send frames"] pub mod events_ready; #[doc = "EVENTS_FIELDDETECTED register accessor: an alias for `Reg`"] pub type EVENTS_FIELDDETECTED = crate::Reg; #[doc = "Remote NFC field detected"] pub mod events_fielddetected; #[doc = "EVENTS_FIELDLOST register accessor: an alias for `Reg`"] pub type EVENTS_FIELDLOST = crate::Reg; #[doc = "Remote NFC field lost"] pub mod events_fieldlost; #[doc = "EVENTS_TXFRAMESTART register accessor: an alias for `Reg`"] pub type EVENTS_TXFRAMESTART = crate::Reg; #[doc = "Marks the start of the first symbol of a transmitted frame"] pub mod events_txframestart; #[doc = "EVENTS_TXFRAMEEND register accessor: an alias for `Reg`"] pub type EVENTS_TXFRAMEEND = crate::Reg; #[doc = "Marks the end of the last transmitted on-air symbol of a frame"] pub mod events_txframeend; #[doc = "EVENTS_RXFRAMESTART register accessor: an alias for `Reg`"] pub type EVENTS_RXFRAMESTART = crate::Reg; #[doc = "Marks the end of the first symbol of a received frame"] pub mod events_rxframestart; #[doc = "EVENTS_RXFRAMEEND register accessor: an alias for `Reg`"] pub type EVENTS_RXFRAMEEND = crate::Reg; #[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 = "EVENTS_ERROR register accessor: an alias for `Reg`"] pub type EVENTS_ERROR = crate::Reg; #[doc = "NFC error reported. The ERRORSTATUS register contains details on the source of the error."] pub mod events_error; #[doc = "EVENTS_RXERROR register accessor: an alias for `Reg`"] pub type EVENTS_RXERROR = crate::Reg; #[doc = "NFC RX frame error reported. The FRAMESTATUS.RX register contains details on the source of the error."] pub mod events_rxerror; #[doc = "EVENTS_ENDRX register accessor: an alias for `Reg`"] pub type EVENTS_ENDRX = crate::Reg; #[doc = "RX buffer (as defined by PACKETPTR and MAXLEN) in Data RAM full."] pub mod events_endrx; #[doc = "EVENTS_ENDTX register accessor: an alias for `Reg`"] pub type EVENTS_ENDTX = crate::Reg; #[doc = "Transmission of data in RAM has ended, and EasyDMA has ended accessing the TX buffer"] pub mod events_endtx; #[doc = "EVENTS_AUTOCOLRESSTARTED register accessor: an alias for `Reg`"] pub type EVENTS_AUTOCOLRESSTARTED = crate::Reg; #[doc = "Auto collision resolution process has started"] pub mod events_autocolresstarted; #[doc = "EVENTS_COLLISION register accessor: an alias for `Reg`"] pub type EVENTS_COLLISION = crate::Reg; #[doc = "NFC Auto collision resolution error reported."] pub mod events_collision; #[doc = "EVENTS_SELECTED register accessor: an alias for `Reg`"] pub type EVENTS_SELECTED = crate::Reg; #[doc = "NFC Auto collision resolution successfully completed"] pub mod events_selected; #[doc = "EVENTS_STARTED register accessor: an alias for `Reg`"] pub type EVENTS_STARTED = crate::Reg; #[doc = "EasyDMA is ready to receive or send frames."] pub mod events_started; #[doc = "SHORTS register accessor: an alias for `Reg`"] pub type SHORTS = crate::Reg; #[doc = "Shortcut register"] pub mod shorts; #[doc = "INTEN register accessor: an alias for `Reg`"] pub type INTEN = crate::Reg; #[doc = "Enable or disable interrupt"] pub mod inten; #[doc = "INTENSET register accessor: an alias for `Reg`"] pub type INTENSET = crate::Reg; #[doc = "Enable interrupt"] pub mod intenset; #[doc = "INTENCLR register accessor: an alias for `Reg`"] pub type INTENCLR = crate::Reg; #[doc = "Disable interrupt"] pub mod intenclr; #[doc = "ERRORSTATUS register accessor: an alias for `Reg`"] pub type ERRORSTATUS = crate::Reg; #[doc = "NFC Error Status register"] pub mod errorstatus; #[doc = "CURRENTLOADCTRL register accessor: an alias for `Reg`"] pub type CURRENTLOADCTRL = crate::Reg; #[doc = "Current value driven to the NFC Load Control"] pub mod currentloadctrl; #[doc = "FIELDPRESENT register accessor: an alias for `Reg`"] pub type FIELDPRESENT = crate::Reg; #[doc = "Indicates the presence or not of a valid field"] pub mod fieldpresent; #[doc = "FRAMEDELAYMIN register accessor: an alias for `Reg`"] pub type FRAMEDELAYMIN = crate::Reg; #[doc = "Minimum frame delay"] pub mod framedelaymin; #[doc = "FRAMEDELAYMAX register accessor: an alias for `Reg`"] pub type FRAMEDELAYMAX = crate::Reg; #[doc = "Maximum frame delay"] pub mod framedelaymax; #[doc = "FRAMEDELAYMODE register accessor: an alias for `Reg`"] pub type FRAMEDELAYMODE = crate::Reg; #[doc = "Configuration register for the Frame Delay Timer"] pub mod framedelaymode; #[doc = "PACKETPTR register accessor: an alias for `Reg`"] pub type PACKETPTR = crate::Reg; #[doc = "Packet pointer for TXD and RXD data storage in Data RAM"] pub mod packetptr; #[doc = "MAXLEN register accessor: an alias for `Reg`"] pub type MAXLEN = crate::Reg; #[doc = "Size of allocated for TXD and RXD data storage buffer in Data RAM"] pub mod maxlen; #[doc = "NFCID1_LAST register accessor: an alias for `Reg`"] pub type NFCID1_LAST = crate::Reg; #[doc = "Last NFCID1 part (4, 7 or 10 bytes ID)"] pub mod nfcid1_last; #[doc = "NFCID1_2ND_LAST register accessor: an alias for `Reg`"] pub type NFCID1_2ND_LAST = crate::Reg; #[doc = "Second last NFCID1 part (7 or 10 bytes ID)"] pub mod nfcid1_2nd_last; #[doc = "NFCID1_3RD_LAST register accessor: an alias for `Reg`"] pub type NFCID1_3RD_LAST = crate::Reg; #[doc = "Third last NFCID1 part (10 bytes ID)"] pub mod nfcid1_3rd_last; #[doc = "SENSRES register accessor: an alias for `Reg`"] pub type SENSRES = crate::Reg; #[doc = "NFC-A SENS_RES auto-response settings"] pub mod sensres; #[doc = "SELRES register accessor: an alias for `Reg`"] pub type SELRES = crate::Reg; #[doc = "NFC-A SEL_RES auto-response settings"] pub mod selres;