Firmware  0.4.1
Loading...
Searching...
No Matches
USB

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

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.

Receive task

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:

Transmit task

The transmit task receives data from tx_stream_buffer and transmit it to the CDC device queue.

Previous Next
UDP Middlewares