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