sgdk
|
Local Symmetric Data-link. Implements an extremely simple protocol to link two full-duplex devices, multiplexing the data link. More...
Local Symmetric Data-link. Implements an extremely simple protocol to link two full-duplex devices, multiplexing the data link.
The multiplexing facility allows having up to LSD_MAX_CH simultaneous channels on the serial link.
The module has synchronous functions to send/receive data (easy to use, but due to polling hang the console until transfer is complete) and their asyncronous counterparts. The asynchronous functions return immediately, but require calling frequently lsd_process() to actually send/receive data. Once the asynchronous functions complete sending/receiving data, the specified callback is run.