10#include <zephyr/types.h>
25#define ST25R3911B_MAX_TX_LEN 8191
28#define ST25R3911B_NO_THRESHOLD_ANTICOLLISION 0xFF
31#define ST25R3911B_MAX_THRESHOLD 0x0F
34#define ST25R3911B_FDT_ADJUST 64
37#define ST25R3911B_MASK_RECEIVER_MAX_FDT 0xFC0
40#define ST25R3911B_NRT_64FC_MAX 0x3FFFC0
43#define ST25R3911B_NRT_FC_MAX 0x4095BF6A000
46#define NFC_1FC_IN_64FC 64
49#define NFC_1FC_IN_4096FC 4096
67#define ST25R3911B_FC_TO_64FC(_fc) \
68 DIV_ROUND_UP((_fc), NFC_1FC_IN_64FC)
73#define ST25R3911B_FC_TO_4096FC(_fc) \
74 DIV_ROUND_UP((_fc), NFC_1FC_IN_4096FC)
int st25r3911b_init(void)
Initialize the NFC reader.
int st25r3911b_mask_receive_timer_set(uint32_t fc)
st25r3911b_leds
Definition: st25r3911b_common.h:53
@ ST25R3911B_NFCA_LED
Definition: st25r3911b_common.h:55
@ ST25R3911B_NFCF_LED
Definition: st25r3911b_common.h:61
@ ST25R3911B_NFCB_LED
Definition: st25r3911b_common.h:58
int st25r3911b_non_response_timer_set(uint16_t fc, bool long_range, bool emv)
Set NFC Reader No-Response timer.
int st25r3911b_fifo_reload_lvl_get(uint8_t *tx_lvl, uint8_t *rx_lvl)
Get NFC Reader FIFO reload level.
int st25r3911b_field_on(uint8_t collision_threshold, uint8_t peer_threshold, uint8_t delay)
Perform automatic collision resolution and switch on the NFC Reader field.
int st25r3911b_technology_led_set(enum st25r3911b_leds led, bool on)
Enable/disable NFC Reader technology LED.
int st25r3911b_rx_tx_disable(void)
Disable NFC Reader Receiver and Transceiver.
int st25r3911b_tx_len_set(uint16_t len)
Set the NFC Reader TX packet length.