ESPHome 2026.11.0b6
Loading...
Searching...
No Matches
esphome::zephyr::CdcAcm Class Referencefinal

Forwards the bit rate a USB host sets on a CDC ACM port to the main loop. More...

#include <cdc_acm.h>

Public Member Functions

template<typename F >
void add_on_rate_callback (F &&callback)
 Call from setup().
 

Protected Member Functions

void set_driver_callbacks_ ()
 

Static Protected Member Functions

static void cdc_dte_rate_callback_ (const device *device, uint32_t rate)
 

Protected Attributes

CallbackManager< void(const device *, uint32_t)> rate_callbacks_
 

Detailed Description

Forwards the bit rate a USB host sets on a CDC ACM port to the main loop.

Definition at line 10 of file cdc_acm.h.

Member Function Documentation

◆ add_on_rate_callback()

template<typename F >
void esphome::zephyr::CdcAcm::add_on_rate_callback ( F && callback)
inline

Call from setup().

Rates reach the callbacks on a scheduler tick, which normally comes after every subscriber's setup(); a component that holds setup back with can_proceed() runs the scheduler earlier.

Definition at line 14 of file cdc_acm.h.

◆ cdc_dte_rate_callback_()

void esphome::zephyr::CdcAcm::cdc_dte_rate_callback_ ( const device * device,
uint32_t rate )
staticprotected

Definition at line 24 of file cdc_acm.cpp.

◆ set_driver_callbacks_()

void esphome::zephyr::CdcAcm::set_driver_callbacks_ ( )
protected

Definition at line 14 of file cdc_acm.cpp.

Field Documentation

◆ rate_callbacks_

CallbackManager<void(const device *, uint32_t)> esphome::zephyr::CdcAcm::rate_callbacks_
protected

Definition at line 23 of file cdc_acm.h.


The documentation for this class was generated from the following files: