usbhhidkeyboard.h 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. //*****************************************************************************
  2. //
  3. // usbhhidkeyboard.h - This file holds the application interfaces for USB
  4. // keyboard devices.
  5. //
  6. // Copyright (c) 2008-2011 Texas Instruments Incorporated. All rights reserved.
  7. // Software License Agreement
  8. //
  9. // Texas Instruments (TI) is supplying this software for use solely and
  10. // exclusively on TI's microcontroller products. The software is owned by
  11. // TI and/or its suppliers, and is protected under applicable copyright
  12. // laws. You may not combine this software with "viral" open-source
  13. // software in order to form a larger program.
  14. //
  15. // THIS SOFTWARE IS PROVIDED "AS IS" AND WITH ALL FAULTS.
  16. // NO WARRANTIES, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT
  17. // NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  18. // A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. TI SHALL NOT, UNDER ANY
  19. // CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
  20. // DAMAGES, FOR ANY REASON WHATSOEVER.
  21. //
  22. // This is part of revision 8049 of the Stellaris USB Library.
  23. //
  24. //*****************************************************************************
  25. #ifndef __USBHHIDKEYBOARD_H__
  26. #define __USBHHIDKEYBOARD_H__
  27. //*****************************************************************************
  28. //
  29. // If building with a C++ compiler, make all of the definitions in this header
  30. // have a C binding.
  31. //
  32. //*****************************************************************************
  33. #ifdef __cplusplus
  34. extern "C"
  35. {
  36. #endif
  37. //*****************************************************************************
  38. //
  39. //! \addtogroup usblib_host_device
  40. //! @{
  41. //
  42. //*****************************************************************************
  43. extern unsigned int USBHKeyboardOpen(unsigned int ulIndex,
  44. tUSBCallback pfnCallback,
  45. unsigned char *pucBuffer,
  46. unsigned int ulBufferSize);
  47. extern unsigned int USBHKeyboardClose(unsigned int ulInstance);
  48. extern unsigned int USBHKeyboardInit(unsigned int ulInstance);
  49. extern unsigned int USBHKeyboardModifierSet(unsigned int ulInstance,
  50. unsigned int ulModifiers);
  51. extern unsigned int USBHKeyboardPollRateSet(unsigned int ulInstance,
  52. unsigned int ulPollRate);
  53. extern unsigned int USBHKeyboardUsageToChar(
  54. unsigned int ulInstance,
  55. const tHIDKeyboardUsageTable *pTable,
  56. unsigned char ucUsageID);
  57. //*****************************************************************************
  58. //
  59. //! @}
  60. //
  61. //*****************************************************************************
  62. //*****************************************************************************
  63. //
  64. // Mark the end of the C bindings section for C++ compilers.
  65. //
  66. //*****************************************************************************
  67. #ifdef __cplusplus
  68. }
  69. #endif
  70. #endif