diff --git a/api/@ohos.usb.d.ts b/api/@ohos.usb.d.ts index fce6f34e612ec766ea826a05bc9f240b69fe497c..76fb2cac527827a559d220330612c57838ee12eb 100644 --- a/api/@ohos.usb.d.ts +++ b/api/@ohos.usb.d.ts @@ -197,13 +197,13 @@ declare namespace usb { * Performs control transfer. * * @param pipe Device pipe defined by {@link USBDevicePipe}, which is used to determine the USB device. - * @param contrlparam Control transfer parameters. + * @param controlparam Control transfer parameters. * @param timeout Timeout duration. This parameter is optional. The default value is **0**, indicating no timeout. * @return Returns the size of the transmitted or received data block if the control transfer is successful; return **-1** if an exception occurs. * @syscap SystemCapability.USB.USBManager * @since 8 */ - function controlTransfer(pipe: USBDevicePipe, contrlparam: USBControlParams, timeout?: number): Promise; + function controlTransfer(pipe: USBDevicePipe, controlparam: USBControlParams, timeout?: number): Promise; /** * Performs bulk transfer. @@ -295,7 +295,7 @@ declare namespace usb { /** - * Represents a USB interface. One USBconfig {@link USBConfig} can contain multiple **USBInterface** instances, each providing a specific function. + * Represents a USB interface. One config {@link USBConfig} can contain multiple **USBInterface** instances, each providing a specific function. * * @syscap SystemCapability.USB.USBManager * @since 8 diff --git a/api/@ohos.usbV9.d.ts b/api/@ohos.usbV9.d.ts index 5ff0ebbe45e5789a3333a8b54d1d50ab7f1c5faf..3c99f2c5d8fdd11e8b4519c5420be983ab4e1ee0 100644 --- a/api/@ohos.usbV9.d.ts +++ b/api/@ohos.usbV9.d.ts @@ -244,14 +244,14 @@ declare namespace usbV9 { * Performs control transfer. * * @param pipe Device pipe defined by {@link USBDevicePipe}, which is used to determine the USB device. - * @param contrlparam Control transfer parameters. + * @param controlparam Control transfer parameters. * @param timeout Timeout duration. This parameter is optional. The default value is **0**, indicating no timeout. * @return Returns the size of the transmitted or received data block if the control transfer is successful; return **-1** if an exception occurs. * @throws {BusinessError} 401 - The parameter types do not match or parameter is not specified. * @syscap SystemCapability.USB.USBManager * @since 9 */ - function controlTransfer(pipe: USBDevicePipe, contrlparam: USBControlParams, timeout?: number): Promise; + function controlTransfer(pipe: USBDevicePipe, controlparam: USBControlParams, timeout?: number): Promise; /** * Performs bulk transfer. @@ -346,7 +346,7 @@ declare namespace usbV9 { /** - * Represents a USB interface. One USBconfig {@link USBConfig} can contain multiple **USBInterface** instances, each providing a specific function. + * Represents a USB interface. One config {@link USBConfig} can contain multiple **USBInterface** instances, each providing a specific function. * * @typedef USBInterface * @syscap SystemCapability.USB.USBManager