nfctag4 2.0.0.0
|
Functions | |
void | nfctag4_cfg_setup (nfctag4_cfg_t *cfg) |
Config Object Initialization function. | |
NFCTAG4_RETVAL | nfctag4_init (nfctag4_t *ctx, nfctag4_cfg_t *cfg) |
Initialization function. | |
void | nfctag4_default_cfg (nfctag4_t *ctx) |
Click Default Configuration function. | |
uint8_t | nfctag4_int_get (nfctag4_t *ctx) |
Getting INT pin state. | |
uint8_t | nfctag4_i2c_get (nfctag4_t *ctx, transfer_info *dev, uint8_t *register_buffer) |
Getting registers via I2C. | |
uint8_t | nfctag4_i2c_set (nfctag4_t *ctx, transfer_info *dev, uint8_t *register_buffer) |
Setting registers via I2C. | |
uint8_t | nfctag4_password_present (nfctag4_t *ctx, uint8_t *password_bytes) |
Presenting password to device. | |
uint8_t | nfctag4_password_write (nfctag4_t *ctx, uint8_t *password_bytes) |
Writing password to device. | |
uint8_t | nfctag4_enable_mailbox (nfctag4_t *ctx, uint8_t enable_mailbox) |
Enabling or disabling mailbox. | |
uint8_t | nfctag4_enable_rf (nfctag4_t *ctx, uint8_t enable_rf) |
Enabling or disabling RF. | |
void nfctag4_cfg_setup | ( | nfctag4_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void nfctag4_default_cfg | ( | nfctag4_t * | ctx | ) |
Click Default Configuration function.
ctx | Click object. |
@description This function executes default configuration for NfcTag4 click.
uint8_t nfctag4_enable_mailbox | ( | nfctag4_t * | ctx, |
uint8_t | enable_mailbox ) |
Enabling or disabling mailbox.
ctx | Click object. |
enable_mailbox | enable mailbox (use macros) |
@description This function enables or disables mailbox functionality
uint8_t nfctag4_enable_rf | ( | nfctag4_t * | ctx, |
uint8_t | enable_rf ) |
Enabling or disabling RF.
ctx | Click object. |
enable_rf | enable RF (use macros) |
@description This function enables or disables RF functionality
uint8_t nfctag4_i2c_get | ( | nfctag4_t * | ctx, |
transfer_info * | dev, | ||
uint8_t * | register_buffer ) |
Getting registers via I2C.
ctx | Click object. |
dev | Structure with info needed for transfer. |
register_buffer | register buffer |
@description This function gets specified number of registers, from specified memory area, starting from specified register address
uint8_t nfctag4_i2c_set | ( | nfctag4_t * | ctx, |
transfer_info * | dev, | ||
uint8_t * | register_buffer ) |
Setting registers via I2C.
ctx | Click object. |
dev | Structure with info needed for transfer. |
register_buffer | register buffer |
@description This function sets specified number of registers, from specified memory area, starting from specified register address
NFCTAG4_RETVAL nfctag4_init | ( | nfctag4_t * | ctx, |
nfctag4_cfg_t * | cfg ) |
Initialization function.
ctx | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
uint8_t nfctag4_int_get | ( | nfctag4_t * | ctx | ) |
Getting INT pin state.
ctx | Click object. |
@description This function returns INT pin state
uint8_t nfctag4_password_present | ( | nfctag4_t * | ctx, |
uint8_t * | password_bytes ) |
Presenting password to device.
ctx | Click object. |
password_bytes | password buffer |
@description This function presents password to device in order to open I2C security session
uint8_t nfctag4_password_write | ( | nfctag4_t * | ctx, |
uint8_t * | password_bytes ) |
Writing password to device.
ctx | Click object. |
password_bytes | password buffer |
@description This function writes password to device in order to set new I2C security session password