keil_examples/USBHID/hiduser.c
/*
 *  HID Set Protocol Request Callback
 *   Called automatically on HID Set Protocol Request
 *    Parameters:      None (global SetupPacket)
 *    Return Value:    TRUE - Success, FALSE - Error
 */
HID Set Protocol Request Callback
Called automatically on HID Set Protocol Request
Parameters:      None (global SetupPacket)
Return Value:    TRUE - Success, FALSE - Error
HID Set Protocol Request Callback Called automatically on HID Set Protocol Request Parameters : None ( global SetupPacket ) Return Value : TRUE - Success FALSE - Error
uint32_t HID_SetProtocol (void) {
  HID_Protocol = SetupPacket.wValue.WB.L;
  return (TRUE);
}
uint32_t HID_SetProtocol ( void ) { HID_Protocol = SetupPacket . wValue . WB . L ; return ( TRUE ) ; }
HID Set Protocol Request Callback
   Called automatically on HID Set Protocol Request
    Parameters:      None (global SetupPacket)
    Return Value:    TRUE - Success, FALSE - Error
HID Set Protocol Request Callback Called automatically on HID Set Protocol Request Parameters : None ( global SetupPacket ) Return Value : TRUE - Success FALSE - Error
/* Protocol Handling if needed */ /* ... */