usbf_defs.v 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. //-----------------------------------------------------------------
  2. // USB Serial Port
  3. // V0.1
  4. // Ultra-Embedded.com
  5. // Copyright 2020
  6. //
  7. // Email: admin@ultra-embedded.com
  8. //
  9. // License: LGPL
  10. //-----------------------------------------------------------------
  11. //
  12. // This source file may be used and distributed without
  13. // restriction provided that this copyright statement is not
  14. // removed from the file and that any derivative work contains
  15. // the original copyright notice and the associated disclaimer.
  16. //
  17. // This source file is free software; you can redistribute it
  18. // and/or modify it under the terms of the GNU Lesser General
  19. // Public License as published by the Free Software Foundation;
  20. // either version 2.1 of the License, or (at your option) any
  21. // later version.
  22. //
  23. // This source is distributed in the hope that it will be
  24. // useful, but WITHOUT ANY WARRANTY; without even the implied
  25. // warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  26. // PURPOSE. See the GNU Lesser General Public License for more
  27. // details.
  28. //
  29. // You should have received a copy of the GNU Lesser General
  30. // Public License along with this source; if not, write to the
  31. // Free Software Foundation, Inc., 59 Temple Place, Suite 330,
  32. // Boston, MA 02111-1307 USA
  33. //-----------------------------------------------------------------
  34. //-----------------------------------------------------------------
  35. // Generated File
  36. //-----------------------------------------------------------------
  37. //-----------------------------------------------------------------
  38. // Definitions
  39. //-----------------------------------------------------------------
  40. // Tokens
  41. `define PID_OUT 8'hE1
  42. `define PID_IN 8'h69
  43. `define PID_SOF 8'hA5
  44. `define PID_SETUP 8'h2D
  45. // Data
  46. `define PID_DATA0 8'hC3
  47. `define PID_DATA1 8'h4B
  48. `define PID_DATA2 8'h87
  49. `define PID_MDATA 8'h0F
  50. // Handshake
  51. `define PID_ACK 8'hD2
  52. `define PID_NAK 8'h5A
  53. `define PID_STALL 8'h1E
  54. `define PID_NYET 8'h96
  55. // Special
  56. `define PID_PRE 8'h3C
  57. `define PID_ERR 8'h3C
  58. `define PID_SPLIT 8'h78
  59. `define PID_PING 8'hB4