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.
|
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 |
| interfaceNumber |
- Interface number value |
| alternateSetting |
- Alternative settings value, ignored if enable is false . |
| enable |
- Enable or disable the interface. |
SUCCESS or an Error code according to RETURN_CODE_t |
