|
Zephyr API Documentation 4.3.0-rc1
A Scalable Open Source RTOS
|
Typedefs | |
| typedef int(* | policy_cb_get_src_caps_t) (const struct device *dev, const uint32_t **pdos, uint32_t *num_pdos) |
| Callback type used to get the Source Capabilities from the Device Policy Manager. | |
| typedef enum usbc_snk_req_reply_t(* | policy_cb_check_sink_request_t) (const struct device *dev, const uint32_t request_msg) |
| Callback type used to check if Sink request is valid. | |
| typedef bool(* | policy_cb_is_ps_ready_t) (const struct device *dev) |
| Callback type used to check if Source Power Supply is ready. | |
| typedef bool(* | policy_cb_present_contract_is_valid_t) (const struct device *dev, const uint32_t present_contract) |
| Callback type used to check if present Contract is still valid. | |
| typedef bool(* | policy_cb_change_src_caps_t) (const struct device *dev) |
| Callback type used to request that a different set of Source Caps be sent to the Sink. | |
| typedef void(* | policy_cb_set_port_partner_snk_cap_t) (const struct device *dev, const uint32_t *pdos, const int num_pdos) |
| Callback type used to report the Capabilities received from a Sink Port Partner. | |
| typedef int(* | policy_cb_get_src_rp_t) (const struct device *dev, enum tc_rp_value *rp) |
| Callback type used to get the Rp value that should be placed on the CC lines. | |
| typedef int(* | policy_cb_src_en_t) (const struct device *dev, bool en) |
| Callback type used to enable VBUS. | |
#include <zephyr/usb_c/usbc.h>
Callback type used to request that a different set of Source Caps be sent to the Sink.
| dev | USB-C Connector Instance |
| typedef enum usbc_snk_req_reply_t(* policy_cb_check_sink_request_t) (const struct device *dev, const uint32_t request_msg) |
#include <zephyr/usb_c/usbc.h>
Callback type used to check if Sink request is valid.
| dev | USB-C Connector Instance |
| request_msg | request message to check |
| typedef int(* policy_cb_get_src_caps_t) (const struct device *dev, const uint32_t **pdos, uint32_t *num_pdos) |
#include <zephyr/usb_c/usbc.h>
Callback type used to get the Source Capabilities from the Device Policy Manager.
| dev | USB-C Connector Instance |
| pdos | pointer to source capability pdos |
| num_pdos | pointer to number of source capability pdos |
| typedef int(* policy_cb_get_src_rp_t) (const struct device *dev, enum tc_rp_value *rp) |
#include <zephyr/usb_c/usbc.h>
Callback type used to get the Rp value that should be placed on the CC lines.
| dev | USB-C Connector Instance |
| rp | rp value |
#include <zephyr/usb_c/usbc.h>
Callback type used to check if Source Power Supply is ready.
| dev | USB-C Connector Instance |
| typedef bool(* policy_cb_present_contract_is_valid_t) (const struct device *dev, const uint32_t present_contract) |
#include <zephyr/usb_c/usbc.h>
Callback type used to check if present Contract is still valid.
| dev | USB-C Connector Instance |
| present_contract | present contract |
| typedef void(* policy_cb_set_port_partner_snk_cap_t) (const struct device *dev, const uint32_t *pdos, const int num_pdos) |
#include <zephyr/usb_c/usbc.h>
Callback type used to report the Capabilities received from a Sink Port Partner.
| dev | USB-C Connector Instance |
| pdos | pointer to sink cap pdos |
| num_pdos | number of sink cap pdos |
#include <zephyr/usb_c/usbc.h>
Callback type used to enable VBUS.
| dev | USB-C Connector Instance |
| en | true if VBUS should be enabled, else false to disable it |