Lines Matching +full:source +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
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 */
70 * Request Policy Engine layer to get Source Capabilities from
80 * Request Policy Engine to request the port partner to source
126 /** Source Capabilities Received */
144 /** Check if Source Power Supply is at default level */
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);
188 * Source Capabilities
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
240 * @param dev USB-C Connector Instance
250 * @brief Callback type used to get the Source Capabilities
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,
264 * @param dev USB-C Connector Instance
272 * @brief Callback type used to check if Source Power Supply is ready
274 * @param dev USB-C Connector Instance
282 * @param dev USB-C Connector Instance
290 * @brief Callback type used to request that a different set of Source Caps
293 * @param dev USB-C Connector Instance
294 * @return true if a different set of Source Caps is available
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.
434 * Source Capabilities
463 * @param dev USB-C Connector Instance
471 * @param dev USB-C Connector Instance
477 * @brief Set the callback used to get the Source Capabilities
480 * @param dev USB-C Connector Instance
488 * @param dev USB-C Connector Instance
495 * @brief Set the callback used to check if Source Power Supply is ready
497 * @param dev USB-C Connector Instance
506 * @param dev USB-C Connector Instance
513 * @brief Set the callback used to request that a different set of Source Caps
516 * @param dev USB-C Connector Instance
525 * @param dev USB-C Connector Instance