Lines Matching +full:1 +full:- +full:a
3 * SPDX-License-Identifier: Apache-2.0
8 * @brief USB-C Power Delivery API used for USB-C drivers
31 * @brief Maximum length of a non-Extended Message in bytes.
32 * See Table 6-75 Value Parameters
39 * See Table 6-75 Value Parameters
45 * @brief Maximum length of a Chunked Message in bytes.
48 * then the Protocol Layer supports a Chunking mechanism to
51 * See Table 6-75 Value Parameters
57 * @name USB PD 3.1 Rev 1.6, Table 6-70 Counter Parameters
63 * Messages which have been sent by a Source at power up or after a
79 * @name USB PD 3.1 Rev 1.6, Table 6-68 Time Values
84 * @brief The NoResponseTimer is used by the Policy Engine in a Source to
85 * determine that its Port Partner is not responding after a Hard Reset.
91 * @brief The NoResponseTimer is used by the Policy Engine in a Source to
92 * determine that its Port Partner is not responding after a Hard Reset.
114 * @brief Minimum time a Source waits after changing Rp from SinkTxOk to SinkTxNG
115 * before initiating an AMS by sending a Message.
121 * @brief Maximum time a Source waits after changing Rp from SinkTxOk to SinkTxNG
122 * before initiating an AMS by sending a Message.
128 * @brief Minimum time a source shall wait before sending a
130 * 1) The Port is Attached.
131 * 2) The Source is not in an active connection with a PD Sink Port.
137 * @brief Maximum time a source shall wait before sending a
139 * 1) The Port is Attached.
140 * 2) The Source is not in an active connection with a PD Sink Port.
148 * @brief Minimum time a sink shall wait for a Source_Capabilities message
149 * before sending a Hard Reset
150 * See Table 6-61 Time Values
156 * @brief Minimum time a sink shall wait for a Source_Capabilities message
157 * before sending a Hard Reset
158 * See Table 6-61 Time Values
165 * See Table 7-24 Common Source/Sink Electrical Parameters
172 * See Table 7-24 Common Source/Sink Electrical Parameters
179 * See Table 7-24 Common Source/Sink Electrical Parameters
186 * See Table 7-24 Common Source/Sink Electrical Parameters
197 * @brief Minimum time a Hard Reset must complete.
198 * See Table 6-68 Time Values
203 * @brief Maximum time a Hard Reset must complete.
204 * See Table 6-68 Time Values
209 * @brief Minimum time a response must be sent from a Port Partner
210 * See Table 6-68 Time Values
215 * @brief Nomiminal time a response must be sent from a Port Partner
216 * See Table 6-68 Time Values
221 * @brief Maximum time a response must be sent from a Port Partner
222 * See Table 6-68 Time Values
227 * @brief Minimum SPR Mode time for a power supply to transition to a new level
228 * See Table 6-68 Time Values
233 * @brief Nominal SPR Mode time for a power supply to transition to a new level
234 * See Table 6-68 Time Values
239 * @brief Maximum SPR Mode time for a power supply to transition to a new level
240 * See Table 6-68 Time Values
245 * @brief Minimum EPR Mode time for a power supply to transition to a new level
246 * See Table 6-68 Time Values
251 * @brief Nominal EPR Mode time for a power supply to transition to a new level
252 * See Table 6-68 Time Values
257 * @brief Maximum EPR Mode time for a power supply to transition to a new level
258 * See Table 6-68 Time Values
263 * @brief Minimum time to wait before sending another request after receiving a Wait message
264 * See Table 6-68 Time Values
269 * @brief Minimum time to wait before sending a Not_Supported message after receiving a
271 * See Table 6-68 Time Values
276 * @brief Nominal time to wait before sending a Not_Supported message after receiving a
278 * See Table 6-68 Time Values
283 * @brief Maximum time to wait before sending a Not_Supported message after receiving a
285 * See Table 6-68 Time Values
290 * @brief Convert bytes to PD Header data object count, where a
291 * data object is 4-bytes.
317 * @brief Build a PD message header
318 * See Table 6-1 Message Header
325 uint16_t port_data_role : 1;
329 uint16_t port_power_role : 1;
335 uint16_t extended : 1;
341 * @brief Used to get extended header from the first 32-bit word of the message
343 * @param c first 32-bit word of the message
349 * See Table 6-3 Extended Message Header
356 uint16_t reserved0 : 1;
357 /** 1 for a chunked message, else 0 */
358 uint16_t request_chunk : 1;
359 /** Chunk number when chkd = 1, else 0 */
361 /** 1 for chunked messages */
362 uint16_t chunked : 1;
369 * PDO - Power Data Object
370 * RDO - Request Data Object
374 * @brief Maximum number of 32-bit data objects sent in a single request
380 * Table 6-7 Power Data Object
386 PDO_BATTERY = 1,
387 /** Variable Supply (non-Battery) */
408 * @brief Convert a Fixed PDO Current from 10mA units to milliamps.
415 * @brief Convert a Fixed PDO Voltage from 50mV units to millivolts.
424 * @brief Create a Fixed Supply PDO Source value
425 * See Table 6-9 Fixed Supply PDO - Source
438 uint32_t unchunked_ext_msg_supported : 1;
439 /** Dual-Role Data */
440 uint32_t dual_role_data : 1;
442 uint32_t usb_comms_capable : 1;
444 uint32_t unconstrained_power : 1;
446 uint32_t usb_suspend_supported : 1;
447 /** Dual-Role Power */
448 uint32_t dual_role_power : 1;
457 * @brief Fast Role Swap Required for USB Type-C current
464 /** 1.5A @ 5V */
466 /** 3.0A @ 5V */
471 * @brief Create a Fixed Supply PDO Sink value
472 * See Table 6-14 Fixed Supply PDO - Sink
482 /** Fast Role Swap required USB Type-C Current */
484 /** Dual-Role Data */
485 uint32_t dual_role_data : 1;
487 uint32_t usb_comms_capable : 1;
489 uint32_t unconstrained_power : 1;
491 uint32_t higher_capability : 1;
492 /** Dual-Role Power */
493 uint32_t dual_role_power : 1;
516 * @brief Convert a Variable PDO Current from 10mA units to milliamps.
523 * @brief Convert a Variable PDO Voltage from 50mV units to millivolts.
530 * @brief Create a Variable Supply PDO Source value
531 * See Table 6-11 Variable Supply (non-Battery) PDO - Source
549 * @brief Create a Variable Supply PDO Sink value
550 * See Table 6-15 Variable Supply (non-Battery) PDO - Sink
582 * @brief Convert a Battery PDO Power from 250mW units to milliwatts
589 * @brief Convert a Battery PDO Voltage from 50mV units to millivolts
596 * @brief Create a Battery Supply PDO Source value
597 * See Table 6-12 Battery Supply PDO - Source
615 * @brief Create a Battery Supply PDO Sink value
616 * See Table 6-16 Battery Supply PDO - Sink
663 * See Table 6-13 Programmable Power Supply APDO - Source
670 uint32_t reserved0 : 1;
674 uint32_t reserved1 : 1;
680 uint32_t pps_power_limited : 1;
683 * 01b…11b - Reserved, Shall Not be used
696 * See Table 6-17 Programmable Power Supply APDO - Sink
703 uint32_t reserved0 : 1;
707 uint32_t reserved1 : 1;
714 * 01b…11b - Reserved, Shall Not be used
727 * a request for power.
732 * @brief Create a Fixed RDO value
733 * See Table 6-19 Fixed and Variable Request Data Object
746 /** Reserved - Shall be set to zero. */
749 uint32_t unchunked_ext_msg_supported : 1;
751 uint32_t no_usb_suspend : 1;
753 uint32_t usb_comm_capable : 1;
755 uint32_t cap_mismatch : 1;
757 uint32_t giveback : 1;
760 /** Reserved - Shall be set to zero. */
761 uint32_t reserved1 : 1;
765 * @brief Create a Variable RDO value
766 * See Table 6-19 Fixed and Variable Request Data Object
779 /** Reserved - Shall be set to zero. */
782 uint32_t unchunked_ext_msg_supported : 1;
784 uint32_t no_usb_suspend : 1;
786 uint32_t usb_comm_capable : 1;
788 uint32_t cap_mismatch : 1;
790 uint32_t giveback : 1;
793 /** Reserved - Shall be set to zero. */
794 uint32_t reserved1 : 1;
798 * @brief Create a Battery RDO value
799 * See Table 6-20 Battery Request Data Object
806 /** Reserved - Shall be set to zero. */
809 uint32_t unchunked_ext_msg_supported : 1;
811 uint32_t no_usb_suspend : 1;
813 uint32_t usb_comm_capable : 1;
815 uint32_t cap_mismatch : 1;
817 uint32_t giveback : 1;
820 /** Reserved - Shall be set to zero. */
821 uint32_t reserved1 : 1;
826 * See Table 6-22 Programmable Request Data Object
831 /** Reserved - Shall be set to zero. */
835 /** Reserved - Shall be set to zero. */
838 uint32_t unchunked_ext_msg_supported : 1;
840 uint32_t no_usb_suspend : 1;
842 uint32_t usb_comm_capable : 1;
844 uint32_t cap_mismatch : 1;
845 /** Reserved - Shall be set to zero */
846 uint32_t reserved2 : 1;
849 /** Reserved - Shall be set to zero. */
850 uint32_t reserved3 : 1;
863 PD_REV20 = 1,
870 * See USB Type-C Port Controller Interface Specification,
871 * Revision 2.0, Version 1.2, Table 4-38 TRANSMIT Register Definition
877 PD_PACKET_SOP_PRIME = 1,
898 #define NUM_SOP_STAR_TYPES (PD_PACKET_DEBUG_PRIME_PRIME + 1)
902 * See Table 6-5 Control Message Types
908 PD_CTRL_GOOD_CRC = 1,
955 /** 23-31 Reserved */
960 * See Table 6-6 Data Message Types
966 PD_DATA_SOURCE_CAP = 1,
973 /** 5-14 Reserved for REV 2.0 */
980 /** 8-14 Reserved for REV 3.0 */
990 * See Table 6-48 Extended Message Types
996 PD_EXT_SOURCE_CAP = 1,
1024 /*8 15-31 Reserved */
1034 USBPD_CC_PIN_2 = 1,