VSF Documented
ohci.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 __HAL_DRIVER_NUVOTON_M480_OHCI_H__
19#define __HAL_DRIVER_NUVOTON_M480_OHCI_H__
20
21/*============================ INCLUDES ======================================*/
22
23#include "hal/vsf_hal_cfg.h"
24#include "../../../__device.h"
25
27#include "../../io/io.h"
28#include "../../pm/pm.h"
29
31
32/*============================ MACROS ========================================*/
33/*============================ MACROFIED FUNCTIONS ===========================*/
34/*============================ TYPES =========================================*/
35
36typedef struct m480_ohci_const_t {
41
42 USBH_T *reg;
43 vsf_io_cfg_t dp;
44 vsf_io_cfg_t dm;
46
47typedef struct m480_ohci_t {
48 struct {
49 void (*irqhandler)(void *param);
50 void *param;
52
55
56/*============================ GLOBAL VARIABLES ==============================*/
57/*============================ INCLUDES ======================================*/
58/*============================ PROTOTYPES ====================================*/
59
61extern void m480_ohci_get_info(m480_ohci_t *hc, usb_hc_ip_info_t *info);
62extern void m480_ohci_irq(m480_ohci_t *hc);
63
64#endif
65/* EOF */
vsf_err_t
Definition __type.h:42
vsf_err_t m480_ohci_init(m480_ohci_t *hc, usb_hc_ip_cfg_t *cfg)
Definition ohci.c:31
void m480_ohci_irq(m480_ohci_t *hc)
Definition ohci.c:80
void m480_ohci_get_info(m480_ohci_t *hc, usb_hc_ip_info_t *info)
Definition ohci.c:73
m480_usbphy_t
Definition __common.h:39
enum IRQn IRQn_Type
include the infrastructure
Definition ohci.h:36
USBH_T * reg
Definition ohci.h:42
IRQn_Type irq
Definition ohci.h:38
vsf_pm_sclk_no_t sclk
Definition ohci.h:39
m480_usbphy_t phy
Definition ohci.h:37
vsf_io_cfg_t dm
Definition ohci.h:44
vsf_pm_pclk_no_t pclk
Definition ohci.h:40
vsf_io_cfg_t dp
Definition ohci.h:43
Definition ohci.h:47
const m480_ohci_const_t * param
Definition ohci.h:53
void(* irqhandler)(void *param)
Definition ohci.h:49
void * param
Definition ohci.h:50
struct m480_ohci_t::@608 callback
Definition vsf_template_usb.h:446
vsf_pm_pclk_no_t
Definition vsf_template_pm.h:304
vsf_pm_sclk_no_t
Definition vsf_template_pm.h:242
usb_hc_ip_cfg_t
Definition vsf_template_usb.h:441