Zephyr API Documentation 4.0.0
A Scalable Open Source RTOS
|
Public APIs for the CDC ACM class driver. More...
Go to the source code of this file.
Typedefs | |
typedef void(* | cdc_dte_rate_callback_t) (const struct device *dev, uint32_t rate) |
A function that is called when the USB host changes the baud rate. | |
Functions | |
int | cdc_acm_dte_rate_callback_set (const struct device *dev, cdc_dte_rate_callback_t callback) |
Set the callback for dwDTERate SetLineCoding requests. | |
Public APIs for the CDC ACM class driver.
A function that is called when the USB host changes the baud rate.
dev | Device struct for the CDC ACM device. |
rate | New USB baud rate |
int cdc_acm_dte_rate_callback_set | ( | const struct device * | dev, |
cdc_dte_rate_callback_t | callback ) |
Set the callback for dwDTERate SetLineCoding requests.
The callback is invoked when the USB host changes the baud rate.
dev | CDC ACM device structure. |
callback | Event handler. |