Add getopt control of RX or TX mode.
Reorganization of code to support making usb_test a useful utility...