3#if defined(USE_ZEPHYR_CDC_ACM_RATE_CALLBACK)
6#include <zephyr/device.h>
Passes the bit rate a USB host sets on a CDC ACM port from the USB driver's thread to the main loop.
static CallbackManager< void(const device *, uint32_t)> rate_callbacks
static void post_rate(const device *dev)
static void add_on_rate_callback(F &&callback)
Call from setup().
static void rate_changed(const device *dev)
Called by the USB driver, from its own thread, after the host set the bit rate of dev.