keil_examples/USBHID/hiduser.c
/*
 *  HID Set Report Request Callback
 *   Called automatically on HID Set Report Request
 *    Parameters:      None (global SetupPacket and EP0Buf)
 *    Return Value:    TRUE - Success, FALSE - Error
 */
HID Set Report Request Callback
Called automatically on HID Set Report Request
Parameters:      None (global SetupPacket and EP0Buf)
Return Value:    TRUE - Success, FALSE - Error
HID Set Report Request Callback Called automatically on HID Set Report Request Parameters : None ( global SetupPacket and EP0Buf ) Return Value : TRUE - Success FALSE - Error
uint32_t HID_SetReport (void) {
  switch (SetupPacket.wValue.WB.H) {
    case HID_REPORT_INPUT:
      return (FALSE);          
    case HID_REPORT_OUTPUT:
      OutReport = EP0Buf[0];
      SetOutReport();
      break;
    case HID_REPORT_FEATURE:
      return (FALSE);          
  }
  return (TRUE);
}
uint32_t HID_SetReport ( void ) { switch ( SetupPacket . wValue . WB . H ) { case HID_REPORT_INPUT : return ( FALSE ) ; case HID_REPORT_OUTPUT : OutReport = EP0Buf [ 0 ] ; SetOutReport ( ) ; break ; case HID_REPORT_FEATURE : return ( FALSE ) ; } return ( TRUE ) ; }
HID Set Report Request Callback
   Called automatically on HID Set Report Request
    Parameters:      None (global SetupPacket and EP0Buf)
    Return Value:    TRUE - Success, FALSE - Error
HID Set Report Request Callback Called automatically on HID Set Report Request Parameters : None ( global SetupPacket and EP0Buf ) Return Value : TRUE - Success FALSE - Error
/* ReportID = SetupPacket.wValue.WB.L; */ /* Not Supported */ /* Not Supported */