Lines Matching +full:sink +full:- +full:pdos
3 * SPDX-License-Identifier: Apache-2.0
8 * @brief USB-C Device APIs
10 * This file contains the USB-C Device APIs.
26 * @brief USB-C Device APIs
27 * @defgroup _usbc_device_api USB-C Device API
36 * options are sufficient for the Sink to operate.
56 /** Request Type-C layer to transition to Disabled State */
58 /** Request Type-C layer to transition to Error Recovery State */
60 /** End of Type-C requests */
75 * Request Policy Engine to get Sink Capabilities from
112 /** Transition the Sink to default */
116 /** Sink SubPower state at 0V */
118 /** Sink SubPower state a 5V / 500mA */
120 /** Sink SubPower state a 5V / 1.5A */
122 /** Sink SubPower state a 5V / 3A */
140 /** Check if Sink is at default level */
152 /** The port partner is unable to meet the sink request at this time */
163 * @brief Device Policy Manager's response to a Sink Request
166 /** The sink port partner's request can be met */
168 /** The sink port partner's request can not be met */
170 /** The sink port partner's request can be met at a later time */
178 * @brief Callback type used to get the Sink Capabilities
180 * @param dev USB-C Connector Instance
181 * @param pdos pointer where pdos are stored
182 * @param num_pdos pointer where number of pdos is stored
185 typedef int (*policy_cb_get_snk_cap_t)(const struct device *dev, uint32_t **pdos, int *num_pdos);
190 * @param dev USB-C Connector Instance
191 * @param pdos pointer to the partner's source pdos
192 * @param num_pdos number of source pdos
194 typedef void (*policy_cb_set_src_cap_t)(const struct device *dev, const uint32_t *pdos,
200 * @param dev USB-C Connector Instance
211 * @param dev USB-C Connector Instance
222 * @param dev USB-C Connector Instance
231 * @param dev USB-C Connector Instance
237 * @brief Callback type used to check if the sink power supply is at
240 * @param dev USB-C Connector Instance
253 * @param dev USB-C Connector Instance
254 * @param pdos pointer to source capability pdos
255 * @param num_pdos pointer to number of source capability pdos
258 typedef int (*policy_cb_get_src_caps_t)(const struct device *dev, const uint32_t **pdos,
262 * @brief Callback type used to check if Sink request is valid
264 * @param dev USB-C Connector Instance
266 * @return sink request reply
274 * @param dev USB-C Connector Instance
282 * @param dev USB-C Connector Instance
291 * be sent to the Sink
293 * @param dev USB-C Connector Instance
300 * a Sink Port Partner
302 * @param dev USB-C Connector Instance
303 * @param pdos pointer to sink cap pdos
304 * @param num_pdos number of sink cap pdos
306 typedef void (*policy_cb_set_port_partner_snk_cap_t)(const struct device *dev, const uint32_t *pdos,
312 * @param dev USB-C Connector Instance
320 * @param dev USB-C Connector Instance
328 * @brief Start the USB-C Subsystem
337 * @brief Suspend the USB-C Subsystem
346 * @brief Make a request of the USB-C Subsystem
357 * @brief Bypass the next USB-C stack sleep and execute one more iteration of the state machines.
425 * @brief Set the callback used to get the Sink Capabilities
450 * @brief Set the callback used to check if the sink power supply is at
463 * @param dev USB-C Connector Instance
471 * @param dev USB-C Connector Instance
480 * @param dev USB-C Connector Instance
486 * @brief Set the callback used to check if Sink request is valid
488 * @param dev USB-C Connector Instance
497 * @param dev USB-C Connector Instance
506 * @param dev USB-C Connector Instance
514 * be sent to the Sink
516 * @param dev USB-C Connector Instance
523 * @brief Set the callback used to store the Capabilities received from a Sink Port Partner
525 * @param dev USB-C Connector Instance