Sound Byte Libs 0.5.1-340-gab5b79a
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();
while (true) {
sbl::usb::task(); // Process USB events
// ... application code ...
}
}
void init()
Initialize USB subsystem.
void task()
Process USB events.
USB subsystem control.

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.