7#ifndef ST25R3911B_SPI_H_
8#define ST25R3911B_SPI_H_
11#include <zephyr/types.h>
12#include <zephyr/sys/util.h>
27#define ST25R3911B_MAX_FIFO_LEN 96
int st25r3911b_spi_init(void)
Initialize ST25R3911B NFC Reader SPI hardware interface.
static int st25r3911b_reg_write(uint8_t reg, uint8_t val)
Write a single NFCA Reader register.
Definition st25r3911b_spi.h:65
static int st25r3911b_reg_read(uint8_t reg, uint8_t *val)
Read a single NFC Reader register.
Definition st25r3911b_spi.h:96
int st25r3911b_fifo_write(uint8_t *data, size_t length)
Write NFC Reader FIFO data.
int st25r3911b_multiple_reg_write(uint8_t start_reg, uint8_t *val, size_t len)
Write multiple NFC Reader registers.
int st25r3911b_cmd_execute(uint8_t cmd)
Execute an NFC Reader direct command.
int st25r3911b_multiple_reg_read(uint8_t start_reg, uint8_t *val, size_t len)
Read multiple NFC Reader registers.
int st25r3911b_reg_modify(uint8_t reg, uint8_t clr_mask, uint8_t set_mask)
Modify a single NFC Reader register.
int st25r3911b_fifo_read(uint8_t *data, size_t length)
Read NFC Reader FIFO data.