1# UsbPortStatus 2 3 4## 概述 5 6USB设备端口状态参数 7 8**起始版本:** 5.1 9 10**相关模块:**[HdiUsb](_hdi_usb_v2_0.md) 11 12 13## 汇总 14 15 16### 成员变量 17 18| 名称 | 描述 | 19| -------- | -------- | 20| int [currentMode](#currentmode) | 当前模式。 | 21| int [currentPowerRole](#currentpowerrole) | 当前供电角色。 | 22| int [currentDataRole](#currentdatarole) | 当前角色数据。 | 23 24 25## 结构体成员变量说明 26 27 28### currentDataRole 29 30``` 31int UsbPortStatus::currentDataRole 32``` 33 34**描述** 35 36当前角色数据。 37 38 39### currentMode 40 41``` 42int UsbPortStatus::currentMode 43``` 44 45**描述** 46 47当前模式。 48 49 50### currentPowerRole 51 52``` 53int UsbPortStatus::currentPowerRole 54``` 55 56**描述** 57 58当前供电角色。 59