greatscottgadgets / cynthion

USB test instrument
https://greatscottgadgets.com/cynthion/
BSD 3-Clause "New" or "Revised" License
42 stars 11 forks source link

Add self-test device on AUX port to analyzer gateware #98

Closed martinling closed 1 month ago

martinling commented 1 month ago

This PR adds a self-test device to the analyzer gateware, which appears on the AUX port.

By default, the self-test device is enabled and will enumerate at high speed. It can be disconnected, and reconnected at other speeds, via control requests to the analyzer.

The device provides a single interrupt IN endpoint, which outputs bytes from a counter.

This feature supports hardware-in-the-loop testing of the analyzer gateware and host capture software.