23#ifndef INC_NFC_ST25R3_H_
24#define INC_NFC_ST25R3_H_
26#include "stm32wlxx_hal.h"
37int8_t nfc_st25r3_IsRFBusy(I2C_HandleTypeDef *hi2c);
44int8_t nfc_st25r3_Is(I2C_HandleTypeDef *hi2c, int8_t tryInit);
49HAL_StatusTypeDef nfc_st25r3_Init(I2C_HandleTypeDef *hi2c);
56void nfc_st25r3_ResetEEPROM(I2C_HandleTypeDef *hi2c, uint16_t len);
61HAL_StatusTypeDef nfc_st25r3_WriteEEPROM(I2C_HandleTypeDef *hi2c, uint16_t addr, uint8_t *pData, uint16_t len);
66HAL_StatusTypeDef nfc_st25r3_ReadEEPROM(I2C_HandleTypeDef *hi2c, uint16_t addr, uint8_t *pData, uint16_t len);
71HAL_StatusTypeDef nfc_st25r3_IsOn(I2C_HandleTypeDef *hi2c, uint8_t *onOff);
77HAL_StatusTypeDef nfc_st25r3_On(I2C_HandleTypeDef *hi2c);
82HAL_StatusTypeDef nfc_st25r3_Off(I2C_HandleTypeDef *hi2c);
89HAL_StatusTypeDef nfc_st25r3_ProcessMailBox(I2C_HandleTypeDef *hi2c);
90HAL_StatusTypeDef nfc_st25r3_WriteMailBoxNDEF(I2C_HandleTypeDef *hi2c,
char *text);
91HAL_StatusTypeDef nfc_st25r3_SetRFMgmt(I2C_HandleTypeDef *hi2c, uint8_t enable);
void nfc_st25r3_OnMailboxData(uint8_t *data, uint16_t len)