nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches
st25r3911b_spi.h File Reference
#include <stddef.h>
#include <zephyr/types.h>
#include <zephyr/sys/util.h>

Go to the source code of this file.

Macros

#define ST25R3911B_MAX_FIFO_LEN   96
 

Functions

int st25r3911b_spi_init (void)
 Initialize ST25R3911B NFC Reader SPI hardware interface.
 
int st25r3911b_multiple_reg_write (uint8_t start_reg, uint8_t *val, size_t len)
 Write multiple NFC Reader registers.
 
static int st25r3911b_reg_write (uint8_t reg, uint8_t val)
 Write a single NFCA Reader register.
 
int st25r3911b_multiple_reg_read (uint8_t start_reg, uint8_t *val, size_t len)
 Read multiple NFC Reader registers.
 
static int st25r3911b_reg_read (uint8_t reg, uint8_t *val)
 Read a single NFC Reader register.
 
int st25r3911b_cmd_execute (uint8_t cmd)
 Execute an NFC Reader direct command.
 
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.
 
int st25r3911b_fifo_write (uint8_t *data, size_t length)
 Write NFC Reader FIFO data.