WB32F10x Standard Peripherals Firmware Library

usbd_user_cdc.h
1 /* Define to prevent recursive inclusion -------------------------------------*/
2 #ifndef __USBD_USER_CDC_H
3 #define __USBD_USER_CDC_H
4
5 #ifdef __cplusplus
6 extern "C" {
7 #endif
8
9 /* Includes ------------------------------------------------------------------*/
10 #include <stdint.h>
11 #include <stdbool.h>
12 #include "usb_cdc_def.h"
13
14 /* Exported types ------------------------------------------------------------*/
15 /* Exported constants --------------------------------------------------------*/
16 #define USBD_CDC_ACM_CIF_NUM 0
17 #define USBD_CDC_ACM_DIF_NUM 1
18
19 /* Exported macro ------------------------------------------------------------*/
20 /* Exported functions --------------------------------------------------------*/
21
22 bool USBD_User_CDC_SetLineCoding(const USB_CDC_LINE_CODING *line_coding);
23 bool USBD_User_CDC_GetLineCoding(USB_CDC_LINE_CODING *line_coding);
24 bool USBD_User_CDC_SetControlLineState(uint16_t control_signal_bitmap);
25 bool USBD_User_CDC_SendBreak(uint16_t duration_of_break);
26
27 #ifdef __cplusplus
28 }
29 #endif
30
31 #endif /* __USBD_USER_CDC_H */