Benchmark.h 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. /// Benchmark.h
  2. /// Common header file.
  3. /* USB Benchmark for libusb-win32
  4. Copyright © 2010 Travis Robinson. <libusbdotnet@gmail.com>
  5. website: http://sourceforge.net/projects/libusb-win32
  6. Software License Agreement:
  7. The software supplied herewith is intended for use solely and
  8. exclusively on Microchip PIC Microcontroller products. This
  9. software is owned by Travis Robinson, and is protected under
  10. applicable copyright laws. All rights are reserved. Any use in
  11. violation of the foregoing restrictions may subject the user to
  12. criminal sanctions under applicable laws, as well as to civil
  13. liability for the breach of the terms and conditions of this
  14. license.
  15. You may redistribute and/or modify this file under the terms
  16. described above.
  17. THIS SOFTWARE IS PROVIDED IN AN “AS IS” CONDITION. NO WARRANTIES,
  18. WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT NOT LIMITED
  19. TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
  20. PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. THE OWNER SHALL NOT,
  21. IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL OR
  22. CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
  23. */
  24. #ifndef _BENCHMARK_H
  25. #define _BENCHMARK_H
  26. /** INCLUDES *******************************************************/
  27. #include "USB/usb.h"
  28. #include "USB/usb_function_generic.h"
  29. #include "HardwareProfile.h"
  30. // These are vendor specific commands
  31. // See the PICFW_COMMANDS for details
  32. // on how this is implemented.
  33. enum TestType
  34. {
  35. TEST_NONE,
  36. TEST_PCREAD,
  37. TEST_PCWRITE,
  38. TEST_LOOP
  39. };
  40. /** BMARK CALLBACKS ************************************************/
  41. void USBCBCheckOtherReq(void);
  42. void USBCBInitEP(void);
  43. /** USB FW EXTERNS DEFINES *****************************************/
  44. extern volatile CTRL_TRF_SETUP SetupPkt;
  45. /** BMARK DEFINES **************************************************/
  46. void Benchmark_ProcessIO(void);
  47. void Benchmark_Init(void);
  48. #endif