29 lines
643 B
C
29 lines
643 B
C
/*
|
|
* Copyright (c) 2022, sakumisu
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
#ifndef USBD_CDC_H
|
|
#define USBD_CDC_H
|
|
|
|
#include "usb_cdc.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/* Alloc cdc acm interface driver */
|
|
struct usbd_interface *usbd_cdc_acm_alloc_intf(void);
|
|
|
|
/* Setup request command callback api */
|
|
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);
|
|
void usbd_cdc_acm_set_dtr(uint8_t intf, bool dtr);
|
|
void usbd_cdc_acm_set_rts(uint8_t intf, bool rts);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* USBD_CDC_H */
|