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
cdc.cpp File Reference
#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 s_last_ready = false
 
static volatile bool s_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 16 of file cdc.cpp.

References s_dtr_rose.

Variable Documentation

◆ s_last_ready

bool s_last_ready = false
static

Definition at line 13 of file cdc.cpp.

Referenced by sbl::usb::CdcSerial::just_connected().

◆ s_dtr_rose

volatile bool s_dtr_rose = false
static

Definition at line 14 of file cdc.cpp.

Referenced by sbl::usb::CdcSerial::just_connected(), and tud_cdc_line_state_cb().