usbdevicepriv.h 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. //
  25. //*****************************************************************************
  26. #ifndef __USBDEVICEPRIV_H__
  27. #define __USBDEVICEPRIV_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. // Device enumeration functions provided by device/usbenum.c and called from
  41. // the interrupt handler in device/usbhandler.c
  42. //
  43. //*****************************************************************************
  44. extern tBoolean USBDeviceConfig(uint32 ulIndex,
  45. const tConfigHeader *psConfig,
  46. const tFIFOConfig *psFIFOConfig);
  47. extern tBoolean USBDeviceConfigAlternate(uint32 ulIndex,
  48. const tConfigHeader *psConfig,
  49. uint8 ucInterfaceNum,
  50. uint8 ucAlternateSetting);
  51. extern void USBDeviceResumeTickHandler(uint32 ulIndex);
  52. //*****************************************************************************
  53. //
  54. // Mark the end of the C bindings section for C++ compilers.
  55. //
  56. //*****************************************************************************
  57. #ifdef __cplusplus
  58. }
  59. #endif
  60. #endif // __USBDEVICEPRIV_H__