L14-Click 1.0
STM32WLE5CC LoRaWAN Sensor Platform
Loading...
Searching...
No Matches
sys_sensors.h File Reference

Header for sensors application. More...

This graph shows which files directly or indirectly include this file:

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.

Detailed Description

Header for sensors application.

Author
MCD Application Team
Attention

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.

Function Documentation

◆ EnvSensors_Init()

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().

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

◆ EnvSensors_Read()

int32_t EnvSensors_Read ( sensor_t * sensor_data)

Environmental sensor read.

Parameters
sensor_datasensor 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().

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