Zephyr API Documentation
3.7.0
A Scalable Open Source RTOS
|
Typedefs | |
typedef int(* | policy_cb_get_snk_cap_t) (const struct device *dev, uint32_t **pdos, int *num_pdos) |
Callback type used to get the Sink Capabilities. | |
typedef void(* | policy_cb_set_src_cap_t) (const struct device *dev, const uint32_t *pdos, const int num_pdos) |
Callback type used to report the received Port Partner's Source Capabilities. | |
typedef bool(* | policy_cb_check_t) (const struct device *dev, const enum usbc_policy_check_t policy_check) |
Callback type used to check a policy. | |
typedef bool(* | policy_cb_wait_notify_t) (const struct device *dev, const enum usbc_policy_wait_t wait_notify) |
Callback type used to notify Device Policy Manager of WAIT message reception. | |
typedef void(* | policy_cb_notify_t) (const struct device *dev, const enum usbc_policy_notify_t policy_notify) |
Callback type used to notify Device Policy Manager of a policy change. | |
typedef uint32_t(* | policy_cb_get_rdo_t) (const struct device *dev) |
Callback type used to get the Request Data Object (RDO) | |
typedef bool(* | policy_cb_is_snk_at_default_t) (const struct device *dev) |
Callback type used to check if the sink power supply is at the default level. | |
typedef bool(* policy_cb_check_t) (const struct device *dev, const enum usbc_policy_check_t policy_check) |
#include <zephyr/usb_c/usbc.h>
Callback type used to check a policy.
dev | USB-C Connector Instance |
policy_check | policy to check |
#include <zephyr/usb_c/usbc.h>
Callback type used to get the Request Data Object (RDO)
dev | USB-C Connector Instance |
#include <zephyr/usb_c/usbc.h>
Callback type used to get the Sink Capabilities.
dev | USB-C Connector Instance |
pdos | pointer where pdos are stored |
num_pdos | pointer where number of pdos is stored |
#include <zephyr/usb_c/usbc.h>
Callback type used to check if the sink power supply is at the default level.
dev | USB-C Connector Instance |
typedef void(* policy_cb_notify_t) (const struct device *dev, const enum usbc_policy_notify_t policy_notify) |
#include <zephyr/usb_c/usbc.h>
Callback type used to notify Device Policy Manager of a policy change.
dev | USB-C Connector Instance |
policy_notify | policy notification |
typedef void(* policy_cb_set_src_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 received Port Partner's Source Capabilities.
dev | USB-C Connector Instance |
pdos | pointer to the partner's source pdos |
num_pdos | number of source pdos |
typedef bool(* policy_cb_wait_notify_t) (const struct device *dev, const enum usbc_policy_wait_t wait_notify) |
#include <zephyr/usb_c/usbc.h>
Callback type used to notify Device Policy Manager of WAIT message reception.
dev | USB-C Connector Instance |
wait_notify | wait notification |