目录

OH_UsbManager_UsbInterface

typedef struct OH_UsbManager_UsbInterface {...} OH_UsbManager_UsbInterface

Overview

Defines a USB interface. An OH_UsbManager_UsbConfig can contain multiple OH_UsbManager_UsbInterface instances, each providing a specific function.

Since: 26.0.1

Related module: UsbManager

File to include: ohusb_manager.h

Summary

[h2]Member Variables

Name Description
uint8_t id

Unique identifier of the USB interface.

Since: 26.0.1

uint8_t protocol

Interface protocol.

Since: 26.0.1

uint8_t clazz

Interface class.

Since: 26.0.1

uint8_t subClass

Interface subclass.

Since: 26.0.1

uint8_t alternateSetting

Alternate setting number of this USB interface, which is defined by the USB interface descriptor. The value 0 indicates the default alternate setting.

Since: 26.0.1

const char *name

Interface name.

Since: 26.0.1

OH_UsbManager_UsbEndpoint *endpoints

Endpoints that belong to this USB interface.

Since: 26.0.1

uint32_t endpointCount

Number of endpoints in the interface.

Since: 26.0.1