VSF Documented
vsf_dwcotg_hw.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_DWCOTG_HW_H__
19#define __VSF_DWCOTG_HW_H__
20
21/*============================ INCLUDES ======================================*/
22
24
25#if (VSF_USE_USB_DEVICE == ENABLED && VSF_USBD_USE_DCD_DWCOTG == ENABLED) \
26 || (VSF_USE_USB_HOST == ENABLED && VSF_USBH_USE_HCD_DWCOTG == ENABLED)
27
28#include "./dwcotg_regs.h"
29
30#ifdef __cplusplus
31extern "C" {
32#endif
33
34/*============================ MACROS ========================================*/
35/*============================ MACROFIED FUNCTIONS ===========================*/
36/*============================ TYPES =========================================*/
37
38typedef struct vk_dwcotg_hw_info_t {
40 union {
41 struct {
47 };
49 };
51
52/*============================ GLOBAL VARIABLES ==============================*/
53/*============================ INCLUDES ======================================*/
54/*============================ PROTOTYPES ====================================*/
55
56#ifdef __cplusplus
57}
58#endif
59
60#endif
61#endif
62/* EOF */
unsigned short uint16_t
Definition stdint.h:7
unsigned char uint8_t
Definition stdint.h:5
Definition vsf_dwcotg_hw.h:38
uint16_t buffer_word_size
Definition vsf_dwcotg_hw.h:39
uint8_t speed
Definition vsf_dwcotg_hw.h:42
uint8_t ulpi_en
Definition vsf_dwcotg_hw.h:43
uint8_t utmi_en
Definition vsf_dwcotg_hw.h:44
uint8_t vbus_en
Definition vsf_dwcotg_hw.h:45
uint8_t feature
Definition vsf_dwcotg_hw.h:48
uint8_t dma_en
Definition vsf_dwcotg_hw.h:46