fusb_hub.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. /*
  2. * Copyright : (C) 2022 Phytium Information Technology, Inc.
  3. * All Rights Reserved.
  4. *
  5. * This program is OPEN SOURCE software: you can redistribute it and/or modify it
  6. * under the terms of the Phytium Public License as published by the Phytium Technology Co.,Ltd,
  7. * either version 1.0 of the License, or (at your option) any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY;
  10. * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  11. * See the Phytium Public License for more details.
  12. *
  13. *
  14. * FilePath: fusb_hub.h
  15. * Date: 2022-02-11 13:33:09
  16. * LastEditTime: 2022-02-17 17:49:20
  17. * Description:  This files is for definition of USB hub device function
  18. *
  19. * Modify History:
  20. * Ver   Who        Date         Changes
  21. * ----- ------     --------    --------------------------------------
  22. * 1.0 Zhugengyu 2022/2/7 init commit
  23. */
  24. #ifndef DRIVERS_USB_HUB_H
  25. #define DRIVERS_USB_HUB_H
  26. #ifdef __cplusplus
  27. extern "C"
  28. {
  29. #endif
  30. /***************************** Include Files *********************************/
  31. #include "fusb.h"
  32. /************************** Constant Definitions *****************************/
  33. /**************************** Type Definitions *******************************/
  34. enum
  35. {
  36. FUSB_HUB_SUBCLASS_DEFAULT = 0x0
  37. };
  38. enum
  39. {
  40. FUSB_HUB_PROTOCOL_FULL_SPEED = 0x0,
  41. FUSB_HUB_PROTOCOL_HIGH_SPEED_WITH_SINGLE_TT = 0x1,
  42. FUSB_HUB_PROTOCOL_HIGH_SPEED_WITH_MULTIPLE_TT = 0x2
  43. };
  44. /************************** Variable Definitions *****************************/
  45. /***************** Macros (Inline Functions) Definitions *********************/
  46. /************************** Function Prototypes ******************************/
  47. /* USB Hub的初始化函数,由应用程序注册到FUSB框架中 */
  48. void FUsbHubInit(FUsbDev *dev);
  49. #ifdef __cplusplus
  50. }
  51. #endif
  52. #endif