18#ifndef __VSF_USBD_CDC_H__
19#define __VSF_USBD_CDC_H__
25#if VSF_USE_USB_DEVICE == ENABLED && VSF_USBD_USE_CDC == ENABLED
29#if defined(__VSF_USBD_CDC_CLASS_IMPLEMENT)
30# undef __VSF_USBD_CDC_CLASS_IMPLEMENT
31# define __VSF_CLASS_IMPLEMENT__
32#elif defined(__VSF_USBD_CDC_CLASS_INHERIT__)
33# undef __VSF_USBD_CDC_CLASS_INHERIT__
34# define __VSF_CLASS_INHERIT__
44#if VSF_USBD_CFG_STREAM_EN != ENABLED
45# error "CDC need VSF_USBD_CFG_STREAM_EN!!!"
48#define USB_CDC_IFS_NUM 2
83#if VSF_USE_SIMPLE_STREAM == ENABLED
86 vk_usbd_ep_stream_t tx;
87 vk_usbd_ep_stream_t rx;
88#elif VSF_USE_STREAM == ENABLED
89 implement (vk_usbd_ep_stream_t);
vsf_err_t
Definition __type.h:42
Definition vsf_usbd_CDC.h:74
unsigned int uint32_t
Definition lvgl.h:43
unsigned char uint8_t
Definition lvgl.h:40
#define vsf_dcl_class
Definition ooc_class.h:46
#define vsf_class(__name)
Definition ooc_class.h:48
Definition vsf_usbd_CDC.h:65
vsf_err_t(* on_resp)(vk_usbd_cdc_encapsulate_t *resp)
Definition vsf_usbd_CDC.h:70
uint32_t size
Definition vsf_usbd_CDC.h:67
vsf_err_t(* on_cmd)(vk_usbd_cdc_encapsulate_t *cmd)
Definition vsf_usbd_CDC.h:69
uint8_t * buffer
Definition vsf_usbd_CDC.h:66
Definition vsf_usbd_CDC.h:55
uint32_t ep_cfg
Definition vsf_usbd_CDC.h:61
uint8_t in
Definition vsf_usbd_CDC.h:59
uint8_t out
Definition vsf_usbd_CDC.h:58
uint8_t notify
Definition vsf_usbd_CDC.h:57
void vk_usbd_cdc_data_connect(vk_usbd_cdc_t *cdc)
const struct vk_usbd_class_op_t vk_usbd_cdc_control
const struct vk_usbd_class_op_t vk_usbd_cdc_data