|
Sound Byte Libs 1ee2ca6
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
|
USB CDC (Virtual COM Port) interface. More...
#include <cstddef>#include <cstdint>Go to the source code of this file.
Classes | |
| class | sbl::usb::CdcSerial |
| USB CDC (Virtual COM Port) interface. More... | |
| struct | sbl::usb::CdcOutput |
| Logger output sink for sbl::log integration. More... | |
Namespaces | |
| namespace | sbl |
| Root namespace for all Sound Byte Libs functionality. | |
| namespace | sbl::usb |
USB CDC (Virtual COM Port) interface.
Provides serial communication over USB CDC ACM class. Shows up as a COM port on the host - works with any terminal.
Usage: #include <sbl/usb/cdc.hpp>
sbl::usb::CdcSerial::puts("Hello USB!\n");
if (sbl::usb::CdcSerial::available()) { char c = sbl::usb::CdcSerial::read_byte(); }
For logging integration: using Logger = sbl::log::Logger<sbl::usb::CdcOutput, Timer>;
Definition in file cdc.hpp.