HAL UCPD Overview ¶
Introducing UCPD ¶
- group UCPD_Introduction
-
-
This introduction is under development.
-
Module and files ¶
The following diagram illustrates the UCPD module and its associated files.
Component diagram ¶
The following diagram illustrates the software components involved in the UCPD 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 UCPD module, specifying their locations, default values, and descriptions:
- group UCPD_Configuration_Table
-
¶
UCPD driver configuration ¶
Config defines
Where
Default value
Note
USE_HAL_UCPD_MODULE
hal_conf.h
1U
Enable HAL UCPD module
USE_HAL_UCPD_POWER_DELIVERY
hal_conf.h
1U
Enable the PD related functions in the driver
USE_HAL_UCPD_REGISTER_CALLBACKS
hal_conf.h
0U
Enable the register callbacks assert
USE_HAL_UCPD_CLK_ENABLE_MODEL
hal_conf.h
HAL_CLK_ENABLE_NO
Enable peripheral clock in the HAL_UCPD_Init
USE_HAL_UCPD_USER_DATA
hal_conf.h
0U
Add an user data inside HAL UCPD handle
USE_HAL_UCPD_GET_LAST_ERRORS
hal_conf.h
0U
Add error member inside HAL UCPD handle
USE_HAL_CHECK_PARAM
hal_conf.h
0U
Enable checking of vital parameters at runtime
USE_HAL_MUTEX
hal_conf.h
0U
Enable the use of semaphore in the HAL driver
USE_ASSERT_DBG_PARAM
PreProcessor env
NA
Enable the params assert
USE_ASSERT_DBG_STATE
PreProcessor env
NA
Enable the state assert