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 "mysensors_base.h"
12#include "stm32wlxx_hal.h"
13
14/**
15 * @brief NFC initialization and read NFC tag systemParams from addr 0. If data there are not valid, the default data is written
16 * @retval status HAL_OK, HAL_ERROR
17 */
18HAL_StatusTypeDef nfc_Init(I2C_HandleTypeDef *hi2c);
19
20/**
21 * @brief Write system params to NFC
22 * @retval status
23 */
24HAL_StatusTypeDef nfc_WriteSystemParams(I2C_HandleTypeDef *hi2c);
25
26/**
27 * @brief reset NFC data to factory - default state
28 * @retval status
29 */
30HAL_StatusTypeDef nfc_FactoryReset(I2C_HandleTypeDef *hi2c);
31
32/**
33 * @brief reading _systemParams from NFC - all data will be rewrite in _systemParams
34 * @retval status
35 */
36HAL_StatusTypeDef nfc_ReadSystemParams(I2C_HandleTypeDef *hi2c);
37
38
39/**
40 * @brief write the measure data paylod in measureDataNFC_t to NFC on next free position - in circular queue
41 */
42HAL_StatusTypeDef nfc_WriteMeasureData(I2C_HandleTypeDef *hi2c, const measureDataNFC_t* data);
43
44
45
46/**
47 * @brief processing if NFC INT is fired
48 */
49HAL_StatusTypeDef nfc_ProcessMailBox(I2C_HandleTypeDef *hi2c);
50
51#endif /* INC_NFC_H_ */
HAL_StatusTypeDef nfc_WriteSystemParams(I2C_HandleTypeDef *hi2c)
Write system params to NFC.
Definition nfc.c:149
HAL_StatusTypeDef nfc_ProcessMailBox(I2C_HandleTypeDef *hi2c)
processing if NFC INT is fired
Definition nfc.c:246
HAL_StatusTypeDef nfc_ReadSystemParams(I2C_HandleTypeDef *hi2c)
reading _systemParams from NFC - all data will be rewrite in _systemParams
Definition nfc.c:189
HAL_StatusTypeDef nfc_FactoryReset(I2C_HandleTypeDef *hi2c)
reset NFC data to factory - default state
Definition nfc.c:169
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:109
HAL_StatusTypeDef nfc_WriteMeasureData(I2C_HandleTypeDef *hi2c, const measureDataNFC_t *data)
write the measure data paylod in measureDataNFC_t to NFC on next free position - in circular queue
Definition nfc.c:208
block of one measure data in CayennelLPP payload format The Data field contains the same payload as i...