Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: USBMIDI_HelloWorld USBMIDI_DrumExample USBMIDI_MonoSynth MIDI_Interface_ver_1 ... more
USBMIDI Class Reference
USBMIDI interface class for sending and receiving MIDI messages over USB. More...
#include <USBMIDI.h>
Public Member Functions | |
USBMIDI () | |
Create the USBMIDI interface. | |
void | write (MIDIMessage m) |
Send a MIDIMessage. | |
bool | writeable () |
Check if it possible to send a MIDIMessage. | |
void | attach (void(*fptr)(MIDIMessage)) |
Attach a callback for when a MIDIEvent is received. |
Detailed Description
USBMIDI interface class for sending and receiving MIDI messages over USB.
Definition at line 29 of file USBMIDI.h.
Constructor & Destructor Documentation
USBMIDI | ( | ) |
Create the USBMIDI interface.
Definition at line 30 of file USBMIDI.cpp.
Member Function Documentation
void attach | ( | void(*)(MIDIMessage) | fptr ) |
Attach a callback for when a MIDIEvent is received.
Definition at line 45 of file USBMIDI.cpp.
void write | ( | MIDIMessage | m ) |
bool writeable | ( | ) |
Check if it possible to send a MIDIMessage.
- Returns:
- True if there's an empty buffer for sending a MIDIMessage, otherwise False
Definition at line 41 of file USBMIDI.cpp.
Generated on Tue Jul 12 2022 16:19:58 by
