nfc3 2.0.0.0
|
This file contains API for NFC 3 Click Driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_spi_master.h"
Go to the source code of this file.
Data Structures | |
struct | nfc3_t |
NFC 3 Click context object. More... | |
struct | nfc3_cfg_t |
NFC 3 Click configuration object. More... | |
Enumerations | |
enum | nfc3_return_value_t { NFC3_OK = 0 , NFC3_ERROR = -1 } |
NFC 3 Click return value data. More... | |
enum | nfc3_transceive_stat_t { NFC3_TS_IDLE = 0 , NFC3_TS_WAIT_TRANSMIT = 1 , NFC3_TS_TRANSMITTING = 2 , NFC3_TS_WAIT_RECEIVE = 3 , NFC3_TS_WAIT_FOR_DATA = 4 , NFC3_TS_RECEIVING = 5 , NFC3_TS_LOOPBACK = 6 , NFC3_TS_RESERVED = 7 } |
NFC 3 Click transceive status value data. More... | |
Functions | |
void | nfc3_cfg_setup (nfc3_cfg_t *cfg) |
NFC 3 configuration object setup function. | |
err_t | nfc3_init (nfc3_t *ctx, nfc3_cfg_t *cfg) |
NFC 3 initialization function. | |
err_t | nfc3_generic_write (nfc3_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
NFC 3 data writing function. | |
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. | |
err_t | nfc3_write_eeprom (nfc3_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
NFC 3 writing EEPROM function. | |
err_t | nfc3_read_eeprom (nfc3_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
NFC 3 reading EEPROM function. | |
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. | |
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. | |
err_t | nfc3_write_reg (nfc3_t *ctx, uint8_t reg, uint32_t data_in) |
NFC 3 writing register function. | |
err_t | nfc3_read_reg (nfc3_t *ctx, uint8_t reg, uint32_t *data_out) |
NFC 3 reading register function. | |
err_t | nfc3_send_data (nfc3_t *ctx, uint8_t *data_in, uint16_t len, uint8_t valid_bits) |
NFC 3 send data function. | |
err_t | nfc3_read_data (nfc3_t *ctx, uint8_t *data_out, uint16_t len) |
NFC 3 read data function. | |
err_t | nfc3_load_rf_config (nfc3_t *ctx, uint8_t tx_conf, uint8_t rx_conf) |
NFC 3 load RF config function. | |
err_t | nfc3_read_firmware_version (nfc3_t *ctx, uint16_t *data_out) |
NFC 3 reading firmware version function. | |
err_t | nfc3_read_product_version (nfc3_t *ctx, uint16_t *data_out) |
NFC 3 reading product version function. | |
err_t | nfc3_read_eeprom_version (nfc3_t *ctx, uint16_t *data_out) |
NFC 3 reading EEPROM version function. | |
void | nfc3_reset (nfc3_t *ctx) |
NFC 3 reset function. | |
void | nfc3_set_rst (nfc3_t *ctx, uint8_t state) |
NFC 3 set RST pin function. | |
uint8_t | nfc3_get_irq (nfc3_t *ctx) |
NFC 3 get IRQ pin function. | |
uint8_t | nfc3_get_bsy (nfc3_t *ctx) |
NFC 3 get BSY pin function. | |
uint8_t | nfc3_get_aux (nfc3_t *ctx) |
NFC 3 get AUX pin function. | |
nfc3_transceive_stat_t | nfc3_get_transceive_state (nfc3_t *ctx) |
NFC 3 get TRANSCEIVE_STATE from RF_STATUS register function. | |
uint16_t | nfc3_rx_num_bytes_received (nfc3_t *ctx) |
NFC 3 get number of received bytes function. | |
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. | |
err_t | nfc3_mifare_block_read (nfc3_t *ctx, uint8_t *data_out, uint8_t blockno) |
NFC 3 MIFARE block read function. | |
uint8_t | nfc3_mifare_block_write_16 (nfc3_t *ctx, uint8_t *data_in, uint8_t blockno) |
NFC 3 MIFARE block write function. | |
err_t | nfc3_mifare_halt (nfc3_t *ctx) |
NFC 3 MIFARE Halt function. | |
uint8_t | nfc3_read_card_uid (nfc3_t *ctx, uint8_t *data_out) |
NFC 3 read card UID function. | |
err_t | nfc3_clear_rx_tx_crc (nfc3_t *ctx) |
NFC 3 clear RX and TX CRC function. | |
err_t | nfc3_enable_rx_tx_crc (nfc3_t *ctx) |
NFC 3 enable RX and TX CRC calculation function. | |
This file contains API for NFC 3 Click Driver.
enum nfc3_return_value_t |