4.4.3.2.11 USB_DescriptorInterfaceConfigure()

RETURN_CODE_t USB_DescriptorInterfaceConfigure (uint8_t interfaceNumber, uint8_t alternateSetting, bool enable)

Enables or Disables an Interface Descriptor.

The USB Device Enable Interface Descriptor, from USB 2.0 Specification Ch. 9.6.5.

Offset

Field

Size

Value

Description

2

bInterfaceNumber

1

Number

Number of this interface. Zero-based value identifying the index in the array of concurrent interfaces supported by this configuration

3

bAlternateSetting

1

Number

Value used to select this alternate setting for the interface identified in the prior field

Parameters:
interfaceNumber

- Interface number value

alternateSetting

- Alternative settings value, ignored if enable is false .

enable

- Enable or disable the interface.

Returns:

SUCCESS or an Error code according to RETURN_CODE_t