XenevaOS
Loading...
Searching...
No Matches
usbmidi.h
Go to the documentation of this file.
1//
2// usbmidi.h
3//
4// USPi - An USB driver for Raspberry Pi written in C
5// Copyright (C) 2016-2018 R. Stange <rsta2@o2online.de>
6// Copyright (C) 2016 J. Otto <joshua.t.otto@gmail.com>
7//
8// This program is free software: you can redistribute it and/or modify
9// it under the terms of the GNU General Public License as published by
10// the Free Software Foundation, either version 3 of the License, or
11// (at your option) any later version.
12//
13// This program is distributed in the hope that it will be useful,
14// but WITHOUT ANY WARRANTY; without even the implied warranty of
15// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16// GNU General Public License for more details.
17//
18// You should have received a copy of the GNU General Public License
19// along with this program. If not, see <http://www.gnu.org/licenses/>.
20//
21#ifndef _uspi_usbmidi_h
22#define _uspi_usbmidi_h
23
24#include "uspi/usbfunction.h"
25#include "uspi/usbendpoint.h"
26#include "uspi/usbrequest.h"
27#include "uspi/types.h"
28
29typedef void TMIDIPacketHandler(unsigned nCable, unsigned nLength, u8 *pPacket);
30
44
45void USBMIDIDevice (TUSBMIDIDevice *pThis, TUSBFunction *pFunction);
47
48boolean USBMIDIDeviceConfigure (TUSBFunction *pUSBFunction);
49
51
52#endif
uint8_t u8
Definition kernel.h:20
uint16_t u16
Definition kernel.h:21
Definition usbendpoint.h:41
Definition usbfunction.h:33
Definition usbmidi.h:32
u16 m_usBufferSize
Definition usbmidi.h:40
TUSBRequest m_URB
Definition usbmidi.h:39
TUSBEndpoint * m_pEndpointIn
Definition usbmidi.h:35
u8 * m_pPacketBuffer
Definition usbmidi.h:41
TMIDIPacketHandler * m_pPacketHandler
Definition usbmidi.h:37
TUSBFunction m_USBFunction
Definition usbmidi.h:33
Definition usbrequest.h:36
void USBMIDIDeviceRegisterPacketHandler(TUSBMIDIDevice *pThis, TMIDIPacketHandler *pPacketHandler)
Definition usbmidi.c:149
boolean USBMIDIDeviceConfigure(TUSBFunction *pUSBFunction)
Definition usbmidi.c:76
void _CUSBMIDIDevice(TUSBMIDIDevice *pThis)
Definition usbmidi.c:56
void TMIDIPacketHandler(unsigned nCable, unsigned nLength, u8 *pPacket)
Definition usbmidi.h:29
void USBMIDIDevice(TUSBMIDIDevice *pThis, TUSBFunction *pFunction)
Definition usbmidi.c:44