usbhhidmouse.h 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. //*****************************************************************************
  2. //
  3. // usbhhidmouse.h - This file holds the application interfaces for USB
  4. // mouse devices.
  5. //
  6. // Copyright (c) 2008-2010 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 AM1808 StarterWare USB Library, modified resused from revision 6288 of the
  23. // stellaris USB Library.
  24. //
  25. //*****************************************************************************
  26. #ifndef __USBHHIDMOUSE_H__
  27. #define __USBHHIDMOUSE_H__
  28. //*****************************************************************************
  29. //
  30. // If building with a C++ compiler, make all of the definitions in this header
  31. // have a C binding.
  32. //
  33. //*****************************************************************************
  34. #ifdef __cplusplus
  35. extern "C"
  36. {
  37. #endif
  38. //*****************************************************************************
  39. //
  40. //! \addtogroup usblib_host_device
  41. //! @{
  42. //
  43. //*****************************************************************************
  44. extern unsigned int USBHMouseOpen(unsigned int ulIndex,
  45. tUSBCallback pfnCallback,
  46. unsigned char *pucBuffer,
  47. unsigned int ulBufferSize);
  48. extern unsigned int USBHMouseClose(unsigned int ulInstance);
  49. extern unsigned int USBHMouseInit(unsigned int ulInstance);
  50. //*****************************************************************************
  51. //
  52. //! @}
  53. //
  54. //*****************************************************************************
  55. //*****************************************************************************
  56. //
  57. // Mark the end of the C bindings section for C++ compilers.
  58. //
  59. //*****************************************************************************
  60. #ifdef __cplusplus
  61. }
  62. #endif
  63. #endif