1| 操作 | 旧版本 | 新版本 | d.ts文件 |
2| ---- | ------ | ------ | -------- |
3|新增|NA|类名:USBPort;<br>方法or属性:id: number;|@ohos.usb.d.ts|
4|新增|NA|类名:usb;<br>方法or属性:function usbFunctionsFromString(funcs: string): number;|@ohos.usb.d.ts|
5|新增|NA|类名:usb;<br>方法or属性:function usbFunctionsToString(funcs: FunctionType): string;|@ohos.usb.d.ts|
6|新增|NA|类名:usb;<br>方法or属性:function setCurrentFunctions(funcs: FunctionType): Promise\<boolean>;|@ohos.usb.d.ts|
7|新增|NA|类名:usb;<br>方法or属性:function getCurrentFunctions(): FunctionType;|@ohos.usb.d.ts|
8|新增|NA|类名:usb;<br>方法or属性:function getPorts(): Array\<USBPort>;|@ohos.usb.d.ts|
9|新增|NA|类名:usb;<br>方法or属性:function getSupportedModes(portId: number): PortModeType;|@ohos.usb.d.ts|
10|新增|NA|类名:usb;<br>方法or属性:function setPortRoles(portId: number, powerRole: PowerRoleType, dataRole: DataRoleType): Promise\<boolean>;|@ohos.usb.d.ts|
11|新增|NA|类名:PowerRoleType;<br>方法or属性:NONE = 0|@ohos.usb.d.ts|
12|新增|NA|类名:DataRoleType;<br>方法or属性:NONE = 0|@ohos.usb.d.ts|
13|新增|NA|类名:PortModeType;<br>方法or属性:NONE = 0|@ohos.usb.d.ts|
14|新增|NA|类名:FunctionType;<br>方法or属性:NONE = 0|@ohos.usb.d.ts|
15|新增|NA|类名:PowerRoleType;<br>方法or属性:SOURCE = 1|@ohos.usb.d.ts|
16|新增|NA|类名:PowerRoleType;<br>方法or属性:SINK = 2|@ohos.usb.d.ts|
17|新增|NA|类名:DataRoleType;<br>方法or属性:HOST = 1|@ohos.usb.d.ts|
18|新增|NA|类名:DataRoleType;<br>方法or属性:DEVICE = 2|@ohos.usb.d.ts|
19|新增|NA|类名:PortModeType;<br>方法or属性:UFP = 1|@ohos.usb.d.ts|
20|新增|NA|类名:PortModeType;<br>方法or属性:DFP = 2|@ohos.usb.d.ts|
21|新增|NA|类名:PortModeType;<br>方法or属性:DRP = 3|@ohos.usb.d.ts|
22|新增|NA|类名:PortModeType;<br>方法or属性:NUM_MODES = 4|@ohos.usb.d.ts|
23|新增|NA|类名:USBPortStatus;<br>方法or属性:currentMode: number;|@ohos.usb.d.ts|
24|新增|NA|类名:USBPortStatus;<br>方法or属性:currentPowerRole: number;|@ohos.usb.d.ts|
25|新增|NA|类名:USBPortStatus;<br>方法or属性:currentDataRole: number;|@ohos.usb.d.ts|
26|新增|NA|类名:USBPort;<br>方法or属性:supportedModes: PortModeType;|@ohos.usb.d.ts|
27|新增|NA|类名:USBPort;<br>方法or属性:status: USBPortStatus;|@ohos.usb.d.ts|
28|新增|NA|类名:FunctionType;<br>方法or属性:ACM = 1|@ohos.usb.d.ts|
29|新增|NA|类名:FunctionType;<br>方法or属性:ECM = 2|@ohos.usb.d.ts|
30|新增|NA|类名:FunctionType;<br>方法or属性:HDC = 4|@ohos.usb.d.ts|
31|新增|NA|类名:FunctionType;<br>方法or属性:MTP = 8|@ohos.usb.d.ts|
32|新增|NA|类名:FunctionType;<br>方法or属性:PTP = 16|@ohos.usb.d.ts|
33|新增|NA|类名:FunctionType;<br>方法or属性:RNDIS = 32|@ohos.usb.d.ts|
34|新增|NA|类名:FunctionType;<br>方法or属性:MIDI = 64|@ohos.usb.d.ts|
35|新增|NA|类名:FunctionType;<br>方法or属性:AUDIO_SOURCE = 128|@ohos.usb.d.ts|
36|新增|NA|类名:FunctionType;<br>方法or属性:NCM = 256|@ohos.usb.d.ts|
37|新增|NA|类名:usbManager;<br>方法or属性:function getDevices(): Array\<Readonly\<USBDevice>>;|@ohos.usbManager.d.ts|
38|新增|NA|类名:usbManager;<br>方法or属性:function connectDevice(device: USBDevice): Readonly\<USBDevicePipe>;|@ohos.usbManager.d.ts|
39|新增|NA|类名:usbManager;<br>方法or属性:function hasRight(deviceName: string): boolean;|@ohos.usbManager.d.ts|
40|新增|NA|类名:usbManager;<br>方法or属性:function requestRight(deviceName: string): Promise\<boolean>;|@ohos.usbManager.d.ts|
41|新增|NA|类名:usbManager;<br>方法or属性:function removeRight(deviceName: string): boolean;|@ohos.usbManager.d.ts|
42|新增|NA|类名:usbManager;<br>方法or属性:function addRight(bundleName: string, deviceName: string): boolean;|@ohos.usbManager.d.ts|
43|新增|NA|类名:usbManager;<br>方法or属性:function usbFunctionsFromString(funcs: string): number;|@ohos.usbManager.d.ts|
44|新增|NA|类名:usbManager;<br>方法or属性:function usbFunctionsToString(funcs: FunctionType): string;|@ohos.usbManager.d.ts|
45|新增|NA|类名:usbManager;<br>方法or属性:function setCurrentFunctions(funcs: FunctionType): Promise\<void>;|@ohos.usbManager.d.ts|
46|新增|NA|类名:usbManager;<br>方法or属性:function getCurrentFunctions(): FunctionType;|@ohos.usbManager.d.ts|
47|新增|NA|类名:usbManager;<br>方法or属性:function getPorts(): Array\<USBPort>;|@ohos.usbManager.d.ts|
48|新增|NA|类名:usbManager;<br>方法or属性:function getSupportedModes(portId: number): PortModeType;|@ohos.usbManager.d.ts|
49|新增|NA|类名:usbManager;<br>方法or属性:function setPortRoles(portId: number, powerRole: PowerRoleType, dataRole: DataRoleType): Promise\<void>;|@ohos.usbManager.d.ts|
50|新增|NA|类名:usbManager;<br>方法or属性:function claimInterface(pipe: USBDevicePipe, iface: USBInterface, force?: boolean): number;|@ohos.usbManager.d.ts|
51|新增|NA|类名:usbManager;<br>方法or属性:function releaseInterface(pipe: USBDevicePipe, iface: USBInterface): number;|@ohos.usbManager.d.ts|
52|新增|NA|类名:usbManager;<br>方法or属性:function setConfiguration(pipe: USBDevicePipe, config: USBConfiguration): number;|@ohos.usbManager.d.ts|
53|新增|NA|类名:usbManager;<br>方法or属性:function setInterface(pipe: USBDevicePipe, iface: USBInterface): number;|@ohos.usbManager.d.ts|
54|新增|NA|类名:usbManager;<br>方法or属性:function getRawDescriptor(pipe: USBDevicePipe): Uint8Array;|@ohos.usbManager.d.ts|
55|新增|NA|类名:usbManager;<br>方法or属性:function getFileDescriptor(pipe: USBDevicePipe): number;|@ohos.usbManager.d.ts|
56|新增|NA|类名:usbManager;<br>方法or属性:function controlTransfer(pipe: USBDevicePipe, controlparam: USBControlParams, timeout?: number): Promise\<number>;|@ohos.usbManager.d.ts|
57|新增|NA|类名:usbManager;<br>方法or属性:function bulkTransfer(pipe: USBDevicePipe, endpoint: USBEndpoint, buffer: Uint8Array,<br><br>        timeout?: number): Promise\<number>;|@ohos.usbManager.d.ts|
58|新增|NA|类名:usbManager;<br>方法or属性:function closePipe(pipe: USBDevicePipe): number;|@ohos.usbManager.d.ts|
59|新增|NA|类名:USBEndpoint;<br>方法or属性:address: number;|@ohos.usbManager.d.ts|
60|新增|NA|类名:USBEndpoint;<br>方法or属性:attributes: number;|@ohos.usbManager.d.ts|
61|新增|NA|类名:USBConfiguration;<br>方法or属性:attributes: number;|@ohos.usbManager.d.ts|
62|新增|NA|类名:USBEndpoint;<br>方法or属性:interval: number;|@ohos.usbManager.d.ts|
63|新增|NA|类名:USBEndpoint;<br>方法or属性:maxPacketSize: number;|@ohos.usbManager.d.ts|
64|新增|NA|类名:USBEndpoint;<br>方法or属性:direction: USBRequestDirection;|@ohos.usbManager.d.ts|
65|新增|NA|类名:USBEndpoint;<br>方法or属性:number: number;|@ohos.usbManager.d.ts|
66|新增|NA|类名:USBEndpoint;<br>方法or属性:type: number;|@ohos.usbManager.d.ts|
67|新增|NA|类名:USBEndpoint;<br>方法or属性:interfaceId: number;|@ohos.usbManager.d.ts|
68|新增|NA|类名:USBInterface;<br>方法or属性:id: number;|@ohos.usbManager.d.ts|
69|新增|NA|类名:USBConfiguration;<br>方法or属性:id: number;|@ohos.usbManager.d.ts|
70|新增|NA|类名:USBPort;<br>方法or属性:id: number;|@ohos.usbManager.d.ts|
71|新增|NA|类名:USBInterface;<br>方法or属性:protocol: number;|@ohos.usbManager.d.ts|
72|新增|NA|类名:USBDevice;<br>方法or属性:protocol: number;|@ohos.usbManager.d.ts|
73|新增|NA|类名:USBInterface;<br>方法or属性:clazz: number;|@ohos.usbManager.d.ts|
74|新增|NA|类名:USBDevice;<br>方法or属性:clazz: number;|@ohos.usbManager.d.ts|
75|新增|NA|类名:USBInterface;<br>方法or属性:subClass: number;|@ohos.usbManager.d.ts|
76|新增|NA|类名:USBDevice;<br>方法or属性:subClass: number;|@ohos.usbManager.d.ts|
77|新增|NA|类名:USBInterface;<br>方法or属性:alternateSetting: number;|@ohos.usbManager.d.ts|
78|新增|NA|类名:USBInterface;<br>方法or属性:name: string;|@ohos.usbManager.d.ts|
79|新增|NA|类名:USBConfiguration;<br>方法or属性:name: string;|@ohos.usbManager.d.ts|
80|新增|NA|类名:USBDevice;<br>方法or属性:name: string;|@ohos.usbManager.d.ts|
81|新增|NA|类名:USBInterface;<br>方法or属性:endpoints: Array\<USBEndpoint>;|@ohos.usbManager.d.ts|
82|新增|NA|类名:USBConfiguration;<br>方法or属性:maxPower: number;|@ohos.usbManager.d.ts|
83|新增|NA|类名:USBConfiguration;<br>方法or属性:isRemoteWakeup: boolean;|@ohos.usbManager.d.ts|
84|新增|NA|类名:USBConfiguration;<br>方法or属性:isSelfPowered: boolean;|@ohos.usbManager.d.ts|
85|新增|NA|类名:USBConfiguration;<br>方法or属性:interfaces: Array\<USBInterface>;|@ohos.usbManager.d.ts|
86|新增|NA|类名:USBDevice;<br>方法or属性:busNum: number;|@ohos.usbManager.d.ts|
87|新增|NA|类名:USBDevicePipe;<br>方法or属性:busNum: number;|@ohos.usbManager.d.ts|
88|新增|NA|类名:USBDevice;<br>方法or属性:devAddress: number;|@ohos.usbManager.d.ts|
89|新增|NA|类名:USBDevicePipe;<br>方法or属性:devAddress: number;|@ohos.usbManager.d.ts|
90|新增|NA|类名:USBDevice;<br>方法or属性:serial: string;|@ohos.usbManager.d.ts|
91|新增|NA|类名:USBDevice;<br>方法or属性:manufacturerName: string;|@ohos.usbManager.d.ts|
92|新增|NA|类名:USBDevice;<br>方法or属性:productName: string;|@ohos.usbManager.d.ts|
93|新增|NA|类名:USBDevice;<br>方法or属性:version: string;|@ohos.usbManager.d.ts|
94|新增|NA|类名:USBDevice;<br>方法or属性:vendorId: number;|@ohos.usbManager.d.ts|
95|新增|NA|类名:USBDevice;<br>方法or属性:productId: number;|@ohos.usbManager.d.ts|
96|新增|NA|类名:USBDevice;<br>方法or属性:configs: Array\<USBConfiguration>;|@ohos.usbManager.d.ts|
97|新增|NA|类名:PowerRoleType;<br>方法or属性:NONE = 0|@ohos.usbManager.d.ts|
98|新增|NA|类名:DataRoleType;<br>方法or属性:NONE = 0|@ohos.usbManager.d.ts|
99|新增|NA|类名:PortModeType;<br>方法or属性:NONE = 0|@ohos.usbManager.d.ts|
100|新增|NA|类名:FunctionType;<br>方法or属性:NONE = 0|@ohos.usbManager.d.ts|
101|新增|NA|类名:PowerRoleType;<br>方法or属性:SOURCE = 1|@ohos.usbManager.d.ts|
102|新增|NA|类名:PowerRoleType;<br>方法or属性:SINK = 2|@ohos.usbManager.d.ts|
103|新增|NA|类名:DataRoleType;<br>方法or属性:HOST = 1|@ohos.usbManager.d.ts|
104|新增|NA|类名:DataRoleType;<br>方法or属性:DEVICE = 2|@ohos.usbManager.d.ts|
105|新增|NA|类名:PortModeType;<br>方法or属性:UFP = 1|@ohos.usbManager.d.ts|
106|新增|NA|类名:PortModeType;<br>方法or属性:DFP = 2|@ohos.usbManager.d.ts|
107|新增|NA|类名:PortModeType;<br>方法or属性:DRP = 3|@ohos.usbManager.d.ts|
108|新增|NA|类名:PortModeType;<br>方法or属性:NUM_MODES = 4|@ohos.usbManager.d.ts|
109|新增|NA|类名:USBPortStatus;<br>方法or属性:currentMode: number;|@ohos.usbManager.d.ts|
110|新增|NA|类名:USBPortStatus;<br>方法or属性:currentPowerRole: number;|@ohos.usbManager.d.ts|
111|新增|NA|类名:USBPortStatus;<br>方法or属性:currentDataRole: number;|@ohos.usbManager.d.ts|
112|新增|NA|类名:USBPort;<br>方法or属性:supportedModes: PortModeType;|@ohos.usbManager.d.ts|
113|新增|NA|类名:USBPort;<br>方法or属性:status: USBPortStatus;|@ohos.usbManager.d.ts|
114|新增|NA|类名:USBControlParams;<br>方法or属性:request: number;|@ohos.usbManager.d.ts|
115|新增|NA|类名:USBControlParams;<br>方法or属性:target: USBRequestTargetType;|@ohos.usbManager.d.ts|
116|新增|NA|类名:USBControlParams;<br>方法or属性:reqType: USBControlRequestType;|@ohos.usbManager.d.ts|
117|新增|NA|类名:USBControlParams;<br>方法or属性:value: number;|@ohos.usbManager.d.ts|
118|新增|NA|类名:USBControlParams;<br>方法or属性:index: number;|@ohos.usbManager.d.ts|
119|新增|NA|类名:USBControlParams;<br>方法or属性:data: Uint8Array;|@ohos.usbManager.d.ts|
120|新增|NA|类名:USBRequestTargetType;<br>方法or属性:USB_REQUEST_TARGET_DEVICE = 0|@ohos.usbManager.d.ts|
121|新增|NA|类名:USBRequestTargetType;<br>方法or属性:USB_REQUEST_TARGET_INTERFACE = 1|@ohos.usbManager.d.ts|
122|新增|NA|类名:USBRequestTargetType;<br>方法or属性:USB_REQUEST_TARGET_ENDPOINT = 2|@ohos.usbManager.d.ts|
123|新增|NA|类名:USBRequestTargetType;<br>方法or属性:USB_REQUEST_TARGET_OTHER = 3|@ohos.usbManager.d.ts|
124|新增|NA|类名:USBControlRequestType;<br>方法or属性:USB_REQUEST_TYPE_STANDARD = 0|@ohos.usbManager.d.ts|
125|新增|NA|类名:USBControlRequestType;<br>方法or属性:USB_REQUEST_TYPE_CLASS = 1|@ohos.usbManager.d.ts|
126|新增|NA|类名:USBControlRequestType;<br>方法or属性:USB_REQUEST_TYPE_VENDOR = 2|@ohos.usbManager.d.ts|
127|新增|NA|类名:USBRequestDirection;<br>方法or属性:USB_REQUEST_DIR_TO_DEVICE = 0|@ohos.usbManager.d.ts|
128|新增|NA|类名:USBRequestDirection;<br>方法or属性:USB_REQUEST_DIR_FROM_DEVICE = 0x80|@ohos.usbManager.d.ts|
129|新增|NA|类名:FunctionType;<br>方法or属性:ACM = 1|@ohos.usbManager.d.ts|
130|新增|NA|类名:FunctionType;<br>方法or属性:ECM = 2|@ohos.usbManager.d.ts|
131|新增|NA|类名:FunctionType;<br>方法or属性:HDC = 4|@ohos.usbManager.d.ts|
132|新增|NA|类名:FunctionType;<br>方法or属性:MTP = 8|@ohos.usbManager.d.ts|
133|新增|NA|类名:FunctionType;<br>方法or属性:PTP = 16|@ohos.usbManager.d.ts|
134|新增|NA|类名:FunctionType;<br>方法or属性:RNDIS = 32|@ohos.usbManager.d.ts|
135|新增|NA|类名:FunctionType;<br>方法or属性:MIDI = 64|@ohos.usbManager.d.ts|
136|新增|NA|类名:FunctionType;<br>方法or属性:AUDIO_SOURCE = 128|@ohos.usbManager.d.ts|
137|新增|NA|类名:FunctionType;<br>方法or属性:NCM = 256|@ohos.usbManager.d.ts|
138|废弃版本有变化|类名:usb;<br>方法or属性:declare usb<br>旧版本信息:|类名:usb;<br>方法or属性:declare usb<br>新版本信息:9<br>代替接口: ohos.usbManager|@ohos.usb.d.ts|
139|废弃版本有变化|类名:usb;<br>方法or属性:function getDevices(): Array\<Readonly\<USBDevice>>;<br>旧版本信息:|类名:usb;<br>方法or属性:function getDevices(): Array\<Readonly\<USBDevice>>;<br>新版本信息:9<br>代替接口: ohos.usbManager|@ohos.usb.d.ts|
140|废弃版本有变化|类名:usb;<br>方法or属性:function connectDevice(device: USBDevice): Readonly\<USBDevicePipe>;<br>旧版本信息:|类名:usb;<br>方法or属性:function connectDevice(device: USBDevice): Readonly\<USBDevicePipe>;<br>新版本信息:9<br>代替接口: ohos.usbManager|@ohos.usb.d.ts|
141|废弃版本有变化|类名:usb;<br>方法or属性:function hasRight(deviceName: string): boolean;<br>旧版本信息:|类名:usb;<br>方法or属性:function hasRight(deviceName: string): boolean;<br>新版本信息:9<br>代替接口: ohos.usbManager|@ohos.usb.d.ts|
142|废弃版本有变化|类名:usb;<br>方法or属性:function requestRight(deviceName: string): Promise\<boolean>;<br>旧版本信息:|类名:usb;<br>方法or属性:function requestRight(deviceName: string): Promise\<boolean>;<br>新版本信息:9<br>代替接口: ohos.usbManager|@ohos.usb.d.ts|
143|废弃版本有变化|类名:usb;<br>方法or属性:function claimInterface(pipe: USBDevicePipe, iface: USBInterface, force?: boolean): number;<br>旧版本信息:|类名:usb;<br>方法or属性:function claimInterface(pipe: USBDevicePipe, iface: USBInterface, force?: boolean): number;<br>新版本信息:9<br>代替接口: ohos.usbManager|@ohos.usb.d.ts|
144|废弃版本有变化|类名:usb;<br>方法or属性:function releaseInterface(pipe: USBDevicePipe, iface: USBInterface): number;<br>旧版本信息:|类名:usb;<br>方法or属性:function releaseInterface(pipe: USBDevicePipe, iface: USBInterface): number;<br>新版本信息:9<br>代替接口: ohos.usbManager|@ohos.usb.d.ts|
145|废弃版本有变化|类名:usb;<br>方法or属性:function setConfiguration(pipe: USBDevicePipe, config: USBConfig): number;<br>旧版本信息:|类名:usb;<br>方法or属性:function setConfiguration(pipe: USBDevicePipe, config: USBConfig): number;<br>新版本信息:9<br>代替接口: ohos.usbManager|@ohos.usb.d.ts|
146|废弃版本有变化|类名:usb;<br>方法or属性:function setInterface(pipe: USBDevicePipe, iface: USBInterface): number;<br>旧版本信息:|类名:usb;<br>方法or属性:function setInterface(pipe: USBDevicePipe, iface: USBInterface): number;<br>新版本信息:9<br>代替接口: ohos.usbManager|@ohos.usb.d.ts|
147|废弃版本有变化|类名:usb;<br>方法or属性:function getRawDescriptor(pipe: USBDevicePipe): Uint8Array;<br>旧版本信息:|类名:usb;<br>方法or属性:function getRawDescriptor(pipe: USBDevicePipe): Uint8Array;<br>新版本信息:9<br>代替接口: ohos.usbManager|@ohos.usb.d.ts|
148|废弃版本有变化|类名:usb;<br>方法or属性:function getFileDescriptor(pipe: USBDevicePipe): number;<br>旧版本信息:|类名:usb;<br>方法or属性:function getFileDescriptor(pipe: USBDevicePipe): number;<br>新版本信息:9<br>代替接口: ohos.usbManager|@ohos.usb.d.ts|
149|废弃版本有变化|类名:usb;<br>方法or属性:function controlTransfer(pipe: USBDevicePipe, controlparam: USBControlParams, timeout?: number): Promise\<number>;<br>旧版本信息:|类名:usb;<br>方法or属性:function controlTransfer(pipe: USBDevicePipe, controlparam: USBControlParams, timeout?: number): Promise\<number>;<br>新版本信息:9<br>代替接口: ohos.usbManager|@ohos.usb.d.ts|
150|废弃版本有变化|类名:usb;<br>方法or属性:function bulkTransfer(pipe: USBDevicePipe, endpoint: USBEndpoint, buffer: Uint8Array,<br><br>        timeout?: number): Promise\<number>;<br>旧版本信息:|类名:usb;<br>方法or属性:function bulkTransfer(pipe: USBDevicePipe, endpoint: USBEndpoint, buffer: Uint8Array,<br><br>        timeout?: number): Promise\<number>;<br>新版本信息:9<br>代替接口: ohos.usbManager|@ohos.usb.d.ts|
151|废弃版本有变化|类名:usb;<br>方法or属性:function closePipe(pipe: USBDevicePipe): number;<br>旧版本信息:|类名:usb;<br>方法or属性:function closePipe(pipe: USBDevicePipe): number;<br>新版本信息:9<br>代替接口: ohos.usbManager|@ohos.usb.d.ts|
152|废弃版本有变化|类名:USBEndpoint;<br>方法or属性:interface USBEndpoint<br>旧版本信息:|类名:USBEndpoint;<br>方法or属性:interface USBEndpoint<br>新版本信息:9<br>代替接口: ohos.usbManager|@ohos.usb.d.ts|
153|废弃版本有变化|类名:USBEndpoint;<br>方法or属性:address: number;<br>旧版本信息:|类名:USBEndpoint;<br>方法or属性:address: number;<br>新版本信息:9<br>代替接口: ohos.usbManager|@ohos.usb.d.ts|
154|废弃版本有变化|类名:USBEndpoint;<br>方法or属性:attributes: number;<br>旧版本信息:|类名:USBEndpoint;<br>方法or属性:attributes: number;<br>新版本信息:9<br>代替接口: ohos.usbManager|@ohos.usb.d.ts|
155|废弃版本有变化|类名:USBConfig;<br>方法or属性:attributes: number;<br>旧版本信息:|类名:USBConfig;<br>方法or属性:attributes: number;<br>新版本信息:9<br>代替接口: ohos.usbManager|@ohos.usb.d.ts|
156|废弃版本有变化|类名:USBEndpoint;<br>方法or属性:interval: number;<br>旧版本信息:|类名:USBEndpoint;<br>方法or属性:interval: number;<br>新版本信息:9<br>代替接口: ohos.usbManager|@ohos.usb.d.ts|
157|废弃版本有变化|类名:USBEndpoint;<br>方法or属性:maxPacketSize: number;<br>旧版本信息:|类名:USBEndpoint;<br>方法or属性:maxPacketSize: number;<br>新版本信息:9<br>代替接口: ohos.usbManager|@ohos.usb.d.ts|
158|废弃版本有变化|类名:USBEndpoint;<br>方法or属性:direction: USBRequestDirection;<br>旧版本信息:|类名:USBEndpoint;<br>方法or属性:direction: USBRequestDirection;<br>新版本信息:9<br>代替接口: ohos.usbManager|@ohos.usb.d.ts|
159|废弃版本有变化|类名:USBEndpoint;<br>方法or属性:number: number;<br>旧版本信息:|类名:USBEndpoint;<br>方法or属性:number: number;<br>新版本信息:9<br>代替接口: ohos.usbManager|@ohos.usb.d.ts|
160|废弃版本有变化|类名:USBEndpoint;<br>方法or属性:type: number;<br>旧版本信息:|类名:USBEndpoint;<br>方法or属性:type: number;<br>新版本信息:9<br>代替接口: ohos.usbManager|@ohos.usb.d.ts|
161|废弃版本有变化|类名:USBEndpoint;<br>方法or属性:interfaceId: number;<br>旧版本信息:|类名:USBEndpoint;<br>方法or属性:interfaceId: number;<br>新版本信息:9<br>代替接口: ohos.usbManager|@ohos.usb.d.ts|
162|废弃版本有变化|类名:USBInterface;<br>方法or属性:interface USBInterface<br>旧版本信息:|类名:USBInterface;<br>方法or属性:interface USBInterface<br>新版本信息:9<br>代替接口: ohos.usbManager|@ohos.usb.d.ts|
163|废弃版本有变化|类名:USBInterface;<br>方法or属性:id: number;<br>旧版本信息:|类名:USBInterface;<br>方法or属性:id: number;<br>新版本信息:9<br>代替接口: ohos.usbManager|@ohos.usb.d.ts|
164|废弃版本有变化|类名:USBConfig;<br>方法or属性:id: number;<br>旧版本信息:|类名:USBConfig;<br>方法or属性:id: number;<br>新版本信息:9<br>代替接口: ohos.usbManager|@ohos.usb.d.ts|
165|废弃版本有变化|类名:USBInterface;<br>方法or属性:protocol: number;<br>旧版本信息:|类名:USBInterface;<br>方法or属性:protocol: number;<br>新版本信息:9<br>代替接口: ohos.usbManager|@ohos.usb.d.ts|
166|废弃版本有变化|类名:USBDevice;<br>方法or属性:protocol: number;<br>旧版本信息:|类名:USBDevice;<br>方法or属性:protocol: number;<br>新版本信息:9<br>代替接口: ohos.usbManager|@ohos.usb.d.ts|
167|废弃版本有变化|类名:USBInterface;<br>方法or属性:clazz: number;<br>旧版本信息:|类名:USBInterface;<br>方法or属性:clazz: number;<br>新版本信息:9<br>代替接口: ohos.usbManager|@ohos.usb.d.ts|
168|废弃版本有变化|类名:USBDevice;<br>方法or属性:clazz: number;<br>旧版本信息:|类名:USBDevice;<br>方法or属性:clazz: number;<br>新版本信息:9<br>代替接口: ohos.usbManager|@ohos.usb.d.ts|
169|废弃版本有变化|类名:USBInterface;<br>方法or属性:subClass: number;<br>旧版本信息:|类名:USBInterface;<br>方法or属性:subClass: number;<br>新版本信息:9<br>代替接口: ohos.usbManager|@ohos.usb.d.ts|
170|废弃版本有变化|类名:USBDevice;<br>方法or属性:subClass: number;<br>旧版本信息:|类名:USBDevice;<br>方法or属性:subClass: number;<br>新版本信息:9<br>代替接口: ohos.usbManager|@ohos.usb.d.ts|
171|废弃版本有变化|类名:USBInterface;<br>方法or属性:alternateSetting: number;<br>旧版本信息:|类名:USBInterface;<br>方法or属性:alternateSetting: number;<br>新版本信息:9<br>代替接口: ohos.usbManager|@ohos.usb.d.ts|
172|废弃版本有变化|类名:USBInterface;<br>方法or属性:name: string;<br>旧版本信息:|类名:USBInterface;<br>方法or属性:name: string;<br>新版本信息:9<br>代替接口: ohos.usbManager|@ohos.usb.d.ts|
173|废弃版本有变化|类名:USBConfig;<br>方法or属性:name: string;<br>旧版本信息:|类名:USBConfig;<br>方法or属性:name: string;<br>新版本信息:9<br>代替接口: ohos.usbManager|@ohos.usb.d.ts|
174|废弃版本有变化|类名:USBDevice;<br>方法or属性:name: string;<br>旧版本信息:|类名:USBDevice;<br>方法or属性:name: string;<br>新版本信息:9<br>代替接口: ohos.usbManager|@ohos.usb.d.ts|
175|废弃版本有变化|类名:USBInterface;<br>方法or属性:endpoints: Array\<USBEndpoint>;<br>旧版本信息:|类名:USBInterface;<br>方法or属性:endpoints: Array\<USBEndpoint>;<br>新版本信息:9<br>代替接口: ohos.usbManager|@ohos.usb.d.ts|
176|废弃版本有变化|类名:USBConfig;<br>方法or属性:interface USBConfig<br>旧版本信息:|类名:USBConfig;<br>方法or属性:interface USBConfig<br>新版本信息:9<br>代替接口: ohos.usbManager|@ohos.usb.d.ts|
177|废弃版本有变化|类名:USBConfig;<br>方法or属性:maxPower: number;<br>旧版本信息:|类名:USBConfig;<br>方法or属性:maxPower: number;<br>新版本信息:9<br>代替接口: ohos.usbManager|@ohos.usb.d.ts|
178|废弃版本有变化|类名:USBConfig;<br>方法or属性:isRemoteWakeup: boolean;<br>旧版本信息:|类名:USBConfig;<br>方法or属性:isRemoteWakeup: boolean;<br>新版本信息:9<br>代替接口: ohos.usbManager|@ohos.usb.d.ts|
179|废弃版本有变化|类名:USBConfig;<br>方法or属性:isSelfPowered: boolean;<br>旧版本信息:|类名:USBConfig;<br>方法or属性:isSelfPowered: boolean;<br>新版本信息:9<br>代替接口: ohos.usbManager|@ohos.usb.d.ts|
180|废弃版本有变化|类名:USBConfig;<br>方法or属性:interfaces: Array\<USBInterface>;<br>旧版本信息:|类名:USBConfig;<br>方法or属性:interfaces: Array\<USBInterface>;<br>新版本信息:9<br>代替接口: ohos.usbManager|@ohos.usb.d.ts|
181|废弃版本有变化|类名:USBDevice;<br>方法or属性:interface USBDevice<br>旧版本信息:|类名:USBDevice;<br>方法or属性:interface USBDevice<br>新版本信息:9<br>代替接口: ohos.usbManager|@ohos.usb.d.ts|
182|废弃版本有变化|类名:USBDevice;<br>方法or属性:busNum: number;<br>旧版本信息:|类名:USBDevice;<br>方法or属性:busNum: number;<br>新版本信息:9<br>代替接口: ohos.usbManager|@ohos.usb.d.ts|
183|废弃版本有变化|类名:USBDevicePipe;<br>方法or属性:busNum: number;<br>旧版本信息:|类名:USBDevicePipe;<br>方法or属性:busNum: number;<br>新版本信息:9<br>代替接口: ohos.usbManager|@ohos.usb.d.ts|
184|废弃版本有变化|类名:USBDevice;<br>方法or属性:devAddress: number;<br>旧版本信息:|类名:USBDevice;<br>方法or属性:devAddress: number;<br>新版本信息:9<br>代替接口: ohos.usbManager|@ohos.usb.d.ts|
185|废弃版本有变化|类名:USBDevicePipe;<br>方法or属性:devAddress: number;<br>旧版本信息:|类名:USBDevicePipe;<br>方法or属性:devAddress: number;<br>新版本信息:9<br>代替接口: ohos.usbManager|@ohos.usb.d.ts|
186|废弃版本有变化|类名:USBDevice;<br>方法or属性:serial: string;<br>旧版本信息:|类名:USBDevice;<br>方法or属性:serial: string;<br>新版本信息:9<br>代替接口: ohos.usbManager|@ohos.usb.d.ts|
187|废弃版本有变化|类名:USBDevice;<br>方法or属性:manufacturerName: string;<br>旧版本信息:|类名:USBDevice;<br>方法or属性:manufacturerName: string;<br>新版本信息:9<br>代替接口: ohos.usbManager|@ohos.usb.d.ts|
188|废弃版本有变化|类名:USBDevice;<br>方法or属性:productName: string;<br>旧版本信息:|类名:USBDevice;<br>方法or属性:productName: string;<br>新版本信息:9<br>代替接口: ohos.usbManager|@ohos.usb.d.ts|
189|废弃版本有变化|类名:USBDevice;<br>方法or属性:version: string;<br>旧版本信息:|类名:USBDevice;<br>方法or属性:version: string;<br>新版本信息:9<br>代替接口: ohos.usbManager|@ohos.usb.d.ts|
190|废弃版本有变化|类名:USBDevice;<br>方法or属性:vendorId: number;<br>旧版本信息:|类名:USBDevice;<br>方法or属性:vendorId: number;<br>新版本信息:9<br>代替接口: ohos.usbManager|@ohos.usb.d.ts|
191|废弃版本有变化|类名:USBDevice;<br>方法or属性:productId: number;<br>旧版本信息:|类名:USBDevice;<br>方法or属性:productId: number;<br>新版本信息:9<br>代替接口: ohos.usbManager|@ohos.usb.d.ts|
192|废弃版本有变化|类名:USBDevice;<br>方法or属性:configs: Array\<USBConfig>;<br>旧版本信息:|类名:USBDevice;<br>方法or属性:configs: Array\<USBConfig>;<br>新版本信息:9<br>代替接口: ohos.usbManager|@ohos.usb.d.ts|
193|废弃版本有变化|类名:USBDevicePipe;<br>方法or属性:interface USBDevicePipe<br>旧版本信息:|类名:USBDevicePipe;<br>方法or属性:interface USBDevicePipe<br>新版本信息:9<br>代替接口: ohos.usbManager|@ohos.usb.d.ts|
194|废弃版本有变化|类名:USBControlParams;<br>方法or属性:interface USBControlParams<br>旧版本信息:|类名:USBControlParams;<br>方法or属性:interface USBControlParams<br>新版本信息:9<br>代替接口: ohos.usbManager|@ohos.usb.d.ts|
195|废弃版本有变化|类名:USBControlParams;<br>方法or属性:request: number;<br>旧版本信息:|类名:USBControlParams;<br>方法or属性:request: number;<br>新版本信息:9<br>代替接口: ohos.usbManager|@ohos.usb.d.ts|
196|废弃版本有变化|类名:USBControlParams;<br>方法or属性:target: USBRequestTargetType;<br>旧版本信息:|类名:USBControlParams;<br>方法or属性:target: USBRequestTargetType;<br>新版本信息:9<br>代替接口: ohos.usbManager|@ohos.usb.d.ts|
197|废弃版本有变化|类名:USBControlParams;<br>方法or属性:reqType: USBControlRequestType;<br>旧版本信息:|类名:USBControlParams;<br>方法or属性:reqType: USBControlRequestType;<br>新版本信息:9<br>代替接口: ohos.usbManager|@ohos.usb.d.ts|
198|废弃版本有变化|类名:USBControlParams;<br>方法or属性:value: number;<br>旧版本信息:|类名:USBControlParams;<br>方法or属性:value: number;<br>新版本信息:9<br>代替接口: ohos.usbManager|@ohos.usb.d.ts|
199|废弃版本有变化|类名:USBControlParams;<br>方法or属性:index: number;<br>旧版本信息:|类名:USBControlParams;<br>方法or属性:index: number;<br>新版本信息:9<br>代替接口: ohos.usbManager|@ohos.usb.d.ts|
200|废弃版本有变化|类名:USBControlParams;<br>方法or属性:data: Uint8Array;<br>旧版本信息:|类名:USBControlParams;<br>方法or属性:data: Uint8Array;<br>新版本信息:9<br>代替接口: ohos.usbManager|@ohos.usb.d.ts|
201|废弃版本有变化|类名:USBRequestTargetType;<br>方法or属性:export enum USBRequestTargetType<br>旧版本信息:|类名:USBRequestTargetType;<br>方法or属性:export enum USBRequestTargetType<br>新版本信息:9<br>代替接口: ohos.usbManager|@ohos.usb.d.ts|
202|废弃版本有变化|类名:USBRequestTargetType;<br>方法or属性:USB_REQUEST_TARGET_DEVICE = 0<br>旧版本信息:|类名:USBRequestTargetType;<br>方法or属性:USB_REQUEST_TARGET_DEVICE = 0<br>新版本信息:9<br>代替接口: ohos.usbManager|@ohos.usb.d.ts|
203|废弃版本有变化|类名:USBRequestTargetType;<br>方法or属性:USB_REQUEST_TARGET_INTERFACE = 1<br>旧版本信息:|类名:USBRequestTargetType;<br>方法or属性:USB_REQUEST_TARGET_INTERFACE = 1<br>新版本信息:9<br>代替接口: ohos.usbManager|@ohos.usb.d.ts|
204|废弃版本有变化|类名:USBRequestTargetType;<br>方法or属性:USB_REQUEST_TARGET_ENDPOINT = 2<br>旧版本信息:|类名:USBRequestTargetType;<br>方法or属性:USB_REQUEST_TARGET_ENDPOINT = 2<br>新版本信息:9<br>代替接口: ohos.usbManager|@ohos.usb.d.ts|
205|废弃版本有变化|类名:USBRequestTargetType;<br>方法or属性:USB_REQUEST_TARGET_OTHER = 3<br>旧版本信息:|类名:USBRequestTargetType;<br>方法or属性:USB_REQUEST_TARGET_OTHER = 3<br>新版本信息:9<br>代替接口: ohos.usbManager|@ohos.usb.d.ts|
206|废弃版本有变化|类名:USBControlRequestType;<br>方法or属性:export enum USBControlRequestType<br>旧版本信息:|类名:USBControlRequestType;<br>方法or属性:export enum USBControlRequestType<br>新版本信息:9<br>代替接口: ohos.usbManager|@ohos.usb.d.ts|
207|废弃版本有变化|类名:USBControlRequestType;<br>方法or属性:USB_REQUEST_TYPE_STANDARD = 0<br>旧版本信息:|类名:USBControlRequestType;<br>方法or属性:USB_REQUEST_TYPE_STANDARD = 0<br>新版本信息:9<br>代替接口: ohos.usbManager|@ohos.usb.d.ts|
208|废弃版本有变化|类名:USBControlRequestType;<br>方法or属性:USB_REQUEST_TYPE_CLASS = 1<br>旧版本信息:|类名:USBControlRequestType;<br>方法or属性:USB_REQUEST_TYPE_CLASS = 1<br>新版本信息:9<br>代替接口: ohos.usbManager|@ohos.usb.d.ts|
209|废弃版本有变化|类名:USBControlRequestType;<br>方法or属性:USB_REQUEST_TYPE_VENDOR = 2<br>旧版本信息:|类名:USBControlRequestType;<br>方法or属性:USB_REQUEST_TYPE_VENDOR = 2<br>新版本信息:9<br>代替接口: ohos.usbManager|@ohos.usb.d.ts|
210|废弃版本有变化|类名:USBRequestDirection;<br>方法or属性:export enum USBRequestDirection<br>旧版本信息:|类名:USBRequestDirection;<br>方法or属性:export enum USBRequestDirection<br>新版本信息:9<br>代替接口: ohos.usbManager|@ohos.usb.d.ts|
211|废弃版本有变化|类名:USBRequestDirection;<br>方法or属性:USB_REQUEST_DIR_TO_DEVICE = 0<br>旧版本信息:|类名:USBRequestDirection;<br>方法or属性:USB_REQUEST_DIR_TO_DEVICE = 0<br>新版本信息:9<br>代替接口: ohos.usbManager|@ohos.usb.d.ts|
212|废弃版本有变化|类名:USBRequestDirection;<br>方法or属性:USB_REQUEST_DIR_FROM_DEVICE = 0x80<br>旧版本信息:|类名:USBRequestDirection;<br>方法or属性:USB_REQUEST_DIR_FROM_DEVICE = 0x80<br>新版本信息:9<br>代替接口: ohos.usbManager|@ohos.usb.d.ts|
213|函数有变化|类名:usb;<br>方法or属性:function controlTransfer(pipe: USBDevicePipe, contrlparam: USBControlParams, timeout?: number): Promise\<number>;|类名:usb;<br>方法or属性:function controlTransfer(pipe: USBDevicePipe, controlparam: USBControlParams, timeout?: number): Promise\<number>;|@ohos.usb.d.ts|
214|函数有变化|类名:USBRequestTargetType;<br>方法or属性:USB_REQUEST_TARGET_INTERFACE|类名:USBRequestTargetType;<br>方法or属性:USB_REQUEST_TARGET_INTERFACE = 1|@ohos.usb.d.ts|
215|函数有变化|类名:USBRequestTargetType;<br>方法or属性:USB_REQUEST_TARGET_ENDPOINT|类名:USBRequestTargetType;<br>方法or属性:USB_REQUEST_TARGET_ENDPOINT = 2|@ohos.usb.d.ts|
216|函数有变化|类名:USBRequestTargetType;<br>方法or属性:USB_REQUEST_TARGET_OTHER|类名:USBRequestTargetType;<br>方法or属性:USB_REQUEST_TARGET_OTHER = 3|@ohos.usb.d.ts|
217|函数有变化|类名:USBControlRequestType;<br>方法or属性:USB_REQUEST_TYPE_CLASS|类名:USBControlRequestType;<br>方法or属性:USB_REQUEST_TYPE_CLASS = 1|@ohos.usb.d.ts|
218|函数有变化|类名:USBControlRequestType;<br>方法or属性:USB_REQUEST_TYPE_VENDOR|类名:USBControlRequestType;<br>方法or属性:USB_REQUEST_TYPE_VENDOR = 2|@ohos.usb.d.ts|
219