src/usb_events.c
bool USER_USB_CALLBACK_EVENT_HANDLER(USB_EVENT event, void *pdata, uint16_t size)
{
    switch((int)event)
    {
        case EVENT_TRANSFER:
            break;

        case EVENT_SOF:
            if(SOFCounter < 32767)
            {
                SOFCounter++;
            }
            else
            {
                SOFCounter = 0;
            }
            break;

        case EVENT_SUSPEND:
            break;

        case EVENT_RESUME:
            break;

        case EVENT_CONFIGURED:
            APP_KeyboardInit();
            break;

        case EVENT_SET_DESCRIPTOR:
            break;

        case EVENT_EP0_REQUEST:
            USBCheckHIDRequest();
            break;

        case EVENT_BUS_ERROR:
            break;

        case EVENT_TRANSFER_TERMINATED:
            break;

        default:
            break;
    }
    return true;
}
/*******************************************************************
 * Function:        bool USER_USB_CALLBACK_EVENT_HANDLER(
 *                        USB_EVENT event, void *pdata, uint16_t size)
 *
 * PreCondition:    None
 *
 * Input:           USB_EVENT event - the type of event
 *                  void *pdata - pointer to the event data
 *                  uint16_t size - size of the event data
 *
 * Output:          None
 *
 * Side Effects:    None
 *
 * Overview:        This function is called from the USB stack to
 *                  notify a user application that a USB event
 *                  occured.  This callback is in interrupt context
 *                  when the USB_INTERRUPT option is selected.
 *
 * Note:            None
 *******************************************************************/


None

USB_EVENT event - the type of event
void *pdata - pointer to the event data
uint16_t size - size of the event data

None

Side Effects:    None

This function is called from the USB stack to
notify a user application that a USB event
occured.  This callback is in interrupt context
when the USB_INTERRUPT option is selected.

None
None USB_EVENT event - the type of event void * pdata - pointer to the event data uint16_t size - size of the event data None Side Effects : None This function is called from the USB stack to notify a user application that a USB event occured . This callback is in interrupt context when the USB_INTERRUPT option is selected . None
bool USER_USB_CALLBACK_EVENT_HANDLER(USB_EVENT event, void *pdata, uint16_t size)
{
    switch((int)event)
    {
        case EVENT_TRANSFER:
            break;
        case EVENT_SOF:
            if(SOFCounter < 32767)
            {
                SOFCounter++;
            }
            else
            {
                SOFCounter = 0;
            }
            break;
        case EVENT_SUSPEND:
            break;
        case EVENT_RESUME:
            break;
        case EVENT_CONFIGURED:
            APP_KeyboardInit();
            break;
        case EVENT_SET_DESCRIPTOR:
            break;
        case EVENT_EP0_REQUEST:
            USBCheckHIDRequest();
            break;
        case EVENT_BUS_ERROR:
            break;
        case EVENT_TRANSFER_TERMINATED:
            break;
        default:
            break;
    }
    return true;
}
bool USER_USB_CALLBACK_EVENT_HANDLER ( USB_EVENT event , void * pdata , uint16_t size ) { switch ( ( int ) event ) { case EVENT_TRANSFER : break ; case EVENT_SOF : if ( SOFCounter < 32767 ) { SOFCounter ++ ; } else { SOFCounter = 0 ; } break ; case EVENT_SUSPEND : break ; case EVENT_RESUME : break ; case EVENT_CONFIGURED : APP_KeyboardInit ( ) ; break ; case EVENT_SET_DESCRIPTOR : break ; case EVENT_EP0_REQUEST : USBCheckHIDRequest ( ) ; break ; case EVENT_BUS_ERROR : break ; case EVENT_TRANSFER_TERMINATED : break ; default : break ; } return true ; }
Function:        bool USER_USB_CALLBACK_EVENT_HANDLER(
                        USB_EVENT event, void *pdata, uint16_t size)
Function : bool USER_USB_CALLBACK_EVENT_HANDLER ( USB_EVENT event void * pdata uint16_t size )