2 ******************************************************************************
4 * @author MCD Application Team
6 * @date 19-September-2011
7 * @brief This file includes the user application layer
8 ******************************************************************************
11 * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
12 * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
13 * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY
14 * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
15 * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
16 * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
18 * <h2><center>© COPYRIGHT 2011 STMicroelectronics</center></h2>
19 ******************************************************************************
23 #include "usbd_ioreq.h"
25 USBD_Usr_cb_TypeDef USR_cb
=
29 USBD_USR_DeviceConfigured
,
30 USBD_USR_DeviceSuspended
,
31 USBD_USR_DeviceResumed
,
33 USBD_USR_DeviceConnected
,
34 USBD_USR_DeviceDisconnected
,
39 * @brief USBD_USR_Init
40 * Displays the message on LCD for host lib initialization
44 void USBD_USR_Init(void)
50 * @brief USBD_USR_DeviceReset
51 * Displays the message on LCD on device Reset Event
52 * @param speed : device speed
55 void USBD_USR_DeviceReset(uint8_t speed
)
59 case USB_OTG_SPEED_HIGH
:
62 case USB_OTG_SPEED_FULL
:
72 * @brief USBD_USR_DeviceConfigured
73 * Displays the message on LCD on device configuration Event
77 void USBD_USR_DeviceConfigured (void)
83 * @brief USBD_USR_DeviceConnected
84 * Displays the message on LCD on device connection Event
88 void USBD_USR_DeviceConnected (void)
94 * @brief USBD_USR_DeviceDisonnected
95 * Displays the message on LCD on device disconnection Event
99 void USBD_USR_DeviceDisconnected (void)
104 * @brief USBD_USR_DeviceSuspended
105 * Displays the message on LCD on device suspend Event
109 void USBD_USR_DeviceSuspended(void)
111 /* Users can do their application actions here for the USB-Reset */
116 * @brief USBD_USR_DeviceResumed
117 * Displays the message on LCD on device resume Event
121 void USBD_USR_DeviceResumed(void)
123 /* Users can do their application actions here for the USB-Reset */