requests.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /*
  2. * =====================================================================================
  3. *
  4. * .d8888b 88888b. .d88b. .d8888b 888d888 8888b. 88888b.d88b.
  5. * 88K 888 "88b d8P Y8b 88K 888P" "88b 888 "888 "88b
  6. * "Y8888b. 888 888 88888888 "Y8888b. 888 .d888888 888 888 888
  7. * X88 888 888 Y8b. X88 888 888 888 888 888 888
  8. * 88888P' 888 888 "Y8888 88888P' 888 "Y888888 888 888 888
  9. *
  10. * www.optixx.org
  11. *
  12. *
  13. * Version: 1.0
  14. * Created: 07/21/2009 03:32:16 PM
  15. * Author: david@optixx.org
  16. *
  17. * =====================================================================================
  18. */
  19. /* Name: requests.h
  20. * Project: custom-class, a basic USB example
  21. * Author: Christian Starkjohann
  22. * Creation Date: 2008-04-09
  23. * Tabsize: 4
  24. * Copyright: (c) 2008 by OBJECTIVE DEVELOPMENT Software GmbH
  25. * License: GNU GPL v2 (see License.txt), GNU GPL v3 or proprietary (CommercialLicense.txt)
  26. * This Revision: $Id: requests.h 692 2008-11-07 15:07:40Z cs $
  27. */
  28. /* This header is shared between the firmware and the host software. It
  29. * defines the USB request numbers (and optionally data types) used to
  30. * communicate between the host and the device.
  31. */
  32. #ifndef __REQUESTS_H__
  33. #define __REQUESTS_H__
  34. #define USB_UPLOAD_INIT 0
  35. #define USB_UPLOAD_ADDR 1
  36. #define USB_DOWNLOAD_INIT 2
  37. #define USB_DOWNLOAD_ADDR 3
  38. #define USB_CRC 4
  39. #define USB_CRC_ADDR 5
  40. #define USB_BULK_UPLOAD_INIT 6
  41. #define USB_BULK_UPLOAD_ADDR 7
  42. #define USB_BULK_UPLOAD_NEXT 8
  43. #define USB_BULK_UPLOAD_END 9
  44. #define USB_MODE_SNES 10
  45. #define USB_MODE_AVR 11
  46. #define USB_AVR_RESET 12
  47. #endif /* __REQUESTS_H_INCLUDED__ */