response with request safe5v, get passed PS_READY

This commit is contained in:
hathach
2023-06-12 12:14:55 +07:00
parent bb4fb0543b
commit debde4cc97
5 changed files with 180 additions and 18 deletions

View File

@@ -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