VSF Documented
vsf_hal_distbus_usbh.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_HAL_DISTBUS_USBH_H__
19#define __VSF_HAL_DISTBUS_USBH_H__
20
21/*============================ INCLUDES ======================================*/
22
24#include "hal/vsf_hal_cfg.h"
25
26#if VSF_USE_USB_HOST == ENABLED && VSF_HAL_USE_USBH == ENABLED && VSF_HAL_DISTBUS_USE_USBH == ENABLED
27
28#if defined(__VSF_HAL_DISTBUS_USBH_CLASS_IMPLEMENT)
29# define __VSF_CLASS_IMPLEMENT__
30#elif defined(__VSF_HAL_DISTBUS_USBH_CLASS_INHERIT__)
31# define __VSF_CLASS_INHERIT__
32#endif
33
34#include "utilities/ooc_class.h"
35
36#ifdef __cplusplus
37extern "C" {
38#endif
39
40/*============================ MACROS ========================================*/
41
42#ifndef VSF_HAL_DISTBUS_USBH_CFG_MULTI_CLASS
43# define VSF_HAL_DISTBUS_USBH_CFG_MULTI_CLASS VSF_USBH_CFG_MULTI_CLASS
44#endif
45
46/*============================ MACROFIED FUNCTIONS ===========================*/
47/*============================ TYPES =========================================*/
48
49#if defined(__VSF_HAL_DISTBUS_USBH_CLASS_IMPLEMENT) || defined(__VSF_HAL_DISTBUS_USBH_CLASS_INHERIT__)
50enum {
51 VSF_HAL_DISTBUS_USBH_CMD_ADDR_RANGE,
52};
53#endif
54
56#if VSF_HAL_DISTBUS_USBH_CFG_MULTI_CLASS == ENABLED
57 public_member(
58 implement(vsf_usbh_t)
59 )
60#endif
61 protected_member(
63 )
64 private_member(
65 vsf_distbus_t *distbus;
66 )
67};
68
69/*============================ GLOBAL VARIABLES ==============================*/
70/*============================ INCLUDES ======================================*/
71/*============================ PROTOTYPES ====================================*/
72
74
75#ifdef __cplusplus
76}
77#endif
78
79#undef __VSF_HAL_DISTBUS_USBH_CLASS_IMPLEMENT
80#undef __VSF_HAL_DISTBUS_USBH_CLASS_INHERIT__
81
82#endif
83#endif
84/* EOF */
85
Definition vsf_distbus.h:86
Definition vsf_distbus.h:119
Definition vsf_hal_distbus_usbh.h:55
#define vsf_class(__name)
Definition ooc_class.h:48
unsigned uint32_t
Definition stdint.h:9
uint32_t vsf_hal_distbus_usbh_register_service(vsf_distbus_t *distbus, vsf_hal_distbus_usbh_t *usbh, void *info, uint32_t infolen)
Definition vsf_hal_distbus_usbh.c:64