Zephyr API 3.6.99
Loading...
Searching...
No Matches
usbc_tc.h
Go to the documentation of this file.
1/*
2 * Copyright 2022 The Chromium OS Authors
3 * SPDX-License-Identifier: Apache-2.0
4 */
5
14#ifndef ZEPHYR_INCLUDE_DRIVERS_USBC_USBC_TC_H_
15#define ZEPHYR_INCLUDE_DRIVERS_USBC_USBC_TC_H_
16
24#include <zephyr/types.h>
25
26#ifdef __cplusplus
27extern "C" {
28#endif
29
34#define TC_V_SINK_DISCONNECT_MIN_MV 800
35
40#define TC_V_SINK_DISCONNECT_MAX_MV 3670
41
47#define TC_T_VBUS_ON_MAX_MS 275
48
54#define TC_T_VBUS_OFF_MAX_MS 650
55
60#define TC_T_VCONN_ON_MAX_MS 2
61
67#define TC_T_VCONN_ON_PA_MAX_MS 100
68
74#define TC_T_VCONN_OFF_MAX_MS 35
75
81#define TC_T_SINK_ADJ_MAX_MS 60
82
87#define TC_T_DRP_MIN_MS 50
88
93#define TC_T_DRP_MAX_MS 100
94
100#define TC_T_DRP_TRANSITION_MIN_MS 0
101
107#define TC_T_DRP_TRANSITION_MAX_MS 1
108
113#define TC_T_DRP_TRY_MIN_MS 75
114
119#define TC_T_DRP_TRY_MAX_MS 150
120
125#define TC_T_DRP_TRY_WAIT_MIN_MS 400
126
131#define TC_T_DRP_TRY_WAIT_MAX_MS 800
132
137#define TC_T_TRY_TIMEOUT_MIN_MS 550
138
143#define TC_T_TRY_TIMEOUT_MAX_MS 1100
144
150#define TC_T_VPD_DETACH_MIN_MS 10
151
157#define TC_T_VPD_DETACH_MAX_MS 20
158
163#define TC_T_CC_DEBOUNCE_MIN_MS 100
164
169#define TC_T_CC_DEBOUNCE_MAX_MS 200
170
176#define TC_T_PD_DEBOUNCE_MIN_MS 10
177
183#define TC_T_PD_DEBOUNCE_MAX_MS 20
184
190#define TC_T_TRY_CC_DEBOUNCE_MIN_MS 10
191
197#define TC_T_TRY_CC_DEBOUNCE_MAX_MS 10
198
203#define TC_T_ERROR_RECOVERY_SELF_POWERED_MIN_MS 25
204
210#define TC_T_ERROR_RECOVERY_SOURCE_MIN_MS 240
211
217#define TC_T_RP_VALUE_CHANGE_MIN_MS 10
218
224#define TC_T_RP_VALUE_CHANGE_MAX_MS 20
225
231#define TC_T_SRC_DISCONNECT_MIN_MS 0
232
238#define TC_T_SRC_DISCONNECT_MAX_MS 20
239
244#define TC_T_NO_TOGGLE_CONNECT_MIN_MS 0
245
250#define TC_T_NO_TOGGLE_CONNECT_MAX_MS 5
251
257#define TC_T_ONE_PORT_TOGGLE_CONNECT_MIN_MS 0
258
264#define TC_T_ONE_PORT_TOGGLE_CONNECT_MAX_MS 80
265
271#define TC_T_TWO_PORT_TOGGLE_CONNECT_MIN_MS 0
272
278#define TC_T_TWO_PORT_TOGGLE_CONNECT_MAX_MS 510
279
287#define TC_T_VPDCTDD_MIN_US 30
288
296#define TC_T_VPDCTDD_MAX_MS 5
297
303#define TC_T_VPDDISABLE_MIN_MS 25
304
317 /*8 Port partner is applying Rp (1.5A) */
321};
322
334
348
364
370 /* Message originated from a DFP or UFP */
372 /* Message originated from a Cable Plug or VPD */
375
385
397
407
433
438#ifdef __cplusplus
439}
440#endif
441
442#endif /* ZEPHYR_INCLUDE_DRIVERS_USBC_USBC_TC_H_ */
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