BodgeUSB.Descriptor.Configuration (BodgeUSB v0.1.1)

Copy Markdown View Source

Parsed configuration descriptor with its interfaces.

Summary

Types

t()

Header fields are nil when the configuration header itself was undersized; its raw bytes are preserved in extra.

Types

t()

@type t() :: %BodgeUSB.Descriptor.Configuration{
  attributes: 0..255 | nil,
  configuration_index: 0..255 | nil,
  extra: [map()],
  interfaces: [BodgeUSB.Descriptor.Interface.t()],
  max_power_ma: non_neg_integer() | nil,
  num_interfaces: 0..255 | nil,
  total_length: non_neg_integer() | nil,
  value: 0..255 | nil
}

Header fields are nil when the configuration header itself was undersized; its raw bytes are preserved in extra.