123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134 |
- #ifndef __USH_USR_H__
- #define __USH_USR_H__
- #include "ff.h"
- #include "usb_conf.h"
- #include "usbh_core.h"
- #include "usbh_msc_core.h"
- #include <stdio.h>
- extern USBH_Usr_cb_TypeDef USR_cb;
- #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
- extern uint8_t USBH_USR_ApplicationState;
- 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
|