L14-Click 1.0
STM32WLE5CC LoRaWAN Sensor Platform
Loading...
Searching...
No Matches
nfc.h
Go to the documentation of this file.
1/*
2 * nfc.h
3 * MT 9.3.2026 - write/read data from NFC
4 * Created on: 9. 3. 2026
5 * Author: Milan
6 */
7
8#ifndef INC_NFC_H_
9#define INC_NFC_H_
10
11#include "stm32wlxx_hal.h"
12
13/**
14 * @brief NFC initialization and read NFC tag systemParams from addr 0. If data there are not valid, the default data is written
15 * @retval status HAL_OK, HAL_ERROR
16 */
17HAL_StatusTypeDef nfc_Init(I2C_HandleTypeDef *hi2c);
18
19/**
20 * @brief Write system params to NFC
21 * @retval status
22 */
23HAL_StatusTypeDef nfc_WriteSystemParams(I2C_HandleTypeDef *hi2c);
24
25/**
26 * @brief reset NFC data to factory - default state
27 * @retval status
28 */
29HAL_StatusTypeDef nfc_FactoryReset(I2C_HandleTypeDef *hi2c);
30
31/**
32 * @brief reading _systemParams from NFC - all data will be rewrite in _systemParams
33 * @retval status
34 */
35HAL_StatusTypeDef nfc_ReadSystemParams(I2C_HandleTypeDef *hi2c);
36
37
38
39
40/**
41 * @brief processing if NFC INT is fired
42 */
43HAL_StatusTypeDef nfc_ProcessMailBox(I2C_HandleTypeDef *hi2c);
44
45#endif /* INC_NFC_H_ */
HAL_StatusTypeDef nfc_WriteSystemParams(I2C_HandleTypeDef *hi2c)
Write system params to NFC.
Definition nfc.c:101
HAL_StatusTypeDef nfc_ProcessMailBox(I2C_HandleTypeDef *hi2c)
processing if NFC INT is fired
Definition nfc.c:159
HAL_StatusTypeDef nfc_ReadSystemParams(I2C_HandleTypeDef *hi2c)
reading _systemParams from NFC - all data will be rewrite in _systemParams
Definition nfc.c:140
HAL_StatusTypeDef nfc_FactoryReset(I2C_HandleTypeDef *hi2c)
reset NFC data to factory - default state
Definition nfc.c:121
HAL_StatusTypeDef nfc_Init(I2C_HandleTypeDef *hi2c)
NFC initialization and read NFC tag systemParams from addr 0. If data there are not valid,...
Definition nfc.c:71