Silicon Laboratories Stepper Machine Specifications Page 36

  • Download
  • Add to my manuals
  • Print
  • Page
    / 68
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 35
36
36
Standard Requests Example
Get_Descriptor(DEVICE): Standard request to get the device descriptor
bmRequestType = 80h, bRequest = 06h
(Get_Descriptor())
wValue = 0100h (DEVICE)
wIndex = 0000h
wLength = 0012h (18 bytes)
bmRequestType=00h, bRequest=05h
(Set_Address())
wValue = 0300h (Address 3)
wIndex = 0000h
wLength = 0000h (0 bytes)
Set_Address(3): Standard request to set device address to 3.
8 bytes of data found within the setup
phase of the control transfer.
Here are some captures of data highlighting the requests. The first is the
Get_Descriptor(DEVICE) standard request and the second is the Set_Address(3)
request. In the first example we would provide the USB peripheral with the data
that is stored that conforms to the descriptors for the device descriptor. When we
receive the second request we will update the address register with the value
transferred by the host, in this case we would become address 3.
Page view 35
1 2 ... 31 32 33 34 35 36 37 38 39 40 41 ... 67 68

Comments to this Manuals

No comments