embedded-trainings-2020/embedded-workshop-book/src/get-descriptor-config.md

8 lines
521 B
Markdown
Raw Normal View History

2020-07-13 11:48:24 +00:00
# Handling GET_DESCRIPTOR Configuration Requests
When the host issues a GET_DESCRIPTOR *Configuration* request the device needs to respond with the requested configuration descriptor *plus* all the interface and endpoint descriptors associated to that configuration descriptor during the DATA stage.
A GET_DESCRIPTOR Configuration request is a GET_DESCRIPTOR request where the descriptor type encoded in the high bit of `wValue` is CONFIGURATION.
2020-07-13 11:48:24 +00:00
2020-07-16 13:13:31 +00:00
Let's look into all the concepts required to respond to this request.