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
,
41 * @brief USBD_USR_Init
42 * Displays the message on LCD for host lib initialization
46 void USBD_USR_Init(void)
52 * @brief USBD_USR_DeviceReset
53 * Displays the message on LCD on device Reset Event
54 * @param speed : device speed
57 void USBD_USR_DeviceReset(uint8_t speed
)
61 case USB_OTG_SPEED_HIGH
:
64 case USB_OTG_SPEED_FULL
:
74 * @brief USBD_USR_DeviceConfigured
75 * Displays the message on LCD on device configuration Event
79 void USBD_USR_DeviceConfigured (void)
85 * @brief USBD_USR_DeviceConnected
86 * Displays the message on LCD on device connection Event
90 void USBD_USR_DeviceConnected (void)
96 * @brief USBD_USR_DeviceDisonnected
97 * Displays the message on LCD on device disconnection Event
101 void USBD_USR_DeviceDisconnected (void)
106 * @brief USBD_USR_DeviceSuspended
107 * Displays the message on LCD on device suspend Event
111 void USBD_USR_DeviceSuspended(void)
113 /* Users can do their application actions here for the USB-Reset */
118 * @brief USBD_USR_DeviceResumed
119 * Displays the message on LCD on device resume Event
123 void USBD_USR_DeviceResumed(void)
125 /* Users can do their application actions here for the USB-Reset */