2022-08-18 21:41:19 +08:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2022, sakumisu
|
2021-07-10 18:31:58 +08:00
|
|
|
*
|
2022-08-18 21:41:19 +08:00
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
2021-07-10 18:31:58 +08:00
|
|
|
*/
|
2022-08-18 21:41:19 +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-07-28 21:25:29 +08:00
|
|
|
/* Register api */
|
2022-01-30 21:13:58 +08:00
|
|
|
void usbd_cdc_add_acm_interface(usbd_class_t *devclass, usbd_interface_t *intf);
|
2021-07-10 18:31:58 +08:00
|
|
|
|
2022-07-28 21:25:29 +08:00
|
|
|
/* Setup request command callback api */
|
2022-06-28 20:37:33 +08:00
|
|
|
void usbd_cdc_acm_set_line_coding(uint8_t intf, uint32_t baudrate, uint8_t databits, uint8_t parity, uint8_t stopbits);
|
|
|
|
|
void usbd_cdc_acm_set_dtr(uint8_t intf, bool dtr);
|
|
|
|
|
void usbd_cdc_acm_set_rts(uint8_t intf, bool rts);
|
2021-07-10 18:31:58 +08:00
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
|
2022-08-18 21:41:19 +08:00
|
|
|
#endif /* USBD_CDC_H */
|