usb_prop.h 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /******************** (C) COPYRIGHT 2009 STMicroelectronics ********************
  2. * File Name : usb_prop.h
  3. * Author : MCD Application Team
  4. * Version : V3.1.0
  5. * Date : 10/30/2009
  6. * Description : All processing related to Mass Storage Demo (Endpoint 0)
  7. ********************************************************************************
  8. * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
  9. * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME.
  10. * AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT,
  11. * INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE
  12. * CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING
  13. * INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
  14. *******************************************************************************/
  15. /* Define to prevent recursive inclusion -------------------------------------*/
  16. #ifndef __usb_prop_H
  17. #define __usb_prop_H
  18. /* Includes ------------------------------------------------------------------*/
  19. /* Exported types ------------------------------------------------------------*/
  20. /* Exported constants --------------------------------------------------------*/
  21. #define Mass_Storage_GetConfiguration NOP_Process
  22. /* #define Mass_Storage_SetConfiguration NOP_Process*/
  23. #define Mass_Storage_GetInterface NOP_Process
  24. #define Mass_Storage_SetInterface NOP_Process
  25. #define Mass_Storage_GetStatus NOP_Process
  26. /* #define Mass_Storage_ClearFeature NOP_Process*/
  27. #define Mass_Storage_SetEndPointFeature NOP_Process
  28. #define Mass_Storage_SetDeviceFeature NOP_Process
  29. /*#define Mass_Storage_SetDeviceAddress NOP_Process*/
  30. /* MASS Storage Requests*/
  31. #define GET_MAX_LUN 0xFE
  32. #define MASS_STORAGE_RESET 0xFF
  33. #define LUN_DATA_LENGTH 1
  34. /* Exported macro ------------------------------------------------------------*/
  35. /* Exported functions ------------------------------------------------------- */
  36. void MASS_init(void);
  37. void MASS_Reset(void);
  38. void Mass_Storage_SetConfiguration(void);
  39. void Mass_Storage_ClearFeature(void);
  40. void Mass_Storage_SetDeviceAddress (void);
  41. void MASS_Status_In (void);
  42. void MASS_Status_Out (void);
  43. RESULT MASS_Data_Setup(uint8_t);
  44. RESULT MASS_NoData_Setup(uint8_t);
  45. RESULT MASS_Get_Interface_Setting(uint8_t Interface, uint8_t AlternateSetting);
  46. uint8_t *MASS_GetDeviceDescriptor(uint16_t );
  47. uint8_t *MASS_GetConfigDescriptor(uint16_t);
  48. uint8_t *MASS_GetStringDescriptor(uint16_t);
  49. uint8_t *Get_Max_Lun(uint16_t Length);
  50. #endif /* __usb_prop_H */
  51. /******************* (C) COPYRIGHT 2009 STMicroelectronics *****END OF FILE****/