L14-Click 1.0
STM32WLE5CC LoRaWAN Sensor Platform
Loading...
Searching...
No Matches
nfc.h File Reference
#include "stm32wlxx_hal.h"
Include dependency graph for nfc.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

HAL_StatusTypeDef nfc_Init (I2C_HandleTypeDef *hi2c)
 NFC initialization and read NFC tag systemParams from addr 0. If data there are not valid, the default data is written.
HAL_StatusTypeDef nfc_WriteSystemParams (I2C_HandleTypeDef *hi2c)
 Write system params to NFC.
HAL_StatusTypeDef nfc_FactoryReset (I2C_HandleTypeDef *hi2c)
 reset NFC data to factory - default state
HAL_StatusTypeDef nfc_ReadSystemParams (I2C_HandleTypeDef *hi2c)
 reading _systemParams from NFC - all data will be rewrite in _systemParams
HAL_StatusTypeDef nfc_ProcessMailBox (I2C_HandleTypeDef *hi2c)
 processing if NFC INT is fired

Function Documentation

◆ nfc_FactoryReset()

HAL_StatusTypeDef nfc_FactoryReset ( I2C_HandleTypeDef * hi2c)

reset NFC data to factory - default state

Return values
status

Definition at line 121 of file nfc.c.

References _tryInit, i2c_OnOff(), NFC_ADDR, NFC_IS, NFC_OFF, NFC_ON, and NFC_WRITE.

Referenced by checkResetRestart().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ nfc_Init()

HAL_StatusTypeDef nfc_Init ( I2C_HandleTypeDef * hi2c)

NFC initialization and read NFC tag systemParams from addr 0. If data there are not valid, the default data is written.

Return values
statusHAL_OK, HAL_ERROR

Definition at line 71 of file nfc.c.

References _systemParams, _systemParamsBck, NFC_INIT, nfc_ReadSystemParamsToBck(), nfc_WriteSystemParams(), systemParams_Correction(), and writeLog().

Referenced by main().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ nfc_ProcessMailBox()

HAL_StatusTypeDef nfc_ProcessMailBox ( I2C_HandleTypeDef * hi2c)

processing if NFC INT is fired

Definition at line 159 of file nfc.c.

References NFC_MAILBOX.

◆ nfc_ReadSystemParams()

HAL_StatusTypeDef nfc_ReadSystemParams ( I2C_HandleTypeDef * hi2c)

reading _systemParams from NFC - all data will be rewrite in _systemParams

Return values
status

Definition at line 140 of file nfc.c.

References _systemParams, _systemParamsBck, _tryInit, i2c_OnOff(), NFC_IS, and nfc_ReadSystemParamsToBck().

Referenced by checkResetRestart(), and main().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ nfc_WriteSystemParams()

HAL_StatusTypeDef nfc_WriteSystemParams ( I2C_HandleTypeDef * hi2c)

Write system params to NFC.

Return values
status

Definition at line 101 of file nfc.c.

References _systemParams, _tryInit, i2c_OnOff(), NFC_ADDR, NFC_IS, NFC_OFF, NFC_ON, NFC_WRITE, and systemParams_SetCRCSystemParams().

Referenced by checkResetRestart(), main(), and nfc_Init().

Here is the call graph for this function:
Here is the caller graph for this function: