Sound Byte Libs 1ee2ca6
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
Loading...
Searching...
No Matches
Namespaces | Functions
usb.hpp File Reference

USB subsystem control. More...

#include <cstdint>
Include dependency graph for usb.hpp:

Go to the source code of this file.

Namespaces

namespace  sbl
 Root namespace for all Sound Byte Libs functionality.
 
namespace  sbl::usb
 

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.
 

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.