You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

keywords.txt 2.3KB

7 vuotta sitten
7 vuotta sitten
7 vuotta sitten
USBSerial_BigBuffer - T4.x (multi devices) This delta originated to do the work similar to what was done for the MIDI code base and support two versions of the object. All of the code was renamed to a new base class USBSerialBase which has everything, except the main buffer. Two sub-classes were made that the only difference is the size of the buffer to hold all of the USB RX and TX information. This started off to try to support an FT2232H device which transers 512 bytes at a time instead of what most of our devices were transfering which is 64 bytes. While doing this, I found that we have a similar issue with the T4.x boards which now transfer 512 bytes as well and our Serial object would not handle it. So there are two sublasses: ``` USBSerial - for those up to 64 byte transfers USBSerial_BigBuffer - for up to 512 bytes ``` Note: by default the biguffer version will only handle those devices > 64 bytes, but you can pass in an optional parameter of the minimum size, so doing something like: ``` USBSerial_BigBuffer userial(myusb, 1); ``` Will handle all up to 512. Also the FTDI2232H supports two USB to Serial objects, and our code was setup that in most cases including when we put in VID:PID pair in our table, the code would claim would claim the object at device level so only one USB Serial adapter. So changed table to support saying for this VID:PID claim at interface level. It now works, but not sure for the device I have as it is a USB to Serial and JTAG and not sure how to test 2nd one. But while doing this created a test sketch for Multiple Host USB Serial objects and the two are claimed by this. I also created a new version of the Teensy USBToSerial example sketch that if you configure USB type to Dual Serial or Triple Serial will output SerialUSB1 to Serial2 and SerialUSB2 to Serial3, which works, and then tried T4 configured for Dual plugged into T4.1 with above sketch and could talk to both USB Serial adapters. The Claim code was rearranged a lot, so hopefully did not break anything. But tested with T4 as mentioned, both Single and Dual Serial T3.2 with Single Serial, plus: Serial, Joystick, Keyboard... FTDI - USB to Serial adapter (Sparkfun) CP2104 - Adafruit PL2303 - some clones ... So hopefully most things are still working
4 vuotta sitten
7 vuotta sitten
7 vuotta sitten
7 vuotta sitten
7 vuotta sitten
7 vuotta sitten
7 vuotta sitten
7 vuotta sitten
7 vuotta sitten
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. # Objects
  2. USBHost KEYWORD1
  3. USBHub KEYWORD1
  4. USBHIDParser KEYWORD1
  5. KeyboardController KEYWORD1
  6. MouseController KEYWORD1
  7. DigitizerController KEYWORD1
  8. MIDIDevice KEYWORD1
  9. MIDIDevice_BigBuffer KEYWORD1
  10. USBSerial KEYWORD1
  11. USBSerial_BigBuffer KEYWORD1
  12. USBSerialBase KEYWORD1
  13. AntPlus KEYWORD1
  14. JoystickController KEYWORD1
  15. RawHIDController KEYWORD1
  16. BluetoothController KEYWORD1
  17. # Common Functions
  18. Task KEYWORD2
  19. idVendor KEYWORD2
  20. idProduct KEYWORD2
  21. manufacturer KEYWORD2
  22. product KEYWORD2
  23. serialNumber KEYWORD2
  24. # KeyboardController
  25. getKey KEYWORD2
  26. getModifiers KEYWORD2
  27. getOemKey KEYWORD2
  28. attachPress KEYWORD2
  29. attachRelease KEYWORD2
  30. attachExtrasPress KEYWORD2
  31. attachExtrasRelease KEYWORD2
  32. LEDS KEYWORD2
  33. updateLEDS KEYWORD2
  34. numLock KEYWORD2
  35. capsLock KEYWORD2
  36. scrollLock KEYWORD2
  37. forceBootProtocol KEYWORD2
  38. # MIDIDevice
  39. getType KEYWORD2
  40. getChannel KEYWORD2
  41. getData1 KEYWORD2
  42. getData2 KEYWORD2
  43. setHandleNoteOff KEYWORD2
  44. setHandleNoteOn KEYWORD2
  45. setHandleVelocityChange KEYWORD2
  46. setHandleControlChange KEYWORD2
  47. setHandleProgramChange KEYWORD2
  48. setHandleAfterTouch KEYWORD2
  49. setHandlePitchChange KEYWORD2
  50. setHandleSysEx KEYWORD2
  51. setHandleRealTimeSystem KEYWORD2
  52. setHandleTimeCodeQuarterFrame KEYWORD2
  53. sendNoteOff KEYWORD2
  54. sendNoteOn KEYWORD2
  55. sendPolyPressure KEYWORD2
  56. sendControlChange KEYWORD2
  57. sendProgramChange KEYWORD2
  58. sendAfterTouch KEYWORD2
  59. sendPitchBend KEYWORD2
  60. sendSysEx KEYWORD2
  61. sendRealTime KEYWORD2
  62. sendTimeCodeQuarterFrame KEYWORD2
  63. sendTimeCodeQuarterFrame KEYWORD2
  64. SYSEX_MAX_LEN LITERAL1 KEYWORD2
  65. # AntPlus
  66. onStatusChange KEYWORD2
  67. onDeviceID KEYWORD2
  68. onHeartRateMonitor KEYWORD2
  69. onSpeedCadence KEYWORD2
  70. onSpeed KEYWORD2
  71. onCadence KEYWORD2
  72. setWheelCircumference KEYWORD2
  73. # MouseController
  74. mouseDataClear KEYWORD2
  75. getButtons KEYWORD2
  76. getMouseX KEYWORD2
  77. getMouseY KEYWORD2
  78. getWheel KEYWORD2
  79. getWheelH KEYWORD2
  80. # JoystickController
  81. joystickDataClear KEYWORD2
  82. getAxis KEYWORD2
  83. axisMask KEYWORD2
  84. axisChangedMask KEYWORD2
  85. axisChangeNotifyMask KEYWORD2
  86. userAxisMask KEYWORD2
  87. setRumbleOn KEYWORD2
  88. setLEDs KEYWORD2
  89. joystickType KEYWORD2
  90. PS3 LITERAL1
  91. PS3_MOTION LITERAL1
  92. PS4 LITERAL1
  93. XBOXONE LITERAL1
  94. XBOX360 LITERAL1
  95. SWITCH LITERAL1
  96. # USBSerial
  97. USBHOST_SERIAL_7E1 LITERAL1
  98. USBHOST_SERIAL_7O1 LITERAL1
  99. USBHOST_SERIAL_8N1 LITERAL1
  100. USBHOST_SERIAL_8N2 LITERAL1
  101. USBHOST_SERIAL_8E1 LITERAL1
  102. USBHOST_SERIAL_8O1 LITERAL1
  103. # RAWHid
  104. usage KEYWORD2
  105. attachReceive KEYWORD2
  106. sendPacket KEYWORD2