- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Just contact USB, there is a question I would like to ask
There is a registration callback function in the CYUSB3014 firmware programming:
CyU3PUsbRegisterSetupCallback(CyFxSlFIFoApplnUSBSetuPCB, CyTrue);
There are two parameters in CyFxSlFifoApplnUSBSetupCB:
Uint32_t setupdat0,
Uint32_t setupdat1
The two parameters are parsed in the function. I want to ask what these two parameters mean. What do you mean by that? ? ?
bReqType = (setupdat0 & CY_U3P_USB_REQUEST_TYPE_MASK);
bType = (bReqType & CY_U3P_USB_TYPE_MASK);
bTarget = (bReqType & CY_U3P_USB_TARGET_MASK);
Thank you!
William
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Setupdat0 is the variable that holds the values of bmRequestType, bRequest and wValue.
Setupdat1 is the variable that holds the values of wIndex and wLength.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Setupdat0 is the variable that holds the values of bmRequestType, bRequest and wValue.
Setupdat1 is the variable that holds the values of wIndex and wLength.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I seem to understand, thank you.