nrf52832_pac/
nfct.rs

1#[doc = r"Register block"]
2#[repr(C)]
3pub struct RegisterBlock {
4    #[doc = "0x00 - Activate NFC peripheral for incoming and outgoing frames, change state to activated"]
5    pub tasks_activate: TASKS_ACTIVATE,
6    #[doc = "0x04 - Disable NFC peripheral"]
7    pub tasks_disable: TASKS_DISABLE,
8    #[doc = "0x08 - Enable NFC sense field mode, change state to sense mode"]
9    pub tasks_sense: TASKS_SENSE,
10    #[doc = "0x0c - Start transmission of a outgoing frame, change state to transmit"]
11    pub tasks_starttx: TASKS_STARTTX,
12    _reserved4: [u8; 0x0c],
13    #[doc = "0x1c - Initializes the EasyDMA for receive."]
14    pub tasks_enablerxdata: TASKS_ENABLERXDATA,
15    _reserved5: [u8; 0x04],
16    #[doc = "0x24 - Force state machine to IDLE state"]
17    pub tasks_goidle: TASKS_GOIDLE,
18    #[doc = "0x28 - Force state machine to SLEEP_A state"]
19    pub tasks_gosleep: TASKS_GOSLEEP,
20    _reserved7: [u8; 0xd4],
21    #[doc = "0x100 - The NFC peripheral is ready to receive and send frames"]
22    pub events_ready: EVENTS_READY,
23    #[doc = "0x104 - Remote NFC field detected"]
24    pub events_fielddetected: EVENTS_FIELDDETECTED,
25    #[doc = "0x108 - Remote NFC field lost"]
26    pub events_fieldlost: EVENTS_FIELDLOST,
27    #[doc = "0x10c - Marks the start of the first symbol of a transmitted frame"]
28    pub events_txframestart: EVENTS_TXFRAMESTART,
29    #[doc = "0x110 - Marks the end of the last transmitted on-air symbol of a frame"]
30    pub events_txframeend: EVENTS_TXFRAMEEND,
31    #[doc = "0x114 - Marks the end of the first symbol of a received frame"]
32    pub events_rxframestart: EVENTS_RXFRAMESTART,
33    #[doc = "0x118 - Received data have been checked (CRC, parity) and transferred to RAM, and EasyDMA has ended accessing the RX buffer"]
34    pub events_rxframeend: EVENTS_RXFRAMEEND,
35    #[doc = "0x11c - NFC error reported. The ERRORSTATUS register contains details on the source of the error."]
36    pub events_error: EVENTS_ERROR,
37    _reserved15: [u8; 0x08],
38    #[doc = "0x128 - NFC RX frame error reported. The FRAMESTATUS.RX register contains details on the source of the error."]
39    pub events_rxerror: EVENTS_RXERROR,
40    #[doc = "0x12c - RX buffer (as defined by PACKETPTR and MAXLEN) in Data RAM full."]
41    pub events_endrx: EVENTS_ENDRX,
42    #[doc = "0x130 - Transmission of data in RAM has ended, and EasyDMA has ended accessing the TX buffer"]
43    pub events_endtx: EVENTS_ENDTX,
44    _reserved18: [u8; 0x04],
45    #[doc = "0x138 - Auto collision resolution process has started"]
46    pub events_autocolresstarted: EVENTS_AUTOCOLRESSTARTED,
47    _reserved19: [u8; 0x0c],
48    #[doc = "0x148 - NFC Auto collision resolution error reported."]
49    pub events_collision: EVENTS_COLLISION,
50    #[doc = "0x14c - NFC Auto collision resolution successfully completed"]
51    pub events_selected: EVENTS_SELECTED,
52    #[doc = "0x150 - EasyDMA is ready to receive or send frames."]
53    pub events_started: EVENTS_STARTED,
54    _reserved22: [u8; 0xac],
55    #[doc = "0x200 - Shortcut register"]
56    pub shorts: SHORTS,
57    _reserved23: [u8; 0xfc],
58    #[doc = "0x300 - Enable or disable interrupt"]
59    pub inten: INTEN,
60    #[doc = "0x304 - Enable interrupt"]
61    pub intenset: INTENSET,
62    #[doc = "0x308 - Disable interrupt"]
63    pub intenclr: INTENCLR,
64    _reserved26: [u8; 0xf8],
65    #[doc = "0x404 - NFC Error Status register"]
66    pub errorstatus: ERRORSTATUS,
67    _reserved27: [u8; 0x04],
68    #[doc = "0x40c - Unspecified"]
69    pub framestatus: FRAMESTATUS,
70    _reserved28: [u8; 0x20],
71    #[doc = "0x430 - Current value driven to the NFC Load Control"]
72    pub currentloadctrl: CURRENTLOADCTRL,
73    _reserved29: [u8; 0x08],
74    #[doc = "0x43c - Indicates the presence or not of a valid field"]
75    pub fieldpresent: FIELDPRESENT,
76    _reserved30: [u8; 0xc4],
77    #[doc = "0x504 - Minimum frame delay"]
78    pub framedelaymin: FRAMEDELAYMIN,
79    #[doc = "0x508 - Maximum frame delay"]
80    pub framedelaymax: FRAMEDELAYMAX,
81    #[doc = "0x50c - Configuration register for the Frame Delay Timer"]
82    pub framedelaymode: FRAMEDELAYMODE,
83    #[doc = "0x510 - Packet pointer for TXD and RXD data storage in Data RAM"]
84    pub packetptr: PACKETPTR,
85    #[doc = "0x514 - Size of allocated for TXD and RXD data storage buffer in Data RAM"]
86    pub maxlen: MAXLEN,
87    #[doc = "0x518..0x520 - Unspecified"]
88    pub txd: TXD,
89    #[doc = "0x520..0x528 - Unspecified"]
90    pub rxd: RXD,
91    _reserved37: [u8; 0x68],
92    #[doc = "0x590 - Last NFCID1 part (4, 7 or 10 bytes ID)"]
93    pub nfcid1_last: NFCID1_LAST,
94    #[doc = "0x594 - Second last NFCID1 part (7 or 10 bytes ID)"]
95    pub nfcid1_2nd_last: NFCID1_2ND_LAST,
96    #[doc = "0x598 - Third last NFCID1 part (10 bytes ID)"]
97    pub nfcid1_3rd_last: NFCID1_3RD_LAST,
98    _reserved40: [u8; 0x04],
99    #[doc = "0x5a0 - NFC-A SENS_RES auto-response settings"]
100    pub sensres: SENSRES,
101    #[doc = "0x5a4 - NFC-A SEL_RES auto-response settings"]
102    pub selres: SELRES,
103}
104#[doc = "TASKS_ACTIVATE (w) register accessor: an alias for `Reg<TASKS_ACTIVATE_SPEC>`"]
105pub type TASKS_ACTIVATE = crate::Reg<tasks_activate::TASKS_ACTIVATE_SPEC>;
106#[doc = "Activate NFC peripheral for incoming and outgoing frames, change state to activated"]
107pub mod tasks_activate;
108#[doc = "TASKS_DISABLE (w) register accessor: an alias for `Reg<TASKS_DISABLE_SPEC>`"]
109pub type TASKS_DISABLE = crate::Reg<tasks_disable::TASKS_DISABLE_SPEC>;
110#[doc = "Disable NFC peripheral"]
111pub mod tasks_disable;
112#[doc = "TASKS_SENSE (w) register accessor: an alias for `Reg<TASKS_SENSE_SPEC>`"]
113pub type TASKS_SENSE = crate::Reg<tasks_sense::TASKS_SENSE_SPEC>;
114#[doc = "Enable NFC sense field mode, change state to sense mode"]
115pub mod tasks_sense;
116#[doc = "TASKS_STARTTX (w) register accessor: an alias for `Reg<TASKS_STARTTX_SPEC>`"]
117pub type TASKS_STARTTX = crate::Reg<tasks_starttx::TASKS_STARTTX_SPEC>;
118#[doc = "Start transmission of a outgoing frame, change state to transmit"]
119pub mod tasks_starttx;
120#[doc = "TASKS_ENABLERXDATA (w) register accessor: an alias for `Reg<TASKS_ENABLERXDATA_SPEC>`"]
121pub type TASKS_ENABLERXDATA = crate::Reg<tasks_enablerxdata::TASKS_ENABLERXDATA_SPEC>;
122#[doc = "Initializes the EasyDMA for receive."]
123pub mod tasks_enablerxdata;
124#[doc = "TASKS_GOIDLE (w) register accessor: an alias for `Reg<TASKS_GOIDLE_SPEC>`"]
125pub type TASKS_GOIDLE = crate::Reg<tasks_goidle::TASKS_GOIDLE_SPEC>;
126#[doc = "Force state machine to IDLE state"]
127pub mod tasks_goidle;
128#[doc = "TASKS_GOSLEEP (w) register accessor: an alias for `Reg<TASKS_GOSLEEP_SPEC>`"]
129pub type TASKS_GOSLEEP = crate::Reg<tasks_gosleep::TASKS_GOSLEEP_SPEC>;
130#[doc = "Force state machine to SLEEP_A state"]
131pub mod tasks_gosleep;
132#[doc = "EVENTS_READY (rw) register accessor: an alias for `Reg<EVENTS_READY_SPEC>`"]
133pub type EVENTS_READY = crate::Reg<events_ready::EVENTS_READY_SPEC>;
134#[doc = "The NFC peripheral is ready to receive and send frames"]
135pub mod events_ready;
136#[doc = "EVENTS_FIELDDETECTED (rw) register accessor: an alias for `Reg<EVENTS_FIELDDETECTED_SPEC>`"]
137pub type EVENTS_FIELDDETECTED = crate::Reg<events_fielddetected::EVENTS_FIELDDETECTED_SPEC>;
138#[doc = "Remote NFC field detected"]
139pub mod events_fielddetected;
140#[doc = "EVENTS_FIELDLOST (rw) register accessor: an alias for `Reg<EVENTS_FIELDLOST_SPEC>`"]
141pub type EVENTS_FIELDLOST = crate::Reg<events_fieldlost::EVENTS_FIELDLOST_SPEC>;
142#[doc = "Remote NFC field lost"]
143pub mod events_fieldlost;
144#[doc = "EVENTS_TXFRAMESTART (rw) register accessor: an alias for `Reg<EVENTS_TXFRAMESTART_SPEC>`"]
145pub type EVENTS_TXFRAMESTART = crate::Reg<events_txframestart::EVENTS_TXFRAMESTART_SPEC>;
146#[doc = "Marks the start of the first symbol of a transmitted frame"]
147pub mod events_txframestart;
148#[doc = "EVENTS_TXFRAMEEND (rw) register accessor: an alias for `Reg<EVENTS_TXFRAMEEND_SPEC>`"]
149pub type EVENTS_TXFRAMEEND = crate::Reg<events_txframeend::EVENTS_TXFRAMEEND_SPEC>;
150#[doc = "Marks the end of the last transmitted on-air symbol of a frame"]
151pub mod events_txframeend;
152#[doc = "EVENTS_RXFRAMESTART (rw) register accessor: an alias for `Reg<EVENTS_RXFRAMESTART_SPEC>`"]
153pub type EVENTS_RXFRAMESTART = crate::Reg<events_rxframestart::EVENTS_RXFRAMESTART_SPEC>;
154#[doc = "Marks the end of the first symbol of a received frame"]
155pub mod events_rxframestart;
156#[doc = "EVENTS_RXFRAMEEND (rw) register accessor: an alias for `Reg<EVENTS_RXFRAMEEND_SPEC>`"]
157pub type EVENTS_RXFRAMEEND = crate::Reg<events_rxframeend::EVENTS_RXFRAMEEND_SPEC>;
158#[doc = "Received data have been checked (CRC, parity) and transferred to RAM, and EasyDMA has ended accessing the RX buffer"]
159pub mod events_rxframeend;
160#[doc = "EVENTS_ERROR (rw) register accessor: an alias for `Reg<EVENTS_ERROR_SPEC>`"]
161pub type EVENTS_ERROR = crate::Reg<events_error::EVENTS_ERROR_SPEC>;
162#[doc = "NFC error reported. The ERRORSTATUS register contains details on the source of the error."]
163pub mod events_error;
164#[doc = "EVENTS_RXERROR (rw) register accessor: an alias for `Reg<EVENTS_RXERROR_SPEC>`"]
165pub type EVENTS_RXERROR = crate::Reg<events_rxerror::EVENTS_RXERROR_SPEC>;
166#[doc = "NFC RX frame error reported. The FRAMESTATUS.RX register contains details on the source of the error."]
167pub mod events_rxerror;
168#[doc = "EVENTS_ENDRX (rw) register accessor: an alias for `Reg<EVENTS_ENDRX_SPEC>`"]
169pub type EVENTS_ENDRX = crate::Reg<events_endrx::EVENTS_ENDRX_SPEC>;
170#[doc = "RX buffer (as defined by PACKETPTR and MAXLEN) in Data RAM full."]
171pub mod events_endrx;
172#[doc = "EVENTS_ENDTX (rw) register accessor: an alias for `Reg<EVENTS_ENDTX_SPEC>`"]
173pub type EVENTS_ENDTX = crate::Reg<events_endtx::EVENTS_ENDTX_SPEC>;
174#[doc = "Transmission of data in RAM has ended, and EasyDMA has ended accessing the TX buffer"]
175pub mod events_endtx;
176#[doc = "EVENTS_AUTOCOLRESSTARTED (rw) register accessor: an alias for `Reg<EVENTS_AUTOCOLRESSTARTED_SPEC>`"]
177pub type EVENTS_AUTOCOLRESSTARTED =
178    crate::Reg<events_autocolresstarted::EVENTS_AUTOCOLRESSTARTED_SPEC>;
179#[doc = "Auto collision resolution process has started"]
180pub mod events_autocolresstarted;
181#[doc = "EVENTS_COLLISION (rw) register accessor: an alias for `Reg<EVENTS_COLLISION_SPEC>`"]
182pub type EVENTS_COLLISION = crate::Reg<events_collision::EVENTS_COLLISION_SPEC>;
183#[doc = "NFC Auto collision resolution error reported."]
184pub mod events_collision;
185#[doc = "EVENTS_SELECTED (rw) register accessor: an alias for `Reg<EVENTS_SELECTED_SPEC>`"]
186pub type EVENTS_SELECTED = crate::Reg<events_selected::EVENTS_SELECTED_SPEC>;
187#[doc = "NFC Auto collision resolution successfully completed"]
188pub mod events_selected;
189#[doc = "EVENTS_STARTED (rw) register accessor: an alias for `Reg<EVENTS_STARTED_SPEC>`"]
190pub type EVENTS_STARTED = crate::Reg<events_started::EVENTS_STARTED_SPEC>;
191#[doc = "EasyDMA is ready to receive or send frames."]
192pub mod events_started;
193#[doc = "SHORTS (rw) register accessor: an alias for `Reg<SHORTS_SPEC>`"]
194pub type SHORTS = crate::Reg<shorts::SHORTS_SPEC>;
195#[doc = "Shortcut register"]
196pub mod shorts;
197#[doc = "INTEN (rw) register accessor: an alias for `Reg<INTEN_SPEC>`"]
198pub type INTEN = crate::Reg<inten::INTEN_SPEC>;
199#[doc = "Enable or disable interrupt"]
200pub mod inten;
201#[doc = "INTENSET (rw) register accessor: an alias for `Reg<INTENSET_SPEC>`"]
202pub type INTENSET = crate::Reg<intenset::INTENSET_SPEC>;
203#[doc = "Enable interrupt"]
204pub mod intenset;
205#[doc = "INTENCLR (rw) register accessor: an alias for `Reg<INTENCLR_SPEC>`"]
206pub type INTENCLR = crate::Reg<intenclr::INTENCLR_SPEC>;
207#[doc = "Disable interrupt"]
208pub mod intenclr;
209#[doc = "ERRORSTATUS (rw) register accessor: an alias for `Reg<ERRORSTATUS_SPEC>`"]
210pub type ERRORSTATUS = crate::Reg<errorstatus::ERRORSTATUS_SPEC>;
211#[doc = "NFC Error Status register"]
212pub mod errorstatus;
213#[doc = "Unspecified"]
214pub use framestatus::FRAMESTATUS;
215#[doc = r"Cluster"]
216#[doc = "Unspecified"]
217pub mod framestatus;
218#[doc = "CURRENTLOADCTRL (r) register accessor: an alias for `Reg<CURRENTLOADCTRL_SPEC>`"]
219pub type CURRENTLOADCTRL = crate::Reg<currentloadctrl::CURRENTLOADCTRL_SPEC>;
220#[doc = "Current value driven to the NFC Load Control"]
221pub mod currentloadctrl;
222#[doc = "FIELDPRESENT (r) register accessor: an alias for `Reg<FIELDPRESENT_SPEC>`"]
223pub type FIELDPRESENT = crate::Reg<fieldpresent::FIELDPRESENT_SPEC>;
224#[doc = "Indicates the presence or not of a valid field"]
225pub mod fieldpresent;
226#[doc = "FRAMEDELAYMIN (rw) register accessor: an alias for `Reg<FRAMEDELAYMIN_SPEC>`"]
227pub type FRAMEDELAYMIN = crate::Reg<framedelaymin::FRAMEDELAYMIN_SPEC>;
228#[doc = "Minimum frame delay"]
229pub mod framedelaymin;
230#[doc = "FRAMEDELAYMAX (rw) register accessor: an alias for `Reg<FRAMEDELAYMAX_SPEC>`"]
231pub type FRAMEDELAYMAX = crate::Reg<framedelaymax::FRAMEDELAYMAX_SPEC>;
232#[doc = "Maximum frame delay"]
233pub mod framedelaymax;
234#[doc = "FRAMEDELAYMODE (rw) register accessor: an alias for `Reg<FRAMEDELAYMODE_SPEC>`"]
235pub type FRAMEDELAYMODE = crate::Reg<framedelaymode::FRAMEDELAYMODE_SPEC>;
236#[doc = "Configuration register for the Frame Delay Timer"]
237pub mod framedelaymode;
238#[doc = "PACKETPTR (rw) register accessor: an alias for `Reg<PACKETPTR_SPEC>`"]
239pub type PACKETPTR = crate::Reg<packetptr::PACKETPTR_SPEC>;
240#[doc = "Packet pointer for TXD and RXD data storage in Data RAM"]
241pub mod packetptr;
242#[doc = "MAXLEN (rw) register accessor: an alias for `Reg<MAXLEN_SPEC>`"]
243pub type MAXLEN = crate::Reg<maxlen::MAXLEN_SPEC>;
244#[doc = "Size of allocated for TXD and RXD data storage buffer in Data RAM"]
245pub mod maxlen;
246#[doc = "Unspecified"]
247pub use txd::TXD;
248#[doc = r"Cluster"]
249#[doc = "Unspecified"]
250pub mod txd;
251#[doc = "Unspecified"]
252pub use rxd::RXD;
253#[doc = r"Cluster"]
254#[doc = "Unspecified"]
255pub mod rxd;
256#[doc = "NFCID1_LAST (rw) register accessor: an alias for `Reg<NFCID1_LAST_SPEC>`"]
257pub type NFCID1_LAST = crate::Reg<nfcid1_last::NFCID1_LAST_SPEC>;
258#[doc = "Last NFCID1 part (4, 7 or 10 bytes ID)"]
259pub mod nfcid1_last;
260#[doc = "NFCID1_2ND_LAST (rw) register accessor: an alias for `Reg<NFCID1_2ND_LAST_SPEC>`"]
261pub type NFCID1_2ND_LAST = crate::Reg<nfcid1_2nd_last::NFCID1_2ND_LAST_SPEC>;
262#[doc = "Second last NFCID1 part (7 or 10 bytes ID)"]
263pub mod nfcid1_2nd_last;
264#[doc = "NFCID1_3RD_LAST (rw) register accessor: an alias for `Reg<NFCID1_3RD_LAST_SPEC>`"]
265pub type NFCID1_3RD_LAST = crate::Reg<nfcid1_3rd_last::NFCID1_3RD_LAST_SPEC>;
266#[doc = "Third last NFCID1 part (10 bytes ID)"]
267pub mod nfcid1_3rd_last;
268#[doc = "SENSRES (rw) register accessor: an alias for `Reg<SENSRES_SPEC>`"]
269pub type SENSRES = crate::Reg<sensres::SENSRES_SPEC>;
270#[doc = "NFC-A SENS_RES auto-response settings"]
271pub mod sensres;
272#[doc = "SELRES (rw) register accessor: an alias for `Reg<SELRES_SPEC>`"]
273pub type SELRES = crate::Reg<selres::SELRES_SPEC>;
274#[doc = "NFC-A SEL_RES auto-response settings"]
275pub mod selres;