|
Sound Byte Libs 1ee2ca6
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
|
Classes | |
| struct | CdcOutput |
| Logger output sink for sbl::log integration. More... | |
| class | CdcSerial |
| USB CDC (Virtual COM Port) interface. More... | |
Functions | |
| void | init () |
| Initialize USB subsystem. | |
| void | task () |
| Process USB events. | |
| bool | ready () |
| Check if USB is enumerated and ready. | |
| void sbl::usb::init | ( | ) |
Initialize USB subsystem.
Sets up USB peripheral clocks, pins, and initializes TinyUSB. Call once at startup after sbl::driver::init().
| bool sbl::usb::ready | ( | ) |
Check if USB is enumerated and ready.
| void sbl::usb::task | ( | ) |
Process USB events.
Must be called periodically (from main loop or timer) to handle USB enumeration, data transfer, and protocol handling.
On RP2xxx: Can also be IRQ-driven, but task() still needs calling. On STM32: Typically polled from main loop.