Sound Byte Libs 0.5.1-121-g3358a44
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
Loading...
Searching...
No Matches
cdc.hpp File Reference

USB CDC (Virtual COM Port) interface. More...

Detailed Description

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.

#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 code.
 
namespace  sbl::usb
 USB device classes.