class UsbClass

Defined at line 3417 of file fidling/gen/sdk/fidl/fuchsia.hardware.usb.descriptor/fuchsia.hardware.usb.descriptor/cpp/fidl/fuchsia.hardware.usb.descriptor/cpp/common_types.h

Standard USB class codes as defined in USB 2.0 specification Table 9-8 and Table 9-12 (and the USB-IF Defined Class Codes registry).

Architectural Note: Driver maintainers should explicitly handle `.is_unknown()` fallback

paths in match/switch statements for extensible class codes and vendor protocols, preserving

wire compatibility with novel USB hardware and future specification additions.

Public Members

static UsbClass kPerInterface
static UsbClass kAudio
static UsbClass kComm
static UsbClass kHid
static UsbClass kPhysical
static UsbClass kImaging
static UsbClass kPrinter
static UsbClass kMsc
static UsbClass kHub
static UsbClass kCdc
static UsbClass kCcid
static UsbClass kSecurity
static UsbClass kVideo
static UsbClass kHealthcare
static UsbClass kAudioVideo
static UsbClass kBillboard
static UsbClass kTypeCBridge
static UsbClass kDiagnostic
static UsbClass kWireless
static UsbClass kMisc
static UsbClass kApplicationSpecific
static UsbClass kVendor
static UsbClass kUndefined

Public Methods

void UsbClass ()

Defined at line 3477 of file fidling/gen/sdk/fidl/fuchsia.hardware.usb.descriptor/fuchsia.hardware.usb.descriptor/cpp/fidl/fuchsia.hardware.usb.descriptor/cpp/common_types.h

void UsbClass (uint8_t value)

Defined at line 3478 of file fidling/gen/sdk/fidl/fuchsia.hardware.usb.descriptor/fuchsia.hardware.usb.descriptor/cpp/fidl/fuchsia.hardware.usb.descriptor/cpp/common_types.h

EnumForSwitching_ operator fuchsia_hardware_usb_descriptor::UsbClass::EnumForSwitching_ ()

Defined at line 3479 of file fidling/gen/sdk/fidl/fuchsia.hardware.usb.descriptor/fuchsia.hardware.usb.descriptor/cpp/fidl/fuchsia.hardware.usb.descriptor/cpp/common_types.h

uint8_t operator unsigned char ()

Defined at line 3480 of file fidling/gen/sdk/fidl/fuchsia.hardware.usb.descriptor/fuchsia.hardware.usb.descriptor/cpp/fidl/fuchsia.hardware.usb.descriptor/cpp/common_types.h

bool IsUnknown ()

Defined at line 3482 of file fidling/gen/sdk/fidl/fuchsia.hardware.usb.descriptor/fuchsia.hardware.usb.descriptor/cpp/fidl/fuchsia.hardware.usb.descriptor/cpp/common_types.h

UsbClass Unknown ()

Returns an enum corresponding to the member designated as

in the

FIDL schema if exists, or a compiler-reserved unknown value otherwise.

Defined at line 3537 of file fidling/gen/sdk/fidl/fuchsia.hardware.usb.descriptor/fuchsia.hardware.usb.descriptor/cpp/fidl/fuchsia.hardware.usb.descriptor/cpp/common_types.h