VSF Documented
vsf_disp_usbd_uvc.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#ifndef __VSF_DISP_USBD_UVC_H__
18#define __VSF_DISP_USBD_UVC_H__
19
20/*============================ INCLUDES ======================================*/
21
23
24#if VSF_USE_UI == ENABLED && VSF_DISP_USE_USBD_UVC == ENABLED
25
26#include "kernel/vsf_kernel.h"
28
29#if defined(__VSF_DISP_USBD_UVC_CLASS_IMPLEMENT)
30# undef __VSF_DISP_USBD_UVC_CLASS_IMPLEMENT
31# define __VSF_CLASS_IMPLEMENT__
32#endif
33
34#include "utilities/ooc_class.h"
35
36#ifdef __cplusplus
37extern "C" {
38#endif
39
40/*============================ MACROS ========================================*/
41
42#if VSF_USBD_CFG_USE_EDA != ENABLED
43# error "need VSF_USBD_CFG_USE_EDA"
44#endif
45
46#if VSF_USE_USB_DEVICE != ENABLED || VSF_USBD_USE_UVC != ENABLED
47# error "need VSF_USE_USB_DEVICE and VSF_USBD_USE_UVC"
48#endif
49
50/*============================ MACROFIED FUNCTIONS ===========================*/
51/*============================ TYPES =========================================*/
52
54 public_member(
55 implement(vk_disp_t)
56 )
57
58 public_member(
59 vk_usbd_uvc_t *uvc;
60 uint16_t frame_cnt;
61 )
62 private_member(
63 vsf_eda_t eda;
64 uint8_t *cur_buffer;
65 uint8_t header[2];
66 uint16_t line_cnt;
67 )
68};
69
70/*============================ GLOBAL VARIABLES ==============================*/
71
73
74/*============================ PROTOTYPES ====================================*/
75
76#ifdef __cplusplus
77}
78#endif
79
80#endif // VSF_USE_UI
81#endif // __VSF_DISP_USBD_UVC_H__
Definition vsf_disp.h:149
Definition vsf_disp.h:173
Definition vsf_disp_usbd_uvc.h:53
Definition vsf_usbd_UVC.h:73
Definition vsf_eda.h:766
#define vsf_class(__name)
Definition ooc_class.h:48
unsigned short uint16_t
Definition stdint.h:7
unsigned char uint8_t
Definition stdint.h:5
const vk_disp_drv_t vk_disp_drv_usbd_uvc
Definition vsf_disp_usbd_uvc.c:48