Example #1
0
/**
 * @brief  USBH_USR_Device_DescAvailable
 *         Displays the message on LCD for device descriptor
 * @param  DeviceDesc : device descriptor
 * @retval None
 */
void USBH_USR_Device_DescAvailable(void *DeviceDesc)
{
	USB_DEBUG_MARKER();
	//  uint8_t temp[50];
	//  USBH_DevDesc_TypeDef *hs;
	//  hs = DeviceDesc;
	//
	//
	//  sprintf((char *)temp , "VID : %04Xh\n" , (uint32_t)(*hs).idVendor); /
	//  //LCD_UsrLog((void *)temp);
	//
	//
	//  sprintf((char *)temp , "PID : %04Xh\n" , (uint32_t)(*hs).idProduct);
	//  //LCD_UsrLog((void *)temp);
}
Example #2
0
/**
 * @brief  USBH_USR_Conf_Desc
 *         Displays the message on LCD for configuration descriptor
 * @param  ConfDesc : Configuration descriptor
 * @retval None
 */
void USBH_USR_Configuration_DescAvailable(USBH_CfgDesc_TypeDef * cfgDesc, USBH_InterfaceDesc_TypeDef *itfDesc,
        USBH_EpDesc_TypeDef *epDesc)
{
	USB_DEBUG_MARKER();
	//  USBH_InterfaceDesc_TypeDef *id;
	//
	//  id = itfDesc;
	//
	//  if((*id).bInterfaceClass  == 0x08)
	//  {
	////    LCD_UsrLog((void *)MSG_MSC_CLASS);
	//  }
	//  else if((*id).bInterfaceClass  == 0x03)
	//  {
	////    LCD_UsrLog((void *)MSG_HID_CLASS);
	//  }
}
Example #3
0
/**
 * @brief  USBH_USR_DeviceSpeedDetected
 *         Displays the message on LCD for device speed
 * @param  Devicespeed : Device Speed
 * @retval None
 */
void USBH_USR_DeviceSpeedDetected(uint8_t DeviceSpeed)
{
	USB_DEBUG_MARKER();
	//  if(DeviceSpeed == HPRT0_PRTSPD_HIGH_SPEED)
	//  {
	////   LCD_UsrLog((void *)MSG_DEV_HIGHSPEED);
	//  }
	//  else if(DeviceSpeed == HPRT0_PRTSPD_FULL_SPEED)
	//  {
	////LCD_UsrLog((void *)MSG_DEV_FULLSPEED);
	//  }
	//  else if(DeviceSpeed == HPRT0_PRTSPD_LOW_SPEED)
	//  {
	////    LCD_UsrLog((void *)MSG_DEV_LOWSPEED);
	//  }
	//  else
	//  {
	////    LCD_UsrLog((void *)MSG_DEV_ERROR);
	//  }
}
Example #4
0
/**
 * @brief  USR_KEYBRD_ProcessData
 *         Process Keyboard data
 * @param  data : Keyboard data to be displayed
 * @retval None
 */
void USR_KEYBRD_ProcessData(uint8_t data1,uint8_t data2 )
{
	USB_DEBUG_MARKER();

	// Skip control characters like enter, bell, escape..
	//if ((data1 >= ' ' && data2 < 112)||(data1 == 10)||(data1==8)) {
	//if (data1 >= ' ' && data2 < 112) {
	// Could eliminate data2 and use only data1--data1 can be used to identify Function keys.

	// Check the Function Keys F1 thru F10
	if (data1 >=0x80 && data1<=0x89) {
		//check for modified ASCII codes for F1-F10
		data1 = data1 - 0x80;
		kybd_dispFunctionKey(data1);
		//Note: 0x90 to 0x99 denote shifted Function keys 1 to 10.
	}
	else if (data1 == 0x8C) { Acquire();}
	else {
		//data1 is ASCII data
		kybd_char_switch(data1);
	}

}
Example #5
0
/**
 * @brief  USBH_USR_Init
 *         Displays the message on LCD for host lib initialization
 * @param  None
 * @retval None
 */
void USBH_USR_Init(void)
{
	USB_DEBUG_MARKER();
}
Example #6
0
/**
 * @brief  USBH_USR_OverCurrentDetected
 *         Device Overcurrent detection event
 * @param  None
 * @retval None
 */
void USBH_USR_OverCurrentDetected(void)
{
	USB_DEBUG_MARKER();
	//   LCD_ErrLog ("Overcurrent detected.\n");

}
Example #7
0
/**
 * @brief  EnumerationDone
 *         User response request is displayed to ask for
 *         application jump to class
 * @param  None
 * @retval None
 */
void USBH_USR_EnumerationDone(void)
{
	USB_DEBUG_MARKER();

}
Example #8
0
/**
 * @brief  USBH_USR_SerialNum_String
 *         Displays the message on LCD for SerialNum_String
 * @param  SerialNumString : SerialNum_String of device
 * @retval None
 */
void USBH_USR_SerialNum_String(void *SerialNumString)
{
	USB_DEBUG_MARKER();
}
Example #9
0
/**
 * @brief  USBH_USR_Product_String
 *         Displays the message on LCD for Product String
 * @param  ProductString : Product String of Device
 * @retval None
 */
void USBH_USR_Product_String(void *ProductString)
{
	USB_DEBUG_MARKER();
}
Example #10
0
/**
 * @brief  USBH_USR_Manufacturer_String
 *         Displays the message on LCD for Manufacturer String
 * @param  ManufacturerString : Manufacturer String of Device
 * @retval None
 */
void USBH_USR_Manufacturer_String(void *ManufacturerString)
{
	USB_DEBUG_MARKER();
}
Example #11
0
/**
 * @brief  USBH_USR_DeviceAddressAssigned
 *         USB device is successfully assigned the Address
 * @param  None
 * @retval None
 */
void USBH_USR_DeviceAddressAssigned(void)
{
	USB_DEBUG_MARKER();
}
Example #12
0
/**
 * @brief  USBH_USR_ResetUSBDevice
 *         Reset USB Device
 * @param  None
 * @retval None
 */
void USBH_USR_ResetDevice(void)
{
	/* Users can do their application actions here for the USB-Reset */
	USB_DEBUG_MARKER();
}
Example #13
0
/**
 * @brief  USBH_USR_UnrecoveredError
 * @param  None
 * @retval None
 */
void USBH_USR_UnrecoveredError(void)
{
	USB_DEBUG_MARKER();
}
Example #14
0
/**
 * @brief  USBH_USR_DeviceAttached
 *         Displays the message on LCD on device attached
 * @param  None
 * @retval None
 */
void USBH_USR_DeviceAttached(void)
{
	USB_DEBUG_MARKER();
	KeyboardStatus_SetDeviceAttached();
}
Example #15
0
/**
 * @brief  USR_KEYBRD_Init
 *         Init Keyboard window
 * @param  None
 * @retval None
 */
void USR_KEYBRD_Init(void)
{
	USB_DEBUG_MARKER();
	KeyboardStatus_SetKeyboardWorking();

}
Example #16
0
/**
 * @brief  USBH_DisconnectEvent
 *         Device disconnect event
 * @param  None
 * @retval None
 */
void USBH_USR_DeviceDisconnected(void)
{
	USB_DEBUG_MARKER();
	KeyboardStatus_SetDeviceDesconnected();
}