/* Get Interface USB Device Request Parameters: None Return Value: TRUE - Success, FALSE - Error  */
static BOOL USBD_ReqGetInterface(void)
/* Get Interface USB Device Request Parameters: None Return Value: TRUE - Success, FALSE - Error  */
static BOOL USBD_ReqGetInterface(void)
{
    switch (USBD_SetupPacket.bmRequestType.Recipient) {
        case REQUEST_TO_INTERFACE:
            if ((USBD_Configuration != 0) && (USBD_SetupPacket.wIndexL < USBD_NumInterfaces)) {
                USBD_EP0Data.pData = USBD_AltSetting + USBD_SetupPacket.wIndexL;
            } else {
                return (__FALSE);
            }
            break;
        default:
            return (__FALSE);
    }
    return (__TRUE);
}