Zephyr Project API 3.7.0
A Scalable Open Source RTOS
|
BC1.2 detected partner state. More...
#include <usb_bc12.h>
Data Fields | ||
enum bc12_role | bc12_role | |
union { | ||
struct { | ||
enum bc12_type type | ||
int current_ua | ||
int voltage_uv | ||
} | ||
struct { | ||
bool pd_partner_connected | ||
} | ||
}; | ||
BC1.2 detected partner state.
bc12_role | Current role of the BC1.2 device. |
type | Charging partner type. Valid when bc12_role is BC12_PORTABLE_DEVICE. |
current_ma | Current, in uA, that the charging partner provides. Valid when bc12_role is BC12_PORTABLE_DEVICE. |
voltage_mv | Voltage, in uV, that the charging partner provides. Valid when bc12_role is BC12_PORTABLE_DEVICE. |
pd_partner_connected | True if a PD partner is currently connected. Valid when bc12_role is BC12_CHARGING_PORT. |
union { ... } bc12_partner_state |
enum bc12_role bc12_partner_state::bc12_role |
int bc12_partner_state::current_ua |
bool bc12_partner_state::pd_partner_connected |
enum bc12_type bc12_partner_state::type |
int bc12_partner_state::voltage_uv |