/**
******************************************************************************
* @file usbh_usr.h
* @author MCD Application Team
* @version V2.1.0
* @date 19-March-2012
* @brief Header file for usbh_usr.c
******************************************************************************
* @attention
*
*
© COPYRIGHT 2012 STMicroelectronics
*
* Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
* You may not use this file except in compliance with the License.
* You may obtain a copy of the License at:
*
* http://www.st.com/software_license_agreement_liberty_v2
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
******************************************************************************
*/
/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __USH_USR_H__
#define __USH_USR_H__
/* Includes ------------------------------------------------------------------*/
#include "ff.h"
#include "usb_conf.h"
#include "usbh_core.h"
#include "usbh_msc_core.h"
#include
/** @addtogroup USBH_USER
* @{
*/
/** @addtogroup USBH_MSC_DEMO_USER_CALLBACKS
* @{
*/
/** @defgroup USBH_USR
* @brief This file is the Header file for usbh_usr.c
* @{
*/
/** @defgroup USBH_USR_Exported_Types
* @{
*/
extern USBH_Usr_cb_TypeDef USR_cb;
/**
* @}
*/
/** @defgroup USBH_USR_Exported_Defines
* @{
*/
/* State Machine for the USBH_USR_ApplicationState */
#define USH_USR_FS_INIT 0
#define USH_USR_FS_READLIST 1
#define USH_USR_FS_WRITEFILE 2
#define USH_USR_FS_DRAW 3
#define USH_USR_FS_TEST 4
/**
* @}
*/
/** @defgroup USBH_USR_Exported_Macros
* @{
*/
/**
* @}
*/
/** @defgroup USBH_USR_Exported_Variables
* @{
*/
extern uint8_t USBH_USR_ApplicationState;
/**
* @}
*/
/** @defgroup USBH_USR_Exported_FunctionsPrototype
* @{
*/
void USBH_USR_ApplicationSelected(void);
void USBH_USR_Init(void);
void USBH_USR_DeInit(void);
void USBH_USR_DeviceAttached(void);
void USBH_USR_ResetDevice(void);
void USBH_USR_DeviceDisconnected(void);
void USBH_USR_OverCurrentDetected(void);
void USBH_USR_DeviceSpeedDetected(uint8_t DeviceSpeed);
void USBH_USR_Device_DescAvailable(void *);
void USBH_USR_DeviceAddressAssigned(void);
void USBH_USR_Configuration_DescAvailable(USBH_CfgDesc_TypeDef *cfgDesc,
USBH_InterfaceDesc_TypeDef *itfDesc,
USBH_EpDesc_TypeDef *epDesc);
void USBH_USR_Manufacturer_String(void *);
void USBH_USR_Product_String(void *);
void USBH_USR_SerialNum_String(void *);
void USBH_USR_EnumerationDone(void);
USBH_USR_Status USBH_USR_UserInput(void);
void USBH_USR_DeInit(void);
void USBH_USR_DeviceNotSupported(void);
void USBH_USR_UnrecoveredError(void);
int USBH_USR_MSC_Application(void);
/**
* @}
*/
#endif /*__USH_USR_H__*/
/**
* @}
*/
/**
* @}
*/
/**
* @}
*/
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/