USB Host Shield 2.0
|
#include <usbh_midi.h>
Public Member Functions | |
USBH_MIDI (USB *p) | |
operator bool () | |
uint16_t | idVendor () |
uint16_t | idProduct () |
uint8_t | RecvData (uint16_t *bytes_rcvd, uint8_t *dataptr) |
uint8_t | RecvData (uint8_t *outBuf, bool isRaw=false) |
uint8_t | RecvRawData (uint8_t *outBuf) |
uint8_t | SendData (uint8_t *dataptr, uint8_t nCable=0) |
uint8_t | SendRawData (uint16_t bytes_send, uint8_t *dataptr) |
uint8_t | lookupMsgSize (uint8_t midiMsg, uint8_t cin=0) |
uint8_t | SendSysEx (uint8_t *dataptr, uint16_t datasize, uint8_t nCable=0) |
uint8_t | extractSysExData (uint8_t *p, uint8_t *buf) |
uint8_t | RcvData (uint16_t *bytes_rcvd, uint8_t *dataptr) |
uint8_t | RcvData (uint8_t *outBuf) |
virtual uint8_t | Init (uint8_t parent, uint8_t port, bool lowspeed) |
virtual uint8_t | Release () |
virtual uint8_t | GetAddress () |
void | attachOnInit (void(*funcOnInit)(void)) |
void | attachOnRelease (void(*funcOnRelease)(void)) |
Public Member Functions inherited from USBDeviceConfig | |
virtual uint8_t | ConfigureDevice (uint8_t parent, uint8_t port, bool lowspeed) |
virtual uint8_t | Poll () |
virtual void | ResetHubPort (uint8_t port) |
virtual bool | VIDPIDOK (uint16_t vid, uint16_t pid) |
virtual bool | DEVCLASSOK (uint8_t klass) |
virtual bool | DEVSUBCLASSOK (uint8_t subklass) |
Protected Member Functions | |
uint16_t | countSysExDataSize (uint8_t *dataptr) |
void | setupDeviceSpecific () |
uint8_t | convertStatus2Cin (uint8_t status) |
uint8_t | getMsgSizeFromCin (uint8_t cin) |
bool | EndpointXtract (uint8_t conf, uint8_t iface, uint8_t alt, uint8_t proto, const USB_ENDPOINT_DESCRIPTOR *ep) |
Protected Attributes | |
USB * | pUsb |
uint8_t | bAddress |
bool | bPollEnable |
uint16_t | pid |
uint16_t | vid |
uint8_t | bTransferTypeMask |
EpInfo | epInfo [MIDI_MAX_ENDPOINTS] |
uint8_t | recvBuf [MIDI_EVENT_PACKET_SIZE] |
uint8_t | readPtr |
Static Protected Attributes | |
static const uint8_t | epDataInIndex = 1 |
static const uint8_t | epDataOutIndex = 2 |
This class implements support for a MIDI device.
Definition at line 80 of file usbh_midi.h.
USBH_MIDI::USBH_MIDI | ( | USB * | p | ) |
Definition at line 85 of file usbh_midi.cpp.
|
protected |
Definition at line 443 of file usbh_midi.cpp.
|
protected |
Definition at line 291 of file usbh_midi.cpp.
|
inlineprotected |
Definition at line 100 of file usbh_midi.h.
|
inlineprotected |
Definition at line 103 of file usbh_midi.h.
|
protectedvirtual |
Reimplemented from UsbMidiConfigXtracter.
Definition at line 668 of file usbh_midi.cpp.
|
inline |
Definition at line 116 of file usbh_midi.h.
|
inline |
Definition at line 117 of file usbh_midi.h.
|
inline |
Definition at line 118 of file usbh_midi.h.
uint8_t USBH_MIDI::RecvData | ( | uint16_t * | bytes_rcvd, |
uint8_t * | dataptr | ||
) |
Definition at line 314 of file usbh_midi.cpp.
uint8_t USBH_MIDI::RecvData | ( | uint8_t * | outBuf, |
bool | isRaw = false |
||
) |
Definition at line 330 of file usbh_midi.cpp.
|
inline |
Definition at line 122 of file usbh_midi.h.
uint8_t USBH_MIDI::SendData | ( | uint8_t * | dataptr, |
uint8_t | nCable = 0 |
||
) |
Definition at line 372 of file usbh_midi.cpp.
|
inline |
Definition at line 124 of file usbh_midi.h.
uint8_t USBH_MIDI::lookupMsgSize | ( | uint8_t | midiMsg, |
uint8_t | cin = 0 |
||
) |
Definition at line 434 of file usbh_midi.cpp.
uint8_t USBH_MIDI::SendSysEx | ( | uint8_t * | dataptr, |
uint16_t | datasize, | ||
uint8_t | nCable = 0 |
||
) |
Definition at line 465 of file usbh_midi.cpp.
uint8_t USBH_MIDI::extractSysExData | ( | uint8_t * | p, |
uint8_t * | buf | ||
) |
Definition at line 522 of file usbh_midi.cpp.
|
inline |
Definition at line 129 of file usbh_midi.h.
|
inline |
Definition at line 130 of file usbh_midi.h.
|
virtual |
Reimplemented from USBDeviceConfig.
Definition at line 103 of file usbh_midi.cpp.
|
virtual |
Reimplemented from USBDeviceConfig.
Definition at line 277 of file usbh_midi.cpp.
|
inlinevirtual |
Reimplemented from USBDeviceConfig.
Definition at line 135 of file usbh_midi.h.
|
inline |
Definition at line 137 of file usbh_midi.h.
|
inline |
Definition at line 141 of file usbh_midi.h.
|
staticprotected |
Definition at line 83 of file usbh_midi.h.
|
staticprotected |
Definition at line 84 of file usbh_midi.h.
|
protected |
Definition at line 87 of file usbh_midi.h.
|
protected |
Definition at line 88 of file usbh_midi.h.
|
protected |
Definition at line 89 of file usbh_midi.h.
|
protected |
Definition at line 90 of file usbh_midi.h.
|
protected |
Definition at line 90 of file usbh_midi.h.
|
protected |
Definition at line 91 of file usbh_midi.h.
|
protected |
Definition at line 93 of file usbh_midi.h.
|
protected |
Definition at line 95 of file usbh_midi.h.
|
protected |
Definition at line 96 of file usbh_midi.h.