XenevaOS
Loading...
Searching...
No Matches
usbstandardhub.h
Go to the documentation of this file.
1//
2// usbstandardhub.h
3//
4// USPi - An USB driver for Raspberry Pi written in C
5// Copyright (C) 2014-2018 R. Stange <rsta2@o2online.de>
6//
7// This program is free software: you can redistribute it and/or modify
8// it under the terms of the GNU General Public License as published by
9// the Free Software Foundation, either version 3 of the License, or
10// (at your option) any later version.
11//
12// This program is distributed in the hope that it will be useful,
13// but WITHOUT ANY WARRANTY; without even the implied warranty of
14// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15// GNU General Public License for more details.
16//
17// You should have received a copy of the GNU General Public License
18// along with this program. If not, see <http://www.gnu.org/licenses/>.
19//
20#ifndef _uspi_usbstandardhub_h
21#define _uspi_usbstandardhub_h
22
23#include "uspi/usb.h"
24#include "uspi/usbhub.h"
25#include "uspi/usbfunction.h"
27#include "uspi/string.h"
28#include "uspi/types.h"
29
30#ifdef __cplusplus
31extern "C" {
32#endif
33
45
46void USBStandardHub (TUSBStandardHub *pThis, TUSBFunction *pFunction);
48
50boolean USBStandardHubConfigure (TUSBFunction *pUSBFunction);
51
52#ifdef __cplusplus
53}
54#endif
55
56#endif
Definition usbdevice.h:48
Definition usbfunction.h:33
Definition usbhub.h:46
Definition usbhub.h:78
Definition usbstandardhub.h:35
TUSBFunction m_USBFunction
Definition usbstandardhub.h:36
TUSBHubDescriptor * m_pHubDesc
Definition usbstandardhub.h:38
TUSBDevice * m_pDevice[USB_HUB_MAX_PORTS]
Definition usbstandardhub.h:41
TUSBPortStatus * m_pStatus[USB_HUB_MAX_PORTS]
Definition usbstandardhub.h:42
unsigned m_nPorts
Definition usbstandardhub.h:40
#define USB_HUB_MAX_PORTS
Definition usbhub.h:28
void _USBStandardHub(TUSBStandardHub *pThis)
Definition usbstandardhub.c:50
void USBStandardHub(TUSBStandardHub *pThis, TUSBFunction *pFunction)
Definition usbstandardhub.c:32
boolean USBStandardHubInitialize(TUSBStandardHub *pThis)
boolean USBStandardHubConfigure(TUSBFunction *pUSBFunction)
Definition usbstandardhub.c:81