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
cdc.cpp File Reference

USB CDC serial implementation over TinyUSB. More...

Detailed Description

USB CDC serial implementation over TinyUSB.

Wraps TinyUSB CDC functions with SBL API.

Definition in file cdc.cpp.

#include "cdc.hpp"
#include "tusb.h"
#include <cstring>

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 tud_cdc_line_state_cb (uint8_t itf, bool dtr, bool rts)
 

Variables

static bool last_ready = false
 
static volatile bool dtr_rose = false
 

Function Documentation

◆ tud_cdc_line_state_cb()

void tud_cdc_line_state_cb ( uint8_t  itf,
bool  dtr,
bool  rts 
)

Definition at line 17 of file cdc.cpp.

Variable Documentation

◆ last_ready

bool last_ready = false
static

Definition at line 14 of file cdc.cpp.

◆ dtr_rose

volatile bool dtr_rose = false
static

Definition at line 15 of file cdc.cpp.