# UsbInterface

`import { UsbInterface } from "destack:device/binding";`

USB interface descriptor.

```ds title="UsbInterface"
export struct UsbInterface {
    configuration: uint8;
    number: uint8;
    alternateSetting: uint8;
    classCode: uint8;
    subclassCode: uint8;
    protocolCode: uint8;
    name: string;
}
```

[language/library/src/device/binding/usb.ds:126:141](https://github.com/destack-sh/destack/blob/main/language/library/src/device/binding/usb.ds#L126-L141)

## Members

### `configuration: uint8`

Configuration value containing this interface.

### `number: uint8`

Interface number.

### `alternateSetting: uint8`

Alternate setting number.

### `classCode: uint8`

Interface class code.

### `subclassCode: uint8`

Interface subclass code.

### `protocolCode: uint8`

Interface protocol code.

### `name: string`

Interface string when available.
