summaryrefslogtreecommitdiff
path: root/BaseTools/Source/Python/TargetTool
diff options
context:
space:
mode:
authorOleg Ilyasov <olegi@ami.com>2024-12-09 15:57:25 -0500
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2024-12-13 23:56:10 +0000
commit1a440d96387bbbf04c24ef024e0bc19e99cd849f (patch)
tree9d2fc8b06cac2b03d4ffbd83f3e8d1c0778ca09f /BaseTools/Source/Python/TargetTool
parentc7354e9c84a21fd64220cd6c258bd3dc0f5577b4 (diff)
downloadedk2-1a440d96387bbbf04c24ef024e0bc19e99cd849f.zip
edk2-1a440d96387bbbf04c24ef024e0bc19e99cd849f.tar.gz
edk2-1a440d96387bbbf04c24ef024e0bc19e99cd849f.tar.bz2
Retrieve the USB class specific data from the configuration descriptor
If USB device reports class specific descriptors, it is currently the job of device driver to parse the configuration to find the class specific data. The new library functions parse the configuration descriptor and return class specific interface and class specific endpoint descriptors. Also, these new functions allow to retrieve the data from non-default alternate settings without performing a switch to this setting. Switching to the alternate setting currently implies the execution of UsbSetInterface function that performs USB control trnasfer. In some cases this switch is not desirable so the new functions UsbGetInterfaceDescriptorSetting and UsbGetEndpointDescriptorSetting come in handy. Signed-off-by: Oleg Ilyasov <olegi@ami.com>
Diffstat (limited to 'BaseTools/Source/Python/TargetTool')
0 files changed, 0 insertions, 0 deletions