L14-Click 1.0
STM32WLE5CC LoRaWAN Sensor Platform
Loading...
Searching...
No Matches
Data Structures
Here are the data structures with brief descriptions:
 Cbar_bmp585_tMeasurement data produced by the BMP585 barometric pressure sensor. Populated by bar_bmp585_Read(); check IsDataValid before use
 Cflash_at25CS_tConfiguration and state descriptor for one AT25EU0041A flash chip. Pass a pointer to this struct to every flash_at25_XXX function. Populate the IN fields before calling flash_at25_Init(); the OUT fields are filled by the initialisation routine
 CLoraInfo_t
 CmeasureDataNFC_tBlock of one measure data in CayennelLPP payload format
The Data field contains the same payload as in LoRaWan processing, without UTC/TIME8/TIME16 fields, because the UTC time of measure is in UTCMeasureTime field
 CmeasureNFC_tControl block of NFC on address MEASUREDATANFC_ADDR where are stored the last measure data
The EEPROM of NFC has 2kB, 2048bytes on address 128(MEASUREDATANFC_ADDR), max size for sensor data is 1920 bytes
sizeof(measureNFC_t) is 16(SZ_MEASURENFC) fixed struct size - !!! the size my be boundary 4 !!!
it is followed by measure data, on Data field
measureDataNFC_t - circular queue
 Cmems_DataBlock_tSensor data record stored as one element in the flash circular queue
 Cmems_MainBlock_tMaster control block stored at flash address 0
 Csens_GrpTiming_tDefinition for group of sensor sens_ReadingGrp_t the number of readings and timeout for reading data from sensors
 Csens_processing_tSensor definition - interface
 Csensor_t
 Csleeper_tNon-blocking timer utility – similar to HAL_Delay but without CPU blocking
 CsystemParams_tSystem configuration parameters – persisted in NFC EEPROM at address 0. The structure contains all modifiable variables/settings of system, can be read/writa via NFC tool or LoRa special read/write process The structure is 92 bytes (SZ_SYSTEMPARAMS) with a CRC8 byte at the end. Fields marked RO are written by the firmware; fields marked RW can be updated by a phone app via the NFC EEPROM or via LoRa special process
 CsystemParamsRef_tThe references to systemParams_t for change values from server via downlink.
The server sends via downlink the requirements for change of systemParams_t field, one by one. This struct is reference for finding the address of valid field in systemParams_t - its position and size:
 Ctmphm_sht45_tMeasurement data produced by the SHT45 temperature and humidity sensor. Populate by calling tmphm_sht45_Read(); check IsDataValid before using Temperature or Humidity
 CvalueChanger_tValue-stability detector – determines when a periodically updated value has remained unchanged for a configured time window