Zephyr Project API 4.2.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
bc12_partner_state Struct Reference

BC1.2 detected partner state. More...

#include <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...
 
   }  
 
};  
 

Detailed Description

BC1.2 detected partner state.

Field Documentation

◆ [union]

union { ... } bc12_partner_state

◆ bc12_role

enum bc12_role bc12_partner_state::bc12_role

Current role of the BC1.2 device.

◆ current_ua

int bc12_partner_state::current_ua

Current, in uA, that the charging partner provides.

Valid when bc12_role is BC12_PORTABLE_DEVICE.

◆ pd_partner_connected

bool bc12_partner_state::pd_partner_connected

True if a PD partner is currently connected.

Valid when bc12_role is BC12_CHARGING_PORT.

◆ type

enum bc12_type bc12_partner_state::type

Charging partner type.

Valid when bc12_role is BC12_PORTABLE_DEVICE.

◆ voltage_uv

int bc12_partner_state::voltage_uv

Voltage, in uV, that the charging partner provides.

Valid when bc12_role is BC12_PORTABLE_DEVICE.


The documentation for this struct was generated from the following file: