source: trunk/fw_g473rct/USBPD/Target/usbpd_vdm_user.h@ 63

Last change on this file since 63 was 59, checked in by f.jahn, 5 weeks ago

Added more USBPD-stack files.

File size: 3.1 KB
Line 
1/* USER CODE BEGIN Header */
2/**
3 ******************************************************************************
4 * @file usbpd_vdm_user.h
5 * @author MCD Application Team
6 * @brief Header file for usbpd_vdm_user.c file
7 ******************************************************************************
8 * @attention
9 *
10 * Copyright (c) 2026 STMicroelectronics.
11 * All rights reserved.
12 *
13 * This software is licensed under terms that can be found in the LICENSE file
14 * in the root directory of this software component.
15 * If no LICENSE file comes with this software, it is provided AS-IS.
16 *
17 ******************************************************************************
18 */
19/* USER CODE END Header */
20
21#ifndef __USBPD_VDM_USER_H_
22#define __USBPD_VDM_USER_H_
23
24#ifdef __cplusplus
25 extern "C" {
26#endif
27
28/* Includes ------------------------------------------------------------------*/
29/** @addtogroup STM32_USBPD_APPLICATION
30 * @{
31 */
32
33/** @addtogroup STM32_USBPD_APPLICATION_VDM_USER
34 * @{
35 */
36
37/* Exported typedef ----------------------------------------------------------*/
38typedef struct
39{
40 uint32_t VDM_XID_SOP :32; /*!< A decimal number assigned by USB-IF before certification */
41 uint32_t VDM_USB_VID_SOP :16; /*!< A unique 16-bit number, assigned to the Vendor by USB-IF. */
42 uint32_t VDM_PID_SOP :16; /*!< A unique number assigned by the Vendor ID holder identifying the product. */
43 uint32_t VDM_bcdDevice_SOP :16; /*!< A unique number assigned by the Vendor ID holder containing identity information relevant to the release version of the product. */
44 USBPD_ModalOp_TypeDef VDM_ModalOperation : 1; /*!< Product support Modes based on @ref USBPD_ModalOp_TypeDef */
45 USBPD_USBCapa_TypeDef VDM_USBHostSupport : 1; /*!< Indicates whether the UUT is capable of enumerating USB Host */
46 USBPD_USBCapa_TypeDef VDM_USBDeviceSupport: 1; /*!< Indicates whether the UUT is capable of enumerating USB Devices */
47 USBPD_ProductType_TypeDef VDM_ProductTypeUFPorCP : 3; /*!< Product type UFP or CablePlug of the UUT based on @ref USBPD_ProductType_TypeDef */
48 USBPD_ProductType_TypeDef VDM_ProductTypeDFP : 3; /*!< Product type DFP of the UUT based on @ref USBPD_ProductType_TypeDef */
49 uint32_t Reserved3 : 7; /*!< Reserved bits */
50} USBPD_VDM_SettingsTypeDef;
51/* USER CODE BEGIN typedef */
52
53/* USER CODE END typedef */
54
55/* Exported define -----------------------------------------------------------*/
56/* Exported constants --------------------------------------------------------*/
57/* Exported macro ------------------------------------------------------------*/
58/* Exported variables --------------------------------------------------------*/
59/* Exported functions --------------------------------------------------------*/
60USBPD_StatusTypeDef USBPD_VDM_UserInit(uint8_t PortNum);
61void USBPD_VDM_UserReset(uint8_t PortNum);
62/* USER CODE BEGIN Exported functions */
63/* USER CODE END Exported functions */
64
65/**
66 * @}
67 */
68
69/**
70 * @}
71 */
72
73#ifdef __cplusplus
74}
75#endif
76
77#endif /* __USBPD_VDM_USER_H_ */
78
Note: See TracBrowser for help on using the repository browser.