14#ifndef ZEPHYR_INCLUDE_DRIVERS_USBC_USBC_TC_H_
15#define ZEPHYR_INCLUDE_DRIVERS_USBC_USBC_TC_H_
34#define TC_V_SINK_DISCONNECT_MIN_MV 800
40#define TC_V_SINK_DISCONNECT_MAX_MV 3670
47#define TC_T_VBUS_ON_MAX_MS 275
54#define TC_T_VBUS_OFF_MAX_MS 650
60#define TC_T_VCONN_ON_MAX_MS 2
67#define TC_T_VCONN_ON_PA_MAX_MS 100
74#define TC_T_VCONN_OFF_MAX_MS 35
81#define TC_T_SINK_ADJ_MAX_MS 60
87#define TC_T_DRP_MIN_MS 50
93#define TC_T_DRP_MAX_MS 100
100#define TC_T_DRP_TRANSITION_MIN_MS 0
107#define TC_T_DRP_TRANSITION_MAX_MS 1
113#define TC_T_DRP_TRY_MIN_MS 75
119#define TC_T_DRP_TRY_MAX_MS 150
125#define TC_T_DRP_TRY_WAIT_MIN_MS 400
131#define TC_T_DRP_TRY_WAIT_MAX_MS 800
137#define TC_T_TRY_TIMEOUT_MIN_MS 550
143#define TC_T_TRY_TIMEOUT_MAX_MS 1100
150#define TC_T_VPD_DETACH_MIN_MS 10
157#define TC_T_VPD_DETACH_MAX_MS 20
163#define TC_T_CC_DEBOUNCE_MIN_MS 100
169#define TC_T_CC_DEBOUNCE_MAX_MS 200
176#define TC_T_PD_DEBOUNCE_MIN_MS 10
183#define TC_T_PD_DEBOUNCE_MAX_MS 20
190#define TC_T_TRY_CC_DEBOUNCE_MIN_MS 10
197#define TC_T_TRY_CC_DEBOUNCE_MAX_MS 10
203#define TC_T_ERROR_RECOVERY_SELF_POWERED_MIN_MS 25
210#define TC_T_ERROR_RECOVERY_SOURCE_MIN_MS 240
217#define TC_T_RP_VALUE_CHANGE_MIN_MS 10
224#define TC_T_RP_VALUE_CHANGE_MAX_MS 20
231#define TC_T_SRC_DISCONNECT_MIN_MS 0
238#define TC_T_SRC_DISCONNECT_MAX_MS 20
244#define TC_T_NO_TOGGLE_CONNECT_MIN_MS 0
250#define TC_T_NO_TOGGLE_CONNECT_MAX_MS 5
257#define TC_T_ONE_PORT_TOGGLE_CONNECT_MIN_MS 0
264#define TC_T_ONE_PORT_TOGGLE_CONNECT_MAX_MS 80
271#define TC_T_TWO_PORT_TOGGLE_CONNECT_MIN_MS 0
278#define TC_T_TWO_PORT_TOGGLE_CONNECT_MAX_MS 510
287#define TC_T_VPDCTDD_MIN_US 30
296#define TC_T_VPDCTDD_MAX_MS 5
303#define TC_T_VPDDISABLE_MIN_MS 25
tc_vbus_level
VBUS level voltages.
Definition: usbc_tc.h:326
tc_cc_pull
CC pull resistors.
Definition: usbc_tc.h:352
tc_rp_value
Pull-Up resistor values.
Definition: usbc_tc.h:338
tc_cc_states
Possible port partner connections based on CC line states.
Definition: usbc_tc.h:411
tc_cc_voltage_state
CC Voltage status.
Definition: usbc_tc.h:308
tc_data_role
Power Delivery Data Role.
Definition: usbc_tc.h:389
tc_cable_plug
Cable plug.
Definition: usbc_tc.h:369
tc_power_role
Power Delivery Power Role.
Definition: usbc_tc.h:379
tc_cc_polarity
Polarity of the CC lines.
Definition: usbc_tc.h:401
@ TC_VBUS_PRESENT
VBUS is at least vSafe5V min.
Definition: usbc_tc.h:330
@ TC_VBUS_REMOVED
VBUS is less than vSinkDisconnect max.
Definition: usbc_tc.h:332
@ TC_VBUS_SAFE0V
VBUS is less than vSafe0V max.
Definition: usbc_tc.h:328
@ TC_CC_OPEN
No CC resistor.
Definition: usbc_tc.h:360
@ TC_CC_RD
Rd Pull-Down resistor.
Definition: usbc_tc.h:358
@ TC_CC_RP
Rp Pull-Up resistor.
Definition: usbc_tc.h:356
@ TC_RA_RD
Ra and Rd Pull-Down resistor.
Definition: usbc_tc.h:362
@ TC_CC_RA
Ra Pull-Down resistor.
Definition: usbc_tc.h:354
@ TC_RP_1A5
Pull-Up resistor for a current of 1.5A.
Definition: usbc_tc.h:342
@ TC_RP_RESERVED
No Pull-Up resistor is applied.
Definition: usbc_tc.h:346
@ TC_RP_USB
Pull-Up resistor for a current of 900mA.
Definition: usbc_tc.h:340
@ TC_RP_3A0
Pull-Up resistor for a current of 3.0A.
Definition: usbc_tc.h:344
@ TC_CC_UFP_ATTACHED
Plain UFP attached.
Definition: usbc_tc.h:424
@ TC_CC_NONE
No port partner attached.
Definition: usbc_tc.h:413
@ TC_CC_UFP_AUDIO_ACC
UFP Audio accessory connected.
Definition: usbc_tc.h:420
@ TC_CC_DFP_DEBUG_ACC
DFP debug accessory connected.
Definition: usbc_tc.h:431
@ TC_CC_UFP_NONE
From DFP perspective.
Definition: usbc_tc.h:418
@ TC_CC_DFP_ATTACHED
From UFP perspective.
Definition: usbc_tc.h:429
@ TC_CC_UFP_DEBUG_ACC
UFP Debug accessory connected.
Definition: usbc_tc.h:422
@ TC_CC_VOLT_RP_DEF
Port partner is applying Rp (0.5A)
Definition: usbc_tc.h:316
@ TC_CC_VOLT_RA
Port partner is applying Ra.
Definition: usbc_tc.h:312
@ TC_CC_VOLT_OPEN
No port partner connection.
Definition: usbc_tc.h:310
@ TC_CC_VOLT_RD
Port partner is applying Rd.
Definition: usbc_tc.h:314
@ TC_CC_VOLT_RP_3A0
Port partner is applying Rp (3.0A)
Definition: usbc_tc.h:320
@ TC_CC_VOLT_RP_1A5
Definition: usbc_tc.h:318
@ TC_ROLE_DISCONNECTED
Port is disconnected.
Definition: usbc_tc.h:395
@ TC_ROLE_DFP
Data role is a Downstream Facing Port.
Definition: usbc_tc.h:393
@ TC_ROLE_UFP
Data role is an Upstream Facing Port.
Definition: usbc_tc.h:391
@ PD_PLUG_FROM_CABLE_VPD
Definition: usbc_tc.h:373
@ PD_PLUG_FROM_DFP_UFP
Definition: usbc_tc.h:371
@ TC_ROLE_SINK
Power role is a sink.
Definition: usbc_tc.h:381
@ TC_ROLE_SOURCE
Power role is a source.
Definition: usbc_tc.h:383
@ TC_POLARITY_CC1
Use CC1 IO for Power Delivery communication.
Definition: usbc_tc.h:403
@ TC_POLARITY_CC2
Use CC2 IO for Power Delivery communication.
Definition: usbc_tc.h:405