# PortInfo ## 概述 USB设备端口信息。 **Since:** 3.2 **Version:** 1.0 **相关模块:** [USB](_u_s_b.md) ## 汇总 ### Public 属性 | 名称 | 描述 | | -------- | -------- | | [portId](#portid) | int
USB设备端口ID。  | | [powerRole](#powerrole) | int
USB设备电源角色。  | | [dataRole](#datarole) | int
USB设备数据角色。  | | [mode](#mode) | int
USB设备模式。  | ## 类成员变量说明 ### dataRole ``` int PortInfo::dataRole ``` **描述:** USB设备数据角色。 ### mode ``` int PortInfo::mode ``` **描述:** USB设备模式。 ### portId ``` int PortInfo::portId ``` **描述:** USB设备端口ID。 ### powerRole ``` int PortInfo::powerRole ``` **描述:** USB设备电源角色。