adk.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  2. * File : adk.h
  3. * This file is part of RT-Thread RTOS
  4. * COPYRIGHT (C) 2011, RT-Thread Development Team
  5. *
  6. * The license and distribution terms for this file may be
  7. * found in the file LICENSE in this distribution or at
  8. * http://www.rt-thread.org/license/LICENSE
  9. *
  10. * Change Logs:
  11. * Date Author Notes
  12. * 2011-12-12 Yi Qiu first version
  13. */
  14. #ifndef __HID_H__
  15. #define __HID_H__
  16. #include <rtthread.h>
  17. struct uadkinst
  18. {
  19. upipe_t pipe_in;
  20. upipe_t pipe_out;
  21. struct rt_device device;
  22. };
  23. typedef struct uadkinst* uadkinst_t;
  24. #define USB_ACCESSORY_VENDOR_ID 0x18D1
  25. #define USB_ACCESSORY_PRODUCT_ID 0x2D00
  26. #define USB_ACCESSORY_ADB_PRODUCT_ID 0x2D01
  27. #define ACCESSORY_STRING_MANUFACTURER 0
  28. #define ACCESSORY_STRING_MODEL 1
  29. #define ACCESSORY_STRING_DESCRIPTION 2
  30. #define ACCESSORY_STRING_VERSION 3
  31. #define ACCESSORY_STRING_URI 4
  32. #define ACCESSORY_STRING_SERIAL 5
  33. #define USB_REQ_GET_PROTOCOL 51
  34. #define USB_REQ_SEND_STRING 52
  35. #define USB_REQ_START 53
  36. #define USB_CLASS_ADK 0xff
  37. #endif