Zephyr API Documentation 4.0.0-rc2
A Scalable Open Source RTOS
|
USB Type-C . More...
Macros | |
#define | TC_V_SINK_DISCONNECT_MIN_MV 800 |
VBUS minimum for a sink disconnect detection. | |
#define | TC_V_SINK_DISCONNECT_MAX_MV 3670 |
VBUS maximum for a sink disconnect detection. | |
#define | TC_T_VBUS_ON_MAX_MS 275 |
From entry to Attached.SRC until VBUS reaches the minimum vSafe5V threshold as measured at the source’s receptacle See Table 4-29 VBUS and VCONN Timing Parameters. | |
#define | TC_T_VBUS_OFF_MAX_MS 650 |
From the time the Sink is detached until the Source removes VBUS and reaches vSafe0V (See USB PD). | |
#define | TC_T_VCONN_ON_MAX_MS 2 |
From the time the Source supplied VBUS in the Attached.SRC state. | |
#define | TC_T_VCONN_ON_PA_MAX_MS 100 |
From the time a Sink with accessory support enters the PoweredAccessory state until the Sink sources minimum VCONN voltage (see Table 4-5) See Table 4-29 VBUS and VCONN Timing Parameters. | |
#define | TC_T_VCONN_OFF_MAX_MS 35 |
From the time that a Sink is detached or as directed until the VCONN supply is disconnected. | |
#define | TC_T_SINK_ADJ_MAX_MS 60 |
Response time for a Sink to adjust its current consumption to be in the specified range due to a change in USB Type-C Current advertisement See Table 4-29 VBUS and VCONN Timing Parameters. | |
#define | TC_T_DRP_MIN_MS 50 |
The minimum period a DRP shall complete a Source to Sink and back advertisement See Table 4-30 DRP Timing Parameters. | |
#define | TC_T_DRP_MAX_MS 100 |
The maximum period a DRP shall complete a Source to Sink and back advertisement See Table 4-30 DRP Timing Parameters. | |
#define | TC_T_DRP_TRANSITION_MIN_MS 0 |
The minimum time a DRP shall complete transitions between Source and Sink roles during role resolution See Table 4-30 DRP Timing Parameters. | |
#define | TC_T_DRP_TRANSITION_MAX_MS 1 |
The maximum time a DRP shall complete transitions between Source and Sink roles during role resolution See Table 4-30 DRP Timing Parameters. | |
#define | TC_T_DRP_TRY_MIN_MS 75 |
Minimum wait time associated with the Try.SRC state. | |
#define | TC_T_DRP_TRY_MAX_MS 150 |
Maximum wait time associated with the Try.SRC state. | |
#define | TC_T_DRP_TRY_WAIT_MIN_MS 400 |
Minimum wait time associated with the Try.SNK state. | |
#define | TC_T_DRP_TRY_WAIT_MAX_MS 800 |
Maximum wait time associated with the Try.SNK state. | |
#define | TC_T_TRY_TIMEOUT_MIN_MS 550 |
Minimum timeout for transition from Try.SRC to TryWait.SNK. | |
#define | TC_T_TRY_TIMEOUT_MAX_MS 1100 |
Maximum timeout for transition from Try.SRC to TryWait.SNK. | |
#define | TC_T_VPD_DETACH_MIN_MS 10 |
Minimum Time for a DRP to detect that the connected Charge-Through VCONNPowered USB Device has been detached, after VBUS has been removed. | |
#define | TC_T_VPD_DETACH_MAX_MS 20 |
Maximum Time for a DRP to detect that the connected Charge-Through VCONNPowered USB Device has been detached, after VBUS has been removed. | |
#define | TC_T_CC_DEBOUNCE_MIN_MS 100 |
Minimum time a port shall wait before it can determine it is attached See Table 4-31 CC Timing. | |
#define | TC_T_CC_DEBOUNCE_MAX_MS 200 |
Maximum time a port shall wait before it can determine it is attached See Table 4-31 CC Timing. | |
#define | TC_T_PD_DEBOUNCE_MIN_MS 10 |
Minimum time a Sink port shall wait before it can determine it is detached due to the potential for USB PD signaling on CC as described in the state definitions. | |
#define | TC_T_PD_DEBOUNCE_MAX_MS 20 |
Maximum time a Sink port shall wait before it can determine it is detached due to the potential for USB PD signaling on CC as described in the state definitions. | |
#define | TC_T_TRY_CC_DEBOUNCE_MIN_MS 10 |
Minimum Time a port shall wait before it can determine it is re-attached during the try-wait process. | |
#define | TC_T_TRY_CC_DEBOUNCE_MAX_MS 10 |
Maximum Time a port shall wait before it can determine it is re-attached during the try-wait process. | |
#define | TC_T_ERROR_RECOVERY_SELF_POWERED_MIN_MS 25 |
Minimum time a self-powered port shall remain in the ErrorRecovery state. | |
#define | TC_T_ERROR_RECOVERY_SOURCE_MIN_MS 240 |
Minimum time a source shall remain in the ErrorRecovery state if it was sourcing VCONN in the previous state. | |
#define | TC_T_RP_VALUE_CHANGE_MIN_MS 10 |
Minimum time a Sink port shall wait before it can determine there has been a change in Rp where CC is not BMC Idle or the port is unable to detect BMC Idle. | |
#define | TC_T_RP_VALUE_CHANGE_MAX_MS 20 |
Maximum time a Sink port shall wait before it can determine there has been a change in Rp where CC is not BMC Idle or the port is unable to detect BMC Idle. | |
#define | TC_T_SRC_DISCONNECT_MIN_MS 0 |
Minimum time a Source shall detect the SRC.Open state. | |
#define | TC_T_SRC_DISCONNECT_MAX_MS 20 |
Maximum time a Source shall detect the SRC.Open state. | |
#define | TC_T_NO_TOGGLE_CONNECT_MIN_MS 0 |
Minimum time to detect connection when neither Port Partner is toggling. | |
#define | TC_T_NO_TOGGLE_CONNECT_MAX_MS 5 |
Maximum time to detect connection when neither Port Partner is toggling. | |
#define | TC_T_ONE_PORT_TOGGLE_CONNECT_MIN_MS 0 |
Minimum time to detect connection when one Port Partner is toggling 0ms … dcSRC.DRP max * tDRP max + 2 * tNoToggleConnect). | |
#define | TC_T_ONE_PORT_TOGGLE_CONNECT_MAX_MS 80 |
Maximum time to detect connection when one Port Partner is toggling 0ms … dcSRC.DRP max * tDRP max + 2 * tNoToggleConnect). | |
#define | TC_T_TWO_PORT_TOGGLE_CONNECT_MIN_MS 0 |
Minimum time to detect connection when both Port Partners are toggling (0ms … 5 * tDRP max + 2 * tNoToggleConnect). | |
#define | TC_T_TWO_PORT_TOGGLE_CONNECT_MAX_MS 510 |
Maximum time to detect connection when both Port Partners are toggling (0ms … 5 * tDRP max + 2 * tNoToggleConnect). | |
#define | TC_T_VPDCTDD_MIN_US 30 |
Minimum time for a Charge-Through VCONN-Powered USB Device to detect that the Charge-Through source has disconnected from CC after VBUS has been removed, transition to CTUnattached.VPD, and re-apply its Rp termination advertising 3.0 A on the host port CC. | |
#define | TC_T_VPDCTDD_MAX_MS 5 |
Maximum time for a Charge-Through VCONN-Powered USB Device to detect that the Charge-Through source has disconnected from CC after VBUS has been removed, transition to CTUnattached.VPD, and re-apply its Rp termination advertising 3.0 A on the host port CC. | |
#define | TC_T_VPDDISABLE_MIN_MS 25 |
Minimum time for a Charge-Through VCONN-Powered USB Device shall remain in CTDisabled.VPD state. | |
USB Type-C .
#define TC_T_CC_DEBOUNCE_MAX_MS 200 |
#include <zephyr/drivers/usb_c/usbc_tc.h>
Maximum time a port shall wait before it can determine it is attached See Table 4-31 CC Timing.
#define TC_T_CC_DEBOUNCE_MIN_MS 100 |
#include <zephyr/drivers/usb_c/usbc_tc.h>
Minimum time a port shall wait before it can determine it is attached See Table 4-31 CC Timing.
#define TC_T_DRP_MAX_MS 100 |
#include <zephyr/drivers/usb_c/usbc_tc.h>
The maximum period a DRP shall complete a Source to Sink and back advertisement See Table 4-30 DRP Timing Parameters.
#define TC_T_DRP_MIN_MS 50 |
#include <zephyr/drivers/usb_c/usbc_tc.h>
The minimum period a DRP shall complete a Source to Sink and back advertisement See Table 4-30 DRP Timing Parameters.
#define TC_T_DRP_TRANSITION_MAX_MS 1 |
#include <zephyr/drivers/usb_c/usbc_tc.h>
The maximum time a DRP shall complete transitions between Source and Sink roles during role resolution See Table 4-30 DRP Timing Parameters.
#define TC_T_DRP_TRANSITION_MIN_MS 0 |
#include <zephyr/drivers/usb_c/usbc_tc.h>
The minimum time a DRP shall complete transitions between Source and Sink roles during role resolution See Table 4-30 DRP Timing Parameters.
#define TC_T_DRP_TRY_MAX_MS 150 |
#include <zephyr/drivers/usb_c/usbc_tc.h>
Maximum wait time associated with the Try.SRC state.
See Table 4-30 DRP Timing Parameters
#define TC_T_DRP_TRY_MIN_MS 75 |
#include <zephyr/drivers/usb_c/usbc_tc.h>
Minimum wait time associated with the Try.SRC state.
See Table 4-30 DRP Timing Parameters
#define TC_T_DRP_TRY_WAIT_MAX_MS 800 |
#include <zephyr/drivers/usb_c/usbc_tc.h>
Maximum wait time associated with the Try.SNK state.
See Table 4-30 DRP Timing Parameters
#define TC_T_DRP_TRY_WAIT_MIN_MS 400 |
#include <zephyr/drivers/usb_c/usbc_tc.h>
Minimum wait time associated with the Try.SNK state.
See Table 4-30 DRP Timing Parameters
#define TC_T_ERROR_RECOVERY_SELF_POWERED_MIN_MS 25 |
#include <zephyr/drivers/usb_c/usbc_tc.h>
Minimum time a self-powered port shall remain in the ErrorRecovery state.
See Table 4-31 CC Timing
#define TC_T_ERROR_RECOVERY_SOURCE_MIN_MS 240 |
#include <zephyr/drivers/usb_c/usbc_tc.h>
Minimum time a source shall remain in the ErrorRecovery state if it was sourcing VCONN in the previous state.
See Table 4-31 CC Timing
#define TC_T_NO_TOGGLE_CONNECT_MAX_MS 5 |
#include <zephyr/drivers/usb_c/usbc_tc.h>
Maximum time to detect connection when neither Port Partner is toggling.
See Table 4-31 CC Timing
#define TC_T_NO_TOGGLE_CONNECT_MIN_MS 0 |
#include <zephyr/drivers/usb_c/usbc_tc.h>
Minimum time to detect connection when neither Port Partner is toggling.
See Table 4-31 CC Timing
#define TC_T_ONE_PORT_TOGGLE_CONNECT_MAX_MS 80 |
#include <zephyr/drivers/usb_c/usbc_tc.h>
Maximum time to detect connection when one Port Partner is toggling 0ms … dcSRC.DRP max * tDRP max + 2 * tNoToggleConnect).
See Table 4-31 CC Timing
#define TC_T_ONE_PORT_TOGGLE_CONNECT_MIN_MS 0 |
#include <zephyr/drivers/usb_c/usbc_tc.h>
Minimum time to detect connection when one Port Partner is toggling 0ms … dcSRC.DRP max * tDRP max + 2 * tNoToggleConnect).
See Table 4-31 CC Timing
#define TC_T_PD_DEBOUNCE_MAX_MS 20 |
#include <zephyr/drivers/usb_c/usbc_tc.h>
Maximum time a Sink port shall wait before it can determine it is detached due to the potential for USB PD signaling on CC as described in the state definitions.
See Table 4-31 CC Timing
#define TC_T_PD_DEBOUNCE_MIN_MS 10 |
#include <zephyr/drivers/usb_c/usbc_tc.h>
Minimum time a Sink port shall wait before it can determine it is detached due to the potential for USB PD signaling on CC as described in the state definitions.
See Table 4-31 CC Timing
#define TC_T_RP_VALUE_CHANGE_MAX_MS 20 |
#include <zephyr/drivers/usb_c/usbc_tc.h>
Maximum time a Sink port shall wait before it can determine there has been a change in Rp where CC is not BMC Idle or the port is unable to detect BMC Idle.
See Table 4-31 CC Timing
#define TC_T_RP_VALUE_CHANGE_MIN_MS 10 |
#include <zephyr/drivers/usb_c/usbc_tc.h>
Minimum time a Sink port shall wait before it can determine there has been a change in Rp where CC is not BMC Idle or the port is unable to detect BMC Idle.
See Table 4-31 CC Timing
#define TC_T_SINK_ADJ_MAX_MS 60 |
#include <zephyr/drivers/usb_c/usbc_tc.h>
Response time for a Sink to adjust its current consumption to be in the specified range due to a change in USB Type-C Current advertisement See Table 4-29 VBUS and VCONN Timing Parameters.
#define TC_T_SRC_DISCONNECT_MAX_MS 20 |
#include <zephyr/drivers/usb_c/usbc_tc.h>
Maximum time a Source shall detect the SRC.Open state.
The Source should detect the SRC.Open state as quickly as practical. See Table 4-31 CC Timing
#define TC_T_SRC_DISCONNECT_MIN_MS 0 |
#include <zephyr/drivers/usb_c/usbc_tc.h>
Minimum time a Source shall detect the SRC.Open state.
The Source should detect the SRC.Open state as quickly as practical. See Table 4-31 CC Timing
#define TC_T_TRY_CC_DEBOUNCE_MAX_MS 10 |
#include <zephyr/drivers/usb_c/usbc_tc.h>
Maximum Time a port shall wait before it can determine it is re-attached during the try-wait process.
See Table 4-31 CC Timing
#define TC_T_TRY_CC_DEBOUNCE_MIN_MS 10 |
#include <zephyr/drivers/usb_c/usbc_tc.h>
Minimum Time a port shall wait before it can determine it is re-attached during the try-wait process.
See Table 4-31 CC Timing
#define TC_T_TRY_TIMEOUT_MAX_MS 1100 |
#include <zephyr/drivers/usb_c/usbc_tc.h>
Maximum timeout for transition from Try.SRC to TryWait.SNK.
See Table 4-30 DRP Timing Parameters
#define TC_T_TRY_TIMEOUT_MIN_MS 550 |
#include <zephyr/drivers/usb_c/usbc_tc.h>
Minimum timeout for transition from Try.SRC to TryWait.SNK.
See Table 4-30 DRP Timing Parameters
#define TC_T_TWO_PORT_TOGGLE_CONNECT_MAX_MS 510 |
#include <zephyr/drivers/usb_c/usbc_tc.h>
Maximum time to detect connection when both Port Partners are toggling (0ms … 5 * tDRP max + 2 * tNoToggleConnect).
See Table 4-31 CC Timing
#define TC_T_TWO_PORT_TOGGLE_CONNECT_MIN_MS 0 |
#include <zephyr/drivers/usb_c/usbc_tc.h>
Minimum time to detect connection when both Port Partners are toggling (0ms … 5 * tDRP max + 2 * tNoToggleConnect).
See Table 4-31 CC Timing
#define TC_T_VBUS_OFF_MAX_MS 650 |
#include <zephyr/drivers/usb_c/usbc_tc.h>
From the time the Sink is detached until the Source removes VBUS and reaches vSafe0V (See USB PD).
See Table 4-29 VBUS and VCONN Timing Parameters
#define TC_T_VBUS_ON_MAX_MS 275 |
#include <zephyr/drivers/usb_c/usbc_tc.h>
From entry to Attached.SRC until VBUS reaches the minimum vSafe5V threshold as measured at the source’s receptacle See Table 4-29 VBUS and VCONN Timing Parameters.
#define TC_T_VCONN_OFF_MAX_MS 35 |
#include <zephyr/drivers/usb_c/usbc_tc.h>
From the time that a Sink is detached or as directed until the VCONN supply is disconnected.
See Table 4-29 VBUS and VCONN Timing Parameters
#define TC_T_VCONN_ON_MAX_MS 2 |
#include <zephyr/drivers/usb_c/usbc_tc.h>
From the time the Source supplied VBUS in the Attached.SRC state.
See Table 4-29 VBUS and VCONN Timing Parameters
#define TC_T_VCONN_ON_PA_MAX_MS 100 |
#include <zephyr/drivers/usb_c/usbc_tc.h>
From the time a Sink with accessory support enters the PoweredAccessory state until the Sink sources minimum VCONN voltage (see Table 4-5) See Table 4-29 VBUS and VCONN Timing Parameters.
#define TC_T_VPD_DETACH_MAX_MS 20 |
#include <zephyr/drivers/usb_c/usbc_tc.h>
Maximum Time for a DRP to detect that the connected Charge-Through VCONNPowered USB Device has been detached, after VBUS has been removed.
See Table 4-30 DRP Timing Parameters
#define TC_T_VPD_DETACH_MIN_MS 10 |
#include <zephyr/drivers/usb_c/usbc_tc.h>
Minimum Time for a DRP to detect that the connected Charge-Through VCONNPowered USB Device has been detached, after VBUS has been removed.
See Table 4-30 DRP Timing Parameters
#define TC_T_VPDCTDD_MAX_MS 5 |
#include <zephyr/drivers/usb_c/usbc_tc.h>
Maximum time for a Charge-Through VCONN-Powered USB Device to detect that the Charge-Through source has disconnected from CC after VBUS has been removed, transition to CTUnattached.VPD, and re-apply its Rp termination advertising 3.0 A on the host port CC.
See Table 4-31 CC Timing
#define TC_T_VPDCTDD_MIN_US 30 |
#include <zephyr/drivers/usb_c/usbc_tc.h>
Minimum time for a Charge-Through VCONN-Powered USB Device to detect that the Charge-Through source has disconnected from CC after VBUS has been removed, transition to CTUnattached.VPD, and re-apply its Rp termination advertising 3.0 A on the host port CC.
See Table 4-31 CC Timing
#define TC_T_VPDDISABLE_MIN_MS 25 |
#include <zephyr/drivers/usb_c/usbc_tc.h>
Minimum time for a Charge-Through VCONN-Powered USB Device shall remain in CTDisabled.VPD state.
See Table 4-31 CC Timing
#define TC_V_SINK_DISCONNECT_MAX_MV 3670 |
#include <zephyr/drivers/usb_c/usbc_tc.h>
VBUS maximum for a sink disconnect detection.
See Table 4-3 VBUS Sink Characteristics
#define TC_V_SINK_DISCONNECT_MIN_MV 800 |
#include <zephyr/drivers/usb_c/usbc_tc.h>
VBUS minimum for a sink disconnect detection.
See Table 4-3 VBUS Sink Characteristics
enum tc_cable_plug |
#include <zephyr/drivers/usb_c/usbc_tc.h>
Cable plug.
See 6.2.1.1.7 Cable Plug. Only applies to SOP' and SOP". Replaced by pd_power_role for SOP packets.
Enumerator | |
---|---|
PD_PLUG_FROM_DFP_UFP | |
PD_PLUG_FROM_CABLE_VPD |
enum tc_cc_polarity |
#include <zephyr/drivers/usb_c/usbc_tc.h>
Polarity of the CC lines.
Enumerator | |
---|---|
TC_POLARITY_CC1 | Use CC1 IO for Power Delivery communication. |
TC_POLARITY_CC2 | Use CC2 IO for Power Delivery communication. |
enum tc_cc_pull |
#include <zephyr/drivers/usb_c/usbc_tc.h>
CC pull resistors.
Enumerator | |
---|---|
TC_CC_RA | Ra Pull-Down resistor. |
TC_CC_RP | Rp Pull-Up resistor. |
TC_CC_RD | Rd Pull-Down resistor. |
TC_CC_OPEN | No CC resistor. |
TC_RA_RD | Ra and Rd Pull-Down resistor. |
enum tc_cc_states |
#include <zephyr/drivers/usb_c/usbc_tc.h>
Possible port partner connections based on CC line states.
enum tc_cc_voltage_state |
#include <zephyr/drivers/usb_c/usbc_tc.h>
CC Voltage status.
enum tc_data_role |
#include <zephyr/drivers/usb_c/usbc_tc.h>
Power Delivery Data Role.
Enumerator | |
---|---|
TC_ROLE_UFP | Data role is an Upstream Facing Port. |
TC_ROLE_DFP | Data role is a Downstream Facing Port. |
TC_ROLE_DISCONNECTED | Port is disconnected. |
enum tc_power_role |
#include <zephyr/drivers/usb_c/usbc_tc.h>
Power Delivery Power Role.
Enumerator | |
---|---|
TC_ROLE_SINK | Power role is a sink. |
TC_ROLE_SOURCE | Power role is a source. |
enum tc_rp_value |
#include <zephyr/drivers/usb_c/usbc_tc.h>
Pull-Up resistor values.
enum tc_vbus_level |
#include <zephyr/drivers/usb_c/usbc_tc.h>
VBUS level voltages.
Enumerator | |
---|---|
TC_VBUS_SAFE0V | VBUS is less than vSafe0V max. |
TC_VBUS_PRESENT | VBUS is at least vSafe5V min. |
TC_VBUS_REMOVED | VBUS is less than vSinkDisconnect max. |