usbdevicepriv.h 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. //*****************************************************************************
  2. //
  3. // usbdevicepriv.h - Private header file used to share internal variables and
  4. // function prototypes between the various device-related
  5. // modules in the USB library. This header MUST NOT be
  6. // used by application code.
  7. //
  8. // Copyright (c) 2008-2010 Texas Instruments Incorporated. All rights reserved.
  9. // Software License Agreement
  10. //
  11. // Texas Instruments (TI) is supplying this software for use solely and
  12. // exclusively on TI's microcontroller products. The software is owned by
  13. // TI and/or its suppliers, and is protected under applicable copyright
  14. // laws. You may not combine this software with "viral" open-source
  15. // software in order to form a larger program.
  16. //
  17. // THIS SOFTWARE IS PROVIDED "AS IS" AND WITH ALL FAULTS.
  18. // NO WARRANTIES, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT
  19. // NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  20. // A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. TI SHALL NOT, UNDER ANY
  21. // CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
  22. // DAMAGES, FOR ANY REASON WHATSOEVER.
  23. //
  24. // This is part of AM1808 StarterWare USB Library and reused from revision 6288
  25. // of the Stellaris USB Library.
  26. //
  27. //*****************************************************************************
  28. #ifndef __USBDEVICEPRIV_H__
  29. #define __USBDEVICEPRIV_H__
  30. //*****************************************************************************
  31. //
  32. // If building with a C++ compiler, make all of the definitions in this header
  33. // have a C binding.
  34. //
  35. //*****************************************************************************
  36. #ifdef __cplusplus
  37. extern "C"
  38. {
  39. #endif
  40. //*****************************************************************************
  41. //
  42. // Device enumeration functions provided by device/usbenum.c and called from
  43. // the interrupt handler in device/usbhandler.c
  44. //
  45. //*****************************************************************************
  46. extern tBoolean USBDeviceConfig(unsigned int ulIndex,
  47. const tConfigHeader *psConfig,
  48. const tFIFOConfig *psFIFOConfig);
  49. extern tBoolean USBDeviceConfigAlternate(unsigned int ulIndex,
  50. const tConfigHeader *psConfig,
  51. unsigned char ucInterfaceNum,
  52. unsigned char ucAlternateSetting);
  53. extern void USBDeviceResumeTickHandler(unsigned int ulIndex);
  54. //*****************************************************************************
  55. //
  56. // Mark the end of the C bindings section for C++ compilers.
  57. //
  58. //*****************************************************************************
  59. #ifdef __cplusplus
  60. }
  61. #endif
  62. #endif // __USBDEVICEPRIV_H__