HAL DTS Overview ¶
Introducing DTS ¶
- group DTS_Introduction
-
The DTS (Digital Temperature Sensor) hardware abstraction layer provides a set of APIs to interface with the STM32 on-chip temperature sensor peripheral.
It simplifies the initialization, configuration and process of peripheral features.
This abstraction layer ensures portability and ease of use across different STM32 series.
The HAL DTS driver includes the following features:
Temperature watchdog with configurable thresholds
Interrupt generation on configurable temperature events
Module and files ¶
The following diagram illustrates the DTS module and its associated files.
Component diagram ¶
The following diagram illustrates the software components involved in the DTS module. It shows the interactions between the user application, HAL drivers, low-level drivers, and the hardware components.
Configuration table ¶
The following table lists the configuration defines for the HAL DTS module, specifying their locations, default values, and descriptions:
- group DTS_Configuration_Table
-
Configuration inside the HAL DTS driver ¶
Config defines
Where
Default value
Note
PRODUCT
PreProcessor env
NA
The selected device
USE_HAL_DTS_MODULE
hal_conf.h
1
Enable the HAL DTS module
USE_HAL_DTS_REGISTER_CALLBACKS
hal_conf.h
0
Allow user to define his own callback
USE_HAL_DTS_CLK_ENABLE_MODEL
hal_conf.h
HAL_CLK_ENABLE_NO
Enable the gating of the peripheral clock
USE_HAL_DTS_USER_DATA
hal_conf.h
0
Add an user data inside HAL DTS handle
USE_HAL_CHECK_PARAM
hal_conf.h
0
Enable checking of vital parameters at runtime
USE_HAL_CHECK_PROCESS_STATE
hal_conf.h
0
Enable atomic access to process state check
USE_ASSERT_DBG_PARAM
PreProcessor env
NONE
Enable check parameters for HAL
USE_ASSERT_DBG_STATE
PreProcessor env
NONE
Enable check state for HAL