Zephyr API Documentation  3.7.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
cdc_acm.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2020 Google LLC
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
12#ifndef ZEPHYR_INCLUDE_DRIVERS_UART_CDC_ACM_H_
13#define ZEPHYR_INCLUDE_DRIVERS_UART_CDC_ACM_H_
14
15#include <errno.h>
16
17#include <zephyr/device.h>
18
19#ifdef __cplusplus
20extern "C" {
21#endif /* __cplusplus */
22
31typedef void (*cdc_dte_rate_callback_t)(const struct device *dev,
32 uint32_t rate);
33
49
50#ifdef __cplusplus
51}
52#endif /* __cplusplus */
53
54#endif /* ZEPHYR_INCLUDE_DRIVERS_UART_CDC_ACM_H_ */
int cdc_acm_dte_rate_callback_set(const struct device *dev, cdc_dte_rate_callback_t callback)
Set the callback for dwDTERate SetLineCoding requests.
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.
Definition: cdc_acm.h:31
System error numbers.
__UINT32_TYPE__ uint32_t
Definition: stdint.h:90
Runtime device structure (in ROM) per driver instance.
Definition: device.h:403