|
L14-Click 1.0
STM32WLE5CC LoRaWAN Sensor Platform
|
Header for sensors application. More...
Go to the source code of this file.
Data Structures | |
| struct | sensor_t |
Functions | |
| int32_t | EnvSensors_Init (void) |
| initialize the environmental sensor | |
| int32_t | EnvSensors_Read (sensor_t *sensor_data) |
| Environmental sensor read. | |
Header for sensors application.
Copyright (c) 2026 STMicroelectronics. All rights reserved.
This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.
Definition in file sys_sensors.h.
| int32_t EnvSensors_Init | ( | void | ) |
initialize the environmental sensor
Definition at line 161 of file sys_sensors.c.
References Error_Handler().
Referenced by SystemApp_Init().
| int32_t EnvSensors_Read | ( | sensor_t * | sensor_data | ) |
Environmental sensor read.
| sensor_data | sensor data |
< default humidity
< default temperature
< default pressure
< default latitude position
< 2^23 - 1
< default longitude position
< 2^23 - 1
Definition at line 122 of file sys_sensors.c.
References sensor_t::humidity, HUMIDITY_DEFAULT_VAL, sensor_t::latitude, sensor_t::longitude, MAX_GPS_POS, sensor_t::pressure, PRESSURE_DEFAULT_VAL, STSOP_LATTITUDE, STSOP_LONGITUDE, SYS_GetTemperatureLevel(), sensor_t::temperature, and TEMPERATURE_DEFAULT_VAL.
Referenced by GetTemperatureLevel().