This module initializes the receive and transmit routines of the USB interface. Currently only ZIMO protocols are supported via USB, but an extension is conceivable.
Initialization takes place in init(). This function creates a CDC device on the TinyUSB stack, a receive- and transmit buffer as well as receive- and transmit tasks.
The receive task scans the CDC character stream for commands. Those commands could either be general ones (e.g. PING\r
) or protocol entry strings. When a protocol entry string is detected the corrsponding task is created and the receive task destroys itself.
Currently supported protocols are:
The transmit task receives data from tx_stream_buffer and transmit it to the CDC device queue.