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
usb.hpp File Reference

USB subsystem control. More...

Detailed Description

USB subsystem control.

Provides initialization and task processing for USB functionality. The actual implementation is MCU-specific and lives in sbl-hardware.

Usage: #include <sbl/usb/usb.hpp>

int main() { sbl::driver::init(); sbl::usb::init();

while (true) { sbl::usb::task(); // Process USB events // ... application code ... } }

Definition in file usb.hpp.

#include <cstdint>

Go to the source code of this file.

Namespaces

namespace  sbl
 Root namespace for all Sound Byte Libs code.
 
namespace  sbl::usb
 USB device classes.
 

Functions

void sbl::usb::init ()
 Initialize USB subsystem.
 
void sbl::usb::task ()
 Process USB events.
 
bool sbl::usb::ready ()
 Check if USB is enumerated and ready.