Zephyr Project API 3.7.0
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
 
union { 
 
   struct { 
 
      enum bc12_type   type 
 
      int   current_ua 
 
      int   voltage_uv 
 
   }  
 
   struct { 
 
      bool   pd_partner_connected 
 
   }  
 
};  
 

Detailed Description

BC1.2 detected partner state.

Parameters
bc12_roleCurrent role of the BC1.2 device.
typeCharging partner type. Valid when bc12_role is BC12_PORTABLE_DEVICE.
current_maCurrent, in uA, that the charging partner provides. Valid when bc12_role is BC12_PORTABLE_DEVICE.
voltage_mvVoltage, in uV, that the charging partner provides. Valid when bc12_role is BC12_PORTABLE_DEVICE.
pd_partner_connectedTrue if a PD partner is currently connected. Valid when bc12_role is BC12_CHARGING_PORT.

Field Documentation

◆ [union]

union { ... } bc12_partner_state

◆ bc12_role

enum bc12_role bc12_partner_state::bc12_role

◆ current_ua

int bc12_partner_state::current_ua

◆ pd_partner_connected

bool bc12_partner_state::pd_partner_connected

◆ type

enum bc12_type bc12_partner_state::type

◆ voltage_uv

int bc12_partner_state::voltage_uv

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