VSF Documented
usb_priv.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 __OSA_HAL_DRIVER_GIGADEVICE_GD32H7XX_USB_PRIV_H__
19#define __OSA_HAL_DRIVER_GIGADEVICE_GD32H7XX_USB_PRIV_H__
20
21/*============================ INCLUDES ======================================*/
22
23#include "hal/vsf_hal.h"
24
25#if VSF_USE_USB_DEVICE == ENABLED || VSF_USE_USB_HOST == ENABLED
26
27// for dedicated vk_dwcotg_hw_info_t
29
30/*============================ MACROS ========================================*/
31/*============================ MACROFIED FUNCTIONS ===========================*/
32/*============================ TYPES =========================================*/
33
34typedef struct vsf_hw_usb_const_t {
37 void *reg;
38
39 implement(vk_dwcotg_hw_info_t)
41
42typedef struct vsf_hw_usb_t {
43 bool is_host;
44 struct {
46 void *param;
50
51/*============================ GLOBAL VARIABLES ==============================*/
52/*============================ INCLUDES ======================================*/
53/*============================ PROTOTYPES ====================================*/
54
55#endif
56#endif
57/* EOF */
enum IRQn IRQn_Type
unsigned char uint8_t
Definition stdint.h:5
Definition vsf_dwcotg_hw.h:38
Definition usb.h:44
IRQn_Type irq
Definition usb.h:47
uint8_t ep_num
Definition usb_priv.h:35
void * reg
Definition usb.h:48
Definition usb.h:53
usb_ip_irqhandler_t irqhandler
Definition usb.h:56
struct vsf_hw_usb_t::@498 callback
void * param
Definition usb.h:57
bool is_host
Definition usb.h:54
struct vsf_hw_usb_t vsf_hw_usb_t
struct vsf_hw_usb_const_t vsf_hw_usb_const_t
void(* usb_ip_irqhandler_t)(void *param)
Definition vsf_template_usb.h:308