TODO (522B)
1 BUGS/FEATURES 2 - better reset/recovery of ftdi/mpsse on start 3 (if the chip has data in buffers, etc) 4 - allow idlestate to be the scanstate 5 - allow more (all?) paths between states 6 7 OPTIMIZATIONS 8 - background reader thread or async read 9 - queue multi-packet reads 10 - double-buffer cmd buffer to avoid blocking after tx 11 - prefer bitcommand over bytecommand for single-byte ios 12 - merge the tms motion an end of xr_scan with that of the next scan or goto 13 - maybe hold the last bit from the scan and assemble against that...