- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I would like to send up to 8 bytes of data in control command to FX2 using additional data field. Up to four bytes the mValue and mIndex field can be used but for more, additional data field is needed.
What is the location of the received bytes?
Solved! Go to Solution.
- Tags:
- cy7c68013a
- fx2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I assume that you are using the FX2LP (CY7C68013A) chip. Please correct me if I am wrong.
While using control commands, the first eight bytes of data are loaded into the SETUPDAT register. These eight bytes are as follows:
Byte 0: bmRequestType
Byte 1: bRequest
Byte 2: wValue
Byte 4: wIndex
Byte 6: wLength
When more than 8 bytes are to be transferred during a control transfer, the additional data gets loaded into the endpoint zero (EP0) buffer.
Best regards,
Srinath S
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I assume that you are using the FX2LP (CY7C68013A) chip. Please correct me if I am wrong.
While using control commands, the first eight bytes of data are loaded into the SETUPDAT register. These eight bytes are as follows:
Byte 0: bmRequestType
Byte 1: bRequest
Byte 2: wValue
Byte 4: wIndex
Byte 6: wLength
When more than 8 bytes are to be transferred during a control transfer, the additional data gets loaded into the endpoint zero (EP0) buffer.
Best regards,
Srinath S
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for help.
What I forgot was to reload the buffer with the next USB packet.
Wojciech