|
L14-Click 1.0
STM32WLE5CC LoRaWAN Sensor Platform
|
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_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 | |
| HAL_StatusTypeDef | nfc_ProcessMailBox (I2C_HandleTypeDef *hi2c) |
| processing if NFC INT is fired | |
| HAL_StatusTypeDef nfc_FactoryReset | ( | I2C_HandleTypeDef * | hi2c | ) |
reset NFC data to factory - default state
| status |
Definition at line 169 of file nfc.c.
References _tryInit, i2c_OnOff(), MEASUREDATANFC_ADDR, NFC_ADDR, NFC_IS, NFC_OFF, NFC_ON, and NFC_WRITE.
Referenced by checkResetRestart().
| 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.
| status | HAL_OK, HAL_ERROR |
Definition at line 109 of file nfc.c.
References _systemParams, _systemParamsBck, NFC_INIT, nfc_ReadMeasureNFC(), nfc_ReadSystemParamsToBck(), nfc_WriteMeasureNFC(), nfc_WriteSystemParams(), sensorsBase_CheckCRCMeasureNFC(), sensorsBase_MeasureNFCInit(), systemParams_Correction(), and writeLog().
Referenced by main().
| HAL_StatusTypeDef nfc_ProcessMailBox | ( | I2C_HandleTypeDef * | hi2c | ) |
| HAL_StatusTypeDef nfc_ReadSystemParams | ( | I2C_HandleTypeDef * | hi2c | ) |
reading _systemParams from NFC - all data will be rewrite in _systemParams
| status |
Definition at line 189 of file nfc.c.
References _systemParams, _systemParamsBck, _tryInit, i2c_OnOff(), NFC_IS, and nfc_ReadSystemParamsToBck().
Referenced by checkResetRestart(), and main().
| 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 at line 208 of file nfc.c.
References _measureNFC, _tryInit, i2c_OnOff(), INX_GET, MEASUREDATANFC_ADDR, NFC_IS, nfc_ReadMeasureNFC(), NFC_WRITE, nfc_WriteMeasureNFC(), sensorsBase_CheckCRCMeasureNFC(), sensorsBase_MeasureNFCInit(), and writeLog().
Referenced by myloraWan_MeasureFinish().
| HAL_StatusTypeDef nfc_WriteSystemParams | ( | I2C_HandleTypeDef * | hi2c | ) |
Write system params to NFC.
| status |
Definition at line 149 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().