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 ******************************************************************************
25 #include "usbd_ioreq.h"
27 USBD_Usr_cb_TypeDef USR_cb
=
31 USBD_USR_DeviceConfigured
,
32 USBD_USR_DeviceSuspended
,
33 USBD_USR_DeviceResumed
,
35 USBD_USR_DeviceConnected
,
36 USBD_USR_DeviceDisconnected
,
40 * @brief USBD_USR_Init
41 * Displays the message on LCD for host lib initialization
45 void USBD_USR_Init(void)
51 * @brief USBD_USR_DeviceReset
52 * Displays the message on LCD on device Reset Event
53 * @param speed : device speed
56 void USBD_USR_DeviceReset(uint8_t speed
)
60 case USB_OTG_SPEED_HIGH
:
63 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)
82 * @brief USBD_USR_DeviceConnected
83 * Displays the message on LCD on device connection Event
87 void USBD_USR_DeviceConnected (void)
92 * @brief USBD_USR_DeviceDisonnected
93 * Displays the message on LCD on device disconnection Event
97 void USBD_USR_DeviceDisconnected (void)
102 * @brief USBD_USR_DeviceSuspended
103 * Displays the message on LCD on device suspend Event
107 void USBD_USR_DeviceSuspended(void)
109 /* Users can do their application actions here for the USB-Reset */
113 * @brief USBD_USR_DeviceResumed
114 * Displays the message on LCD on device resume Event
118 void USBD_USR_DeviceResumed(void)
120 /* Users can do their application actions here for the USB-Reset */