Files
CherryUSB/class/cdc/usbd_cdc.h

30 lines
708 B
C
Raw Normal View History

/*
* Copyright (c) 2022, sakumisu
2021-07-10 18:31:58 +08:00
*
* SPDX-License-Identifier: Apache-2.0
2021-07-10 18:31:58 +08:00
*/
#ifndef USBD_CDC_H
#define USBD_CDC_H
2021-07-10 18:31:58 +08:00
2021-11-26 23:41:59 +08:00
#include "usb_cdc.h"
2021-07-10 18:31:58 +08:00
#ifdef __cplusplus
extern "C" {
#endif
2022-10-20 21:22:08 +08:00
/* Init cdc acm interface driver */
struct usbd_interface *usbd_cdc_acm_init_intf(struct usbd_interface *intf);
2021-07-10 18:31:58 +08:00
/* Setup request command callback api */
2022-08-19 23:26:36 +08:00
void usbd_cdc_acm_set_line_coding(uint8_t intf, struct cdc_line_coding *line_coding);
void usbd_cdc_acm_get_line_coding(uint8_t intf, struct cdc_line_coding *line_coding);
2022-06-28 20:37:33 +08:00
void usbd_cdc_acm_set_dtr(uint8_t intf, bool dtr);
void usbd_cdc_acm_set_rts(uint8_t intf, bool rts);
2023-06-21 19:39:48 +08:00
void usbd_cdc_acm_send_break(uint8_t intf);
2021-07-10 18:31:58 +08:00
#ifdef __cplusplus
}
#endif
#endif /* USBD_CDC_H */