XenevaOS
Loading...
Searching...
No Matches
usbstring.h
Go to the documentation of this file.
1//
2// usbstring.h
3//
4// USPi - An USB driver for Raspberry Pi written in C
5// Copyright (C) 2014 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_usbstring_h
21#define _uspi_usbstring_h
22
23#include "uspi/usb.h"
24#include "uspi/string.h"
25#include "uspi/types.h"
26
27#ifdef __cplusplus
28extern "C" {
29#endif
30
31struct TUSBDevice;
32
42
43void USBString (TUSBString *pThis, struct TUSBDevice *pDevice);
44void USBStringCopy (TUSBString *pThis, TUSBString *pParent);
45void _USBString (TUSBString *pThis);
46
47boolean USBStringGetFromDescriptor (TUSBString *pThis, u8 ucID, u16 usLanguageID);
48
49const char *USBStringGet (TUSBString *pThis);
50
52
53#ifdef __cplusplus
54}
55#endif
56
57#endif
uint8_t u8
Definition kernel.h:20
uint16_t u16
Definition kernel.h:21
Definition string.h:32
Definition usbdevice.h:48
Definition usb.h:217
Definition usbstring.h:34
struct TUSBDevice * m_pDevice
Definition usbstring.h:35
TUSBStringDescriptor * m_pUSBString
Definition usbstring.h:37
TString * m_pString
Definition usbstring.h:39
boolean USBStringGetFromDescriptor(TUSBString *pThis, u8 ucID, u16 usLanguageID)
Definition usbstring.c:85
void USBStringCopy(TUSBString *pThis, TUSBString *pParent)
Definition usbstring.c:47
void USBString(TUSBString *pThis, struct TUSBDevice *pDevice)
Definition usbstring.c:33
u16 USBStringGetLanguageID(TUSBString *pThis)
Definition usbstring.c:176
const char * USBStringGet(TUSBString *pThis)
Definition usbstring.c:170
void _USBString(TUSBString *pThis)
Definition usbstring.c:67