nfc3  2.0.0.0
nfc3.h
Go to the documentation of this file.
1 /****************************************************************************
2 ** Copyright (C) 2020 MikroElektronika d.o.o.
3 ** Contact: https://www.mikroe.com/contact
4 **
5 ** Permission is hereby granted, free of charge, to any person obtaining a copy
6 ** of this software and associated documentation files (the "Software"), to deal
7 ** in the Software without restriction, including without limitation the rights
8 ** to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 ** copies of the Software, and to permit persons to whom the Software is
10 ** furnished to do so, subject to the following conditions:
11 ** The above copyright notice and this permission notice shall be
12 ** included in all copies or substantial portions of the Software.
13 **
14 ** THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15 ** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
16 ** OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
17 ** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
18 ** DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT
19 ** OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
20 ** USE OR OTHER DEALINGS IN THE SOFTWARE.
21 ****************************************************************************/
22 
28 #ifndef NFC3_H
29 #define NFC3_H
30 
31 #ifdef __cplusplus
32 extern "C"{
33 #endif
34 
39 #ifdef PREINIT_SUPPORTED
40 #include "preinit.h"
41 #endif
42 
43 #ifdef MikroCCoreVersion
44  #if MikroCCoreVersion >= 1
45  #include "delays.h"
46  #endif
47 #endif
48 
49 #include "drv_digital_out.h"
50 #include "drv_digital_in.h"
51 #include "drv_spi_master.h"
52 
73 #define NFC3_CMD_WRITE_REGISTER 0x00
74 #define NFC3_CMD_WRITE_REGISTER_OR_MASK 0x01
75 #define NFC3_CMD_WRITE_REGISTER_AND_MASK 0x02
76 #define NFC3_CMD_WRITE_REGISTER_MULTIPLE 0x03
77 #define NFC3_CMD_READ_REGISTER 0x04
78 #define NFC3_CMD_READ_REGISTER_MULTIPLE 0x05
79 #define NFC3_CMD_WRITE_EEPROM 0x06
80 #define NFC3_CMD_READ_EEPROM 0x07
81 #define NFC3_CMD_WRITE_TX_DATA 0x08
82 #define NFC3_CMD_SEND_DATA 0x09
83 #define NFC3_CMD_READ_DATA 0x0A
84 #define NFC3_CMD_SWITCH_MODE 0x0B
85 #define NFC3_CMD_MIFARE_AUTHENTICATE 0x0C
86 #define NFC3_CMD_EPC_INVENTORY 0x0D
87 #define NFC3_CMD_EPC_RESUME_INVENTORY 0x0E
88 #define NFC3_CMD_EPC_RETRIEVE_INVENTORY_RESULT_SIZE 0x0F
89 #define NFC3_CMD_EPC_RETRIEVE_INVENTORY_RESULT 0x10
90 #define NFC3_CMD_LOAD_RF_CONFIG 0x11
91 #define NFC3_CMD_UPDATE_RF_CONFIG 0x12
92 #define NFC3_CMD_RETRIEVE_RF_CONFIG_SIZE 0x13
93 #define NFC3_CMD_RETRIEVE_RF_CONFIG 0x14
94 #define NFC3_CMD_RF_ON 0x16
95 #define NFC3_CMD_RF_OFF 0x17
96 #define NFC3_CMD_CONFIGURE_TESTBUS_DIGITAL 0x18
97 #define NFC3_CMD_CONFIGURE_TESTBUS_ANALOG 0x19
98 
99  // nfc3_reg
101 
102 
117 #define NFC3_REG_SYSTEM_CONFIG 0x00
118 #define NFC3_REG_IRQ_ENABLE 0x01
119 #define NFC3_REG_IRQ_STATUS 0x02
120 #define NFC3_REG_IRQ_CLEAR 0x03
121 #define NFC3_REG_TRANSCEIVER_CONFIG 0x04
122 #define NFC3_REG_PADCONFIG 0x05
123 #define NFC3_REG_PADOUT 0x07
124 #define NFC3_REG_TIMER0_STATUS 0x08
125 #define NFC3_REG_TIMER1_STATUS 0x09
126 #define NFC3_REG_TIMER2_STATUS 0x0A
127 #define NFC3_REG_TIMER0_RELOAD 0x0B
128 #define NFC3_REG_TIMER1_RELOAD 0x0C
129 #define NFC3_REG_TIMER2_RELOAD 0x0D
130 #define NFC3_REG_TIMER0_CONFIG 0x0E
131 #define NFC3_REG_TIMER1_CONFIG 0x0F
132 #define NFC3_REG_TIMER2_CONFIG 0x10
133 #define NFC3_REG_RX_WAIT_CONFIG 0x11
134 #define NFC3_REG_CRC_RX_CONFIG 0x12
135 #define NFC3_REG_RX_STATUS 0x13
136 #define NFC3_REG_TX_UNDERSHOOT_CONFIG 0x14
137 #define NFC3_REG_TX_OVERSHOOT_CONFIG 0x15
138 #define NFC3_REG_TX_DATA_MOD 0x16
139 #define NFC3_REG_TX_WAIT_CONFIG 0x17
140 #define NFC3_REG_TX_CONFIG 0x18
141 #define NFC3_REG_CRC_TX_CONFIG 0x19
142 #define NFC3_REG_SIGPRO_CONFIG 0x1A
143 #define NFC3_REG_SIGPRO_CM_CONFIG 0x1B
144 #define NFC3_REG_SIGPRO_RM_CONFIG 0x1C
145 #define NFC3_REG_RF_STATUS 0x1D
146 #define NFC3_REG_AGC_CONFIG 0x1E
147 #define NFC3_REG_AGC_VALUE 0x1F
148 #define NFC3_REG_RF_CONTROL_TX 0x20
149 #define NFC3_REG_RF_CONTROL_TX_CLK 0x21
150 #define NFC3_REG_RF_CONTROL_RX 0x22
151 #define NFC3_REG_LD_CONTROL 0x23
152 #define NFC3_REG_SYSTEM_STATUS 0x24
153 #define NFC3_REG_TEMP_CONTROL 0x25
154 #define NFC3_REG_CECK_CARD_RESULT 0x26
155 #define NFC3_REG_DPC_CONFIG 0x27
156 #define NFC3_REG_EMD_CONTROL 0x28
157 #define NFC3_REG_ANT_CONTROL 0x29
158 
163 #define NFC3_EEPROM_DIE_ID 0x00
164 #define NFC3_EEPROM_PRODUCT_VERSION 0x10
165 #define NFC3_EEPROM_FIRMWARE_VERSION 0x12
166 #define NFC3_EEPROM_EEPROM_VERSION 0x14
167 #define NFC3_EEPROM_IDLE_IRQ_AFTER_BOOT 0x16
168 #define NFC3_EEPROM_TESTBUS_ENABLE 0x17
169 #define NFC3_EEPROM_XTAL_BOOT_TIME 0x18
170 #define NFC3_EEPROM_IRQ_PIN_CONFIG 0x1A
171 #define NFC3_EEPROM_MISO_PULLUP_ENABLE 0x1B
172 #define NFC3_EEPROM_PLL_DEFAULT_SETTING 0x1C
173 #define NFC3_EEPROM_PLL_DEFAULT_SETTING_ALM 0x24
174 #define NFC3_EEPROM_PLL_LOCK_SETTING 0x2C
175 #define NFC3_EEPROM_CLOCK_CONFIG 0x30
176 #define NFC3_EEPROM_MFC_AUTH_TIMEOUT 0x32
177 #define NFC3_EEPROM_LPCD_REFERENCE_VALUE 0x34
178 #define NFC3_EEPROM_LPCD_FIELD_ON_TIME 0x36
179 #define NFC3_EEPROM_LPCD_THRESHOLD 0x37
180 #define NFC3_EEPROM_LPCD_REFVAL_GPO_CONTROL 0x38
181 #define NFC3_EEPROM_LPCD_GPO_TOGGLE_BEFORE_FIELD_ON 0x39
182 #define NFC3_EEPROM_LPCD_GPO_TOGGLE_AFTER_FIELD_OFF 0x3A
183 #define NFC3_EEPROM_NFCLD_SENSITIVITY_VAL 0x3B
184 #define NFC3_EEPROM_FIELD_ON_CP_SETTLE_TIME 0x3C
185 #define NFC3_EEPROM_RF_DEBOUNCE_TIMEOUT 0x3F
186 #define NFC3_EEPROM_SENS_RES 0x40
187 #define NFC3_EEPROM_NFCID1 0x42
188 #define NFC3_EEPROM_SEL_RES 0x45
189 #define NFC3_EEPROM_FELICA_POLLING_RESPONSE 0x46
190 #define NFC3_EEPROM_RANDOMUID_ENABLE 0x51
191 #define NFC3_EEPROM_RANDOM_UID_ENABLE 0x58
192 #define NFC3_EEPROM_DPC_CONTROL 0x59
193 #define NFC3_EEPROM_DPC_TIME 0x5A
194 #define NFC3_EEPROM_DPC_XI 0x5C
195 #define NFC3_EEPROM_AGC_CONTROL 0x5D
196 #define NFC3_EEPROM_DPC_THRSH_HIGH 0x5F
197 #define NFC3_EEPROM_DPC_THRSH_LOW 0x7D
198 #define NFC3_EEPROM_DPC_DEBUG 0x7F
199 #define NFC3_EEPROM_DPC_AGC_SHIFT_VALUE 0x80
200 #define NFC3_EEPROM_DPC_AGC_GEAR_LUT_SIZE 0x81
201 #define NFC3_EEPROM_DPC_AGC_GEAR_LUT 0x82
202 #define NFC3_EEPROM_DPC_GUARD_FAST_MODE 0x91
203 #define NFC3_EEPROM_DPC_GUARD_SOF_DETECTED 0x93
204 #define NFC3_EEPROM_DPC_GUARD_FIELD_ON 0x95
205 #define NFC3_EEPROM_PCD_AWC_DRC_LUT_SIZE 0x97
206 #define NFC3_EEPROM_PCD_AWC_DRC_LUT 0x98
207 #define NFC3_EEPROM_MISC_CONFIG 0xE8
208 #define NFC3_EEPROM_DIGIDELAY_A_848_RW 0xE9
209 #define NFC3_EEPROM_DIGIDELAY_B_848_RW 0xEA
210 #define NFC3_EEPROM_DIGIDELAY_F_424_RW 0xEB
211 #define NFC3_EEPROM_DIGIDELAY_15693_RW_FASTHIGH 0xEC
212 #define NFC3_EEPROM_DIGIDELAY_18000_2_848 0xED
213 #define NFC3_EEPROM_DIGIDELAY_18000_4_848 0xEE
214 #define NFC3_EEPROM_TESTBUSMODE 0xF0
215 #define NFC3_EEPROM_TBSELECT 0xF1
216 #define NFC3_EEPROM_MAPTB1_TO_TB0 0xF2
217 #define NFC3_EEPROM_NUMPADSIGNALMAPS 0xF3
218 #define NFC3_EEPROM_PADSIGNALMAP 0xF4
219 #define NFC3_EEPROM_TBDAC1 0xF5
220 #define NFC3_EEPROM_TBDAC2 0xF6
221  // nfc3_reg
223 
238 #define NFC3_RX_IRQ_STAT (1<<0) // End of RF rececption IRQ
239 #define NFC3_TX_IRQ_STAT (1<<1) // End of RF transmission IRQ
240 #define NFC3_IDLE_IRQ_STAT (1<<2) // IDLE IRQ
241 #define NFC3_RFOFF_DET_IRQ_STAT (1<<6) // RF Field OFF detection IRQ
242 #define NFC3_RFON_DET_IRQ_STAT (1<<7) // RF Field ON detection IRQ
243 #define NFC3_TX_RFOFF_IRQ_STAT (1<<8) // RF Field OFF in PCD IRQ
244 #define NFC3_TX_RFON_IRQ_STAT (1<<9) // RF Field ON in PCD IRQ
245 #define NFC3_RX_SOF_DET_IRQ_STAT (1<<14) // RF SOF Detection IRQ
246 #define NFC3_GENERAL_ERROR_IRQ_STAT (1ul<<17) // General error IRQ
247 #define NFC3_LPCD_IRQ_STAT (1ul<<19) // LPCD Detection IRQ
248  // nfc3_set
249 
264 #define NFC3_MAP_MIKROBUS( cfg, mikrobus ) \
265  cfg.miso = MIKROBUS( mikrobus, MIKROBUS_MISO ); \
266  cfg.mosi = MIKROBUS( mikrobus, MIKROBUS_MOSI ); \
267  cfg.sck = MIKROBUS( mikrobus, MIKROBUS_SCK ); \
268  cfg.cs = MIKROBUS( mikrobus, MIKROBUS_CS ); \
269  cfg.aux = MIKROBUS( mikrobus, MIKROBUS_AN ); \
270  cfg.rst = MIKROBUS( mikrobus, MIKROBUS_RST ); \
271  cfg.bsy = MIKROBUS( mikrobus, MIKROBUS_PWM ); \
272  cfg.irq = MIKROBUS( mikrobus, MIKROBUS_INT )
273  // nfc3_map // nfc3
276 
281 typedef struct
282 {
283  // Output pins
284 
285  digital_out_t rst;
287  // Input pins
288 
289  digital_in_t aux;
290  digital_in_t bsy;
291  digital_in_t irq;
293  // Modules
294 
295  spi_master_t spi;
297  pin_name_t chip_select;
299 } nfc3_t;
300 
305 typedef struct
306 {
307  // Communication gpio pins
308 
309  pin_name_t miso;
310  pin_name_t mosi;
311  pin_name_t sck;
312  pin_name_t cs;
314  // Additional gpio pins
315 
316  pin_name_t aux;
317  pin_name_t rst;
318  pin_name_t bsy;
319  pin_name_t irq;
321  // static variable
322 
323  uint32_t spi_speed;
324  spi_master_mode_t spi_mode;
325  spi_master_chip_select_polarity_t cs_polarity;
327 } nfc3_cfg_t;
328 
333 typedef enum
334 {
335  NFC3_OK = 0,
336  NFC3_ERROR = -1
337 
339 
344 typedef enum
345 {
353  NFC3_TS_RESERVED = 7
354 
356 
373 
387 err_t nfc3_init ( nfc3_t *ctx, nfc3_cfg_t *cfg );
388 
403 err_t nfc3_generic_write ( nfc3_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len );
404 
420 err_t nfc3_generic_transfer ( nfc3_t *ctx, uint8_t *data_in, uint8_t tx_len, uint8_t *data_out, uint8_t rx_len );
421 
436 err_t nfc3_write_eeprom ( nfc3_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len );
437 
452 err_t nfc3_read_eeprom ( nfc3_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len );
453 
467 err_t nfc3_write_reg_with_and_mask ( nfc3_t *ctx, uint8_t reg, uint32_t data_in );
468 
482 err_t nfc3_write_reg_with_or_mask ( nfc3_t *ctx, uint8_t reg, uint32_t data_in );
483 
497 err_t nfc3_write_reg ( nfc3_t *ctx, uint8_t reg, uint32_t data_in );
498 
512 err_t nfc3_read_reg ( nfc3_t *ctx, uint8_t reg, uint32_t *data_out );
513 
527 err_t nfc3_send_data ( nfc3_t *ctx, uint8_t *data_in, uint16_t len, uint8_t valid_bits );
528 
541 err_t nfc3_read_data ( nfc3_t *ctx, uint8_t *data_out, uint16_t len );
542 
555 err_t nfc3_load_rf_config ( nfc3_t *ctx, uint8_t tx_conf, uint8_t rx_conf );
556 
569 err_t nfc3_read_firmware_version ( nfc3_t *ctx, uint16_t *data_out );
570 
583 err_t nfc3_read_product_version ( nfc3_t *ctx, uint16_t *data_out );
584 
597 err_t nfc3_read_eeprom_version ( nfc3_t *ctx, uint16_t *data_out );
598 
607 void nfc3_reset ( nfc3_t *ctx );
608 
618 void nfc3_set_rst ( nfc3_t *ctx, uint8_t state );
619 
628 uint8_t nfc3_get_irq ( nfc3_t *ctx );
629 
638 uint8_t nfc3_get_bsy ( nfc3_t *ctx );
639 
648 uint8_t nfc3_get_aux ( nfc3_t *ctx );
649 
668 
678 
695 uint8_t nfc3_activate_type_a ( nfc3_t *ctx, uint8_t *data_out, uint8_t kind );
696 
709 err_t nfc3_mifare_block_read( nfc3_t *ctx, uint8_t *data_out, uint8_t blockno );
710 
721 uint8_t nfc3_mifare_block_write_16( nfc3_t *ctx, uint8_t *data_in, uint8_t blockno );
722 
733 err_t nfc3_mifare_halt( nfc3_t *ctx );
734 
748 uint8_t nfc3_read_card_uid ( nfc3_t *ctx, uint8_t *data_out );
749 
761 
773 
774 #ifdef __cplusplus
775 }
776 #endif
777 #endif // NFC3_H
778  // nfc3
780 
781 // ------------------------------------------------------------------------ END
nfc3_read_card_uid
uint8_t nfc3_read_card_uid(nfc3_t *ctx, uint8_t *data_out)
NFC 3 read card UID function.
nfc3_t::aux
digital_in_t aux
Definition: nfc3.h:289
nfc3_mifare_block_read
err_t nfc3_mifare_block_read(nfc3_t *ctx, uint8_t *data_out, uint8_t blockno)
NFC 3 MIFARE block read function.
nfc3_cfg_setup
void nfc3_cfg_setup(nfc3_cfg_t *cfg)
NFC 3 configuration object setup function.
nfc3_write_eeprom
err_t nfc3_write_eeprom(nfc3_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len)
NFC 3 writing EEPROM function.
NFC3_TS_RECEIVING
@ NFC3_TS_RECEIVING
Definition: nfc3.h:351
nfc3_cfg_t
NFC 3 Click configuration object.
Definition: nfc3.h:306
nfc3_read_reg
err_t nfc3_read_reg(nfc3_t *ctx, uint8_t reg, uint32_t *data_out)
NFC 3 reading register function.
nfc3_get_transceive_state
nfc3_transceive_stat_t nfc3_get_transceive_state(nfc3_t *ctx)
NFC 3 get TRANSCEIVE_STATE from RF_STATUS register function.
NFC3_OK
@ NFC3_OK
Definition: nfc3.h:335
nfc3_cfg_t::sck
pin_name_t sck
Definition: nfc3.h:311
nfc3_generic_transfer
err_t nfc3_generic_transfer(nfc3_t *ctx, uint8_t *data_in, uint8_t tx_len, uint8_t *data_out, uint8_t rx_len)
NFC 3 data reading function.
NFC3_TS_TRANSMITTING
@ NFC3_TS_TRANSMITTING
Definition: nfc3.h:348
nfc3_transceive_stat_t
nfc3_transceive_stat_t
NFC 3 Click transceive status value data.
Definition: nfc3.h:345
nfc3_t::bsy
digital_in_t bsy
Definition: nfc3.h:290
nfc3_mifare_block_write_16
uint8_t nfc3_mifare_block_write_16(nfc3_t *ctx, uint8_t *data_in, uint8_t blockno)
NFC 3 MIFARE block write function.
nfc3_cfg_t::bsy
pin_name_t bsy
Definition: nfc3.h:318
nfc3_init
err_t nfc3_init(nfc3_t *ctx, nfc3_cfg_t *cfg)
NFC 3 initialization function.
nfc3_rx_num_bytes_received
uint16_t nfc3_rx_num_bytes_received(nfc3_t *ctx)
NFC 3 get number of received bytes function.
nfc3_enable_rx_tx_crc
err_t nfc3_enable_rx_tx_crc(nfc3_t *ctx)
NFC 3 enable RX and TX CRC calculation function.
nfc3_mifare_halt
err_t nfc3_mifare_halt(nfc3_t *ctx)
NFC 3 MIFARE Halt function.
NFC3_TS_WAIT_RECEIVE
@ NFC3_TS_WAIT_RECEIVE
Definition: nfc3.h:349
nfc3_write_reg_with_or_mask
err_t nfc3_write_reg_with_or_mask(nfc3_t *ctx, uint8_t reg, uint32_t data_in)
NFC 3 writing register function with OR mask.
nfc3_read_firmware_version
err_t nfc3_read_firmware_version(nfc3_t *ctx, uint16_t *data_out)
NFC 3 reading firmware version function.
NFC3_TS_WAIT_TRANSMIT
@ NFC3_TS_WAIT_TRANSMIT
Definition: nfc3.h:347
nfc3_t::rst
digital_out_t rst
Definition: nfc3.h:285
nfc3_cfg_t::rst
pin_name_t rst
Definition: nfc3.h:317
nfc3_write_reg_with_and_mask
err_t nfc3_write_reg_with_and_mask(nfc3_t *ctx, uint8_t reg, uint32_t data_in)
NFC 3 writing register function with AND mask.
nfc3_set_rst
void nfc3_set_rst(nfc3_t *ctx, uint8_t state)
NFC 3 set RST pin function.
nfc3_t::irq
digital_in_t irq
Definition: nfc3.h:291
nfc3_cfg_t::aux
pin_name_t aux
Definition: nfc3.h:316
nfc3_cfg_t::spi_speed
uint32_t spi_speed
Definition: nfc3.h:323
nfc3_cfg_t::mosi
pin_name_t mosi
Definition: nfc3.h:310
nfc3_return_value_t
nfc3_return_value_t
NFC 3 Click return value data.
Definition: nfc3.h:334
nfc3_t
NFC 3 Click context object.
Definition: nfc3.h:282
nfc3_get_bsy
uint8_t nfc3_get_bsy(nfc3_t *ctx)
NFC 3 get BSY pin function.
NFC3_TS_WAIT_FOR_DATA
@ NFC3_TS_WAIT_FOR_DATA
Definition: nfc3.h:350
nfc3_cfg_t::irq
pin_name_t irq
Definition: nfc3.h:319
nfc3_cfg_t::spi_mode
spi_master_mode_t spi_mode
Definition: nfc3.h:324
nfc3_cfg_t::cs_polarity
spi_master_chip_select_polarity_t cs_polarity
Definition: nfc3.h:325
nfc3_get_aux
uint8_t nfc3_get_aux(nfc3_t *ctx)
NFC 3 get AUX pin function.
nfc3_t::spi
spi_master_t spi
Definition: nfc3.h:295
nfc3_reset
void nfc3_reset(nfc3_t *ctx)
NFC 3 reset function.
nfc3_get_irq
uint8_t nfc3_get_irq(nfc3_t *ctx)
NFC 3 get IRQ pin function.
nfc3_read_eeprom
err_t nfc3_read_eeprom(nfc3_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len)
NFC 3 reading EEPROM function.
nfc3_read_product_version
err_t nfc3_read_product_version(nfc3_t *ctx, uint16_t *data_out)
NFC 3 reading product version function.
nfc3_send_data
err_t nfc3_send_data(nfc3_t *ctx, uint8_t *data_in, uint16_t len, uint8_t valid_bits)
NFC 3 send data function.
nfc3_cfg_t::cs
pin_name_t cs
Definition: nfc3.h:312
nfc3_read_data
err_t nfc3_read_data(nfc3_t *ctx, uint8_t *data_out, uint16_t len)
NFC 3 read data function.
NFC3_ERROR
@ NFC3_ERROR
Definition: nfc3.h:336
NFC3_TS_IDLE
@ NFC3_TS_IDLE
Definition: nfc3.h:346
nfc3_cfg_t::miso
pin_name_t miso
Definition: nfc3.h:309
nfc3_read_eeprom_version
err_t nfc3_read_eeprom_version(nfc3_t *ctx, uint16_t *data_out)
NFC 3 reading EEPROM version function.
NFC3_TS_RESERVED
@ NFC3_TS_RESERVED
Definition: nfc3.h:353
nfc3_load_rf_config
err_t nfc3_load_rf_config(nfc3_t *ctx, uint8_t tx_conf, uint8_t rx_conf)
NFC 3 load RF config function.
nfc3_clear_rx_tx_crc
err_t nfc3_clear_rx_tx_crc(nfc3_t *ctx)
NFC 3 clear RX and TX CRC function.
nfc3_activate_type_a
uint8_t nfc3_activate_type_a(nfc3_t *ctx, uint8_t *data_out, uint8_t kind)
NFC 3 activate ISO/IEC 14443 type A and read card UID function.
nfc3_t::chip_select
pin_name_t chip_select
Definition: nfc3.h:297
nfc3_write_reg
err_t nfc3_write_reg(nfc3_t *ctx, uint8_t reg, uint32_t data_in)
NFC 3 writing register function.
nfc3_generic_write
err_t nfc3_generic_write(nfc3_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len)
NFC 3 data writing function.
NFC3_TS_LOOPBACK
@ NFC3_TS_LOOPBACK
Definition: nfc3.h:352