void USBCheckVendorRequest();
This routine handles vendor specific requests that may arrive on EP0 as a control transfer. These can include, but are not necessarily limited to, requests for Microsft specific OS feature descriptor(s). This function should be called from the USBCBCheckOtherReq() call back function whenever using a vendor class device.
Typical Usage:
void USBCBCheckOtherReq(void) { //Since the stack didn't handle the request I need to check // my class drivers to see if it is for them USBCheckVendorRequest(); }
None
This function normally gets called within the same context as the USBDeviceTasks() function, just after a new control transfer request from the host has arrived. If the USB stack is operated in USB_INTERRUPT mode (a usb_config.h option), then this function will be executed in the interrupt context. If however the USB stack is operated in the USB_POLLING mode, then this function executes in the main loop context.
In order to respond to class specific control transfer request(s) in this handler function, it is suggested to use one or more of the USBEP0SendRAMPtr(), USBEP0SendROMPtr(), or USBEP0Receive() API functions.
MLA - USB Library Help Version : 2.16
![]() |