summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorhathach <[email protected]>2023-06-12 12:14:55 +0700
committerhathach <[email protected]>2023-06-12 12:14:55 +0700
commitdebde4cc97cb7c6c13d62d0e3bbe195c80bfec9f (patch)
tree92f191c4400969791343248d5fa11ccd6371b261 /src/common
parentbb4fb0543bab21e68748b359ec7d59e74cac1445 (diff)
response with request safe5v, get passed PS_READY
Diffstat (limited to 'src/common')
-rw-r--r--src/common/tusb_types.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/common/tusb_types.h b/src/common/tusb_types.h
index c92320e5c..cad633ee4 100644
--- a/src/common/tusb_types.h
+++ b/src/common/tusb_types.h
@@ -562,6 +562,16 @@ enum {
TUSB_PD_REV30 = 0x2,
};
+enum {
+ TUSB_PD_DATA_ROLE_UFP = 0x0,
+ TUSB_PD_DATA_ROLE_DFP = 0x1,
+};
+
+enum {
+ TUSB_PD_POWER_ROLE_SINK = 0x0,
+ TUSB_PD_POWER_ROLE_SOURCE = 0x1,
+};
+
typedef struct TU_ATTR_PACKED {
uint16_t msg_type : 5; // [0:4]
uint16_t data_role : 1; // [5] SOP only: 0 UFP, 1 DFP