
Figure 12.
How to select and configure use cases in the code
Refer to
Astra_conf.h
for:
•
ASTRA ENGINE
parameters;
•
module usage parameters (
USE_XXXX
);
•
generic info: MCU name, board name, firmware version string, etc.
3.3
Astra_datamng.c
In this file, the data gathered from the sensors and other inputs are stored in the RAM. They are ready to be
manipulated, for example, to run a specific algorithm on the data.
There is a globally accessible
C
structure, the
AstraEngData
, where the data are available anytime.
The data are acquired from each module:
•
for example,
stm32wl_process()
for input/output on LoRa
•
ReadSensors(); ManageSensorsEvents();
for sensor input
•
saved in the RAM and/or EEPROM memory
•
AstraEngData_t
to store the latest acquired data
The
AstraEngData_t
structure is globally accessible.
The following code is used for the
AstraEngData_t
event data.
UM3019
Astra_datamng.c
UM3019
-
Rev 1
page 12/43