27#ifndef _TUSB_PD_TYPES_H_
28#define _TUSB_PD_TYPES_H_
36#include "common/tusb_compiler.h"
40TU_ATTR_BIT_FIELD_ORDER_BEGIN
50} tusb_typec_port_type_t;
60 PD_CTRL_GET_SOURCE_CAP,
68 PD_CTRL_DATA_RESET_COMPLETE,
69 PD_CTRL_NOT_SUPPORTED,
70 PD_CTRL_GET_SOURCE_CAP_EXTENDED,
73 PD_CTRL_GET_PPS_STATUS,
74 PD_CTRL_GET_COUNTRY_CODES,
75 PD_CTRL_GET_SINK_CAP_EXTENDED,
76 PD_CTRL_GET_SOURCE_INFO,
86 PD_DATA_BATTERY_STATUS,
88 PD_DATA_GET_COUNTRY_INFO,
96 PD_DATA_VENDOR_DEFINED,
106 PD_DATA_ROLE_UFP = 0x0,
107 PD_DATA_ROLE_DFP = 0x1,
111 PD_POWER_ROLE_SINK = 0x0,
112 PD_POWER_ROLE_SOURCE = 0x1,
116 uint16_t msg_type : 5;
117 uint16_t data_role : 1;
118 uint16_t specs_rev : 2;
119 uint16_t power_role : 1;
121 uint16_t n_data_obj : 3;
122 uint16_t extended : 1;
124TU_VERIFY_STATIC(
sizeof(
pd_header_t) == 2,
"size is not correct");
127 uint16_t data_size : 9;
129 uint16_t request_chunk : 1;
130 uint16_t chunk_number : 4;
131 uint16_t chunked : 1;
141 PD_PDO_TYPE_FIXED = 0,
143 PD_PDO_TYPE_VARIABLE,
149 uint32_t current_max_10ma : 10;
150 uint32_t voltage_50mv : 10;
151 uint32_t current_peak : 2;
153 uint32_t epr_mode_capable : 1;
154 uint32_t unchunked_ext_msg_support : 1;
155 uint32_t dual_role_data : 1;
156 uint32_t usb_comm_capable : 1;
157 uint32_t unconstrained_power : 1;
158 uint32_t usb_suspend_supported : 1;
159 uint32_t dual_role_power : 1;
166 uint32_t power_max_250mw : 10;
167 uint32_t voltage_min_50mv : 10;
168 uint32_t voltage_max_50mv : 10;
175 uint32_t current_max_10ma : 10;
176 uint32_t voltage_min_50mv : 10;
177 uint32_t voltage_max_50mv : 10;
184 uint32_t current_max_50ma : 7;
185 uint32_t reserved1 : 1;
186 uint32_t voltage_min_100mv : 8;
187 uint32_t reserved2 : 1;
188 uint32_t voltage_max_100mv : 8;
189 uint32_t reserved3 : 2;
190 uint32_t pps_power_limited : 1;
191 uint32_t spr_programmable : 2;
201 uint32_t current_extremum_10ma : 10;
202 uint32_t current_operate_10ma : 10;
204 uint32_t epr_mode_capable : 1;
205 uint32_t unchunked_ext_msg_support : 1;
206 uint32_t no_usb_suspend : 1;
207 uint32_t usb_comm_capable : 1;
208 uint32_t capability_mismatch : 1;
209 uint32_t give_back_flag : 1;
210 uint32_t object_position : 4;
215 uint32_t power_extremum_250mw : 10;
216 uint32_t power_operate_250mw : 10;
218 uint32_t epr_mode_capable : 1;
219 uint32_t unchunked_ext_msg_support : 1;
220 uint32_t no_usb_suspend : 1;
221 uint32_t usb_comm_capable : 1;
222 uint32_t capability_mismatch : 1;
223 uint32_t give_back_flag : 1;
224 uint32_t object_position : 4;
230TU_ATTR_BIT_FIELD_ORDER_END
AUDIO Channel Cluster Descriptor (4.1)
Definition audio.h:647
uint8_t type
Request type tusb_request_type_t.
Definition audio.h:824
uint8_t reserved
Definition hid.h:325