VSF Documented
vsf_usb_CDCACM.h
Go to the documentation of this file.
1/*****************************************************************************
2 * Copyright(C)2009-2022 by VSF Team *
3 * *
4 * Licensed under the Apache License, Version 2.0 (the "License"); *
5 * you may not use this file except in compliance with the License. *
6 * You may obtain a copy of the License at *
7 * *
8 * http://www.apache.org/licenses/LICENSE-2.0 *
9 * *
10 * Unless required by applicable law or agreed to in writing, software *
11 * distributed under the License is distributed on an "AS IS" BASIS, *
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
13 * See the License for the specific language governing permissions and *
14 * limitations under the License. *
15 * *
16 ****************************************************************************/
17
18#ifndef __VSF_USB_CDCACM_H__
19#define __VSF_USB_CDCACM_H__
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
25/*============================ INCLUDES ======================================*/
26/*============================ MACROS ========================================*/
27/*============================ MACROFIED FUNCTIONS ===========================*/
28/*============================ TYPES =========================================*/
29
37
38#define USB_CDCACM_CONTROLLINE_RTS 0x02
39#define USB_CDCACM_CONTROLLINE_DTR 0x01
40#define USB_CDCACM_CONTROLLINE_MASK 0x03
41
42typedef enum usb_cdcacm_req_t {
48
49/*============================ GLOBAL VARIABLES ==============================*/
50/*============================ PROTOTYPES ====================================*/
51
52#ifdef __cplusplus
53}
54#endif
55
56#endif // __VSF_USB_CDCACM_H__
unsigned uint32_t
Definition stdint.h:9
unsigned char uint8_t
Definition stdint.h:5
Definition vsf_usb_CDCACM.h:31
uint8_t datalen
Definition vsf_usb_CDCACM.h:35
uint8_t parity
Definition vsf_usb_CDCACM.h:34
uint32_t bitrate
Definition vsf_usb_CDCACM.h:32
uint8_t stop
Definition vsf_usb_CDCACM.h:33
usb_cdcacm_req_t
Definition vsf_usb_CDCACM.h:42
@ USB_CDCACM_REQ_SET_LINE_CODING
Definition vsf_usb_CDCACM.h:43
@ USB_CDCACM_REQ_GET_LINE_CODING
Definition vsf_usb_CDCACM.h:44
@ USB_CDCACM_REQ_SEND_BREAK
Definition vsf_usb_CDCACM.h:46
@ USB_CDCACM_REQ_SET_CONTROL_LINE_STATE
Definition vsf_usb_CDCACM.h:45
struct usb_cdcacm_line_coding_t VSF_CAL_PACKED