/* CustomHID_OutEvent Manage the CUSTOM HID class Out Event  */
static int8_t CustomHID_OutEvent(uint8_t event_idx, uint8_t state)
/* CustomHID_OutEvent Manage the CUSTOM HID class Out Event  */
static int8_t CustomHID_OutEvent(uint8_t event_idx, uint8_t state)
{ 
  switch(event_idx)
  {
  case 1:
    (state == 1) ? BSP_LED_On(LED1) : BSP_LED_Off(LED1); 
    break;
  case 2:
    (state == 1) ? BSP_LED_On(LED2) : BSP_LED_Off(LED2); 
    break;
  case 3:
    (state == 1) ? BSP_LED_On(LED3) : BSP_LED_Off(LED3); 
    break;
  case 4:
    (state == 1) ? BSP_LED_On(LED4) : BSP_LED_Off(LED4); 
    break;
  default:
    BSP_LED_Off(LED1);
    BSP_LED_Off(LED2);
    BSP_LED_Off(LED3);
    BSP_LED_Off(LED4); 
    break;
  }
  USBD_CUSTOM_HID_ReceivePacket(&USBD_Device);
  return (0);
}