1
0

hid_usage_ordinal.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /* This file is the part of the LUS32 project
  2. *
  3. * Copyright ©2016 Dmitry Filimonchuk <dmitrystu[at]gmail[dot]com>
  4. *
  5. * Licensed under the Apache License, Version 2.0 (the "License");
  6. * you may not use this file except in compliance with the License.
  7. * You may obtain a copy of the License at
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. * Unless required by applicable law or agreed to in writing, software
  10. * distributed under the License is distributed on an "AS IS" BASIS,
  11. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. * See the License for the specific language governing permissions and
  13. * limitations under the License.
  14. */
  15. #ifndef _USB_HID_USAGE_ORDINAL_H_
  16. #define _USB_HID_USAGE_ORDINAL_H_
  17. #ifdef __cplusplus
  18. extern "C" {
  19. #endif
  20. /**\ingroup USB_HID
  21. * \addtogroup USB_HID_USAGES_ORDINAL HID Usage Tables for Ordinal
  22. * \brief Contains USB HID Usages definitions for Ordinal Page
  23. * \details This module based on
  24. * + [HID Usage Tables Version 1.12](http://www.usb.org/developers/hidpage/Hut1_12v2.pdf)
  25. * @{ */
  26. #define HID_PAGE_ORDINAL 0x0A
  27. #define HID_ORDINAL_INSTANCE_1 0x01
  28. #define HID_ORDINAL_INSTANCE_2 0x02
  29. #define HID_ORDINAL_INSTANCE_3 0x03
  30. #define HID_ORDINAL_INSTANCE_4 0x04
  31. #define HID_ORDINAL_INSTANCE_5 0x05
  32. /** @} */
  33. #ifdef __cplusplus
  34. }
  35. #endif
  36. #endif