MIDI Control Surface library for Arduino
|
Go to the documentation of this file.
2 #include <Settings/SettingsWrapper.hpp>
8 DEBUG(
"MIDIUSB packet:\t" <<
hex << packet[0] <<
' ' << packet[1] <<
' '
9 << packet[2] <<
' ' << packet[3] <<
dec);
10 this->
CN = (uint8_t)packet[0] >> 4;
11 uint8_t CIN = (uint8_t)packet[0] << 4;
27 else if (CIN == 0x40) {
33 DEBUGREF(
F(
"Error: No SysExStart received"));
41 else if (CIN == 0x50) {
47 DEBUGFN(
F(
"Error: No SysExStart received"));
57 else if (CIN == 0x60) {
63 DEBUGFN(
F(
"Error: No SysExStart received"));
74 else if (CIN == 0x70) {
80 DEBUGFN(
F(
"Error: No SysExStart received"));
91 #endif // IGNORE_SYSEX
103 else if (CIN == 0xF0)
104 return static_cast<MIDI_read_t>(packet[1]);
void startSysEx(uint8_t CN)
void endSysEx(uint8_t CN)
#define DEBUGREF(x)
Print an expression and its location (file and line number) to the debug output if debugging is enabl...
#define BEGIN_CS_NAMESPACE
bool receivingSysEx(uint8_t CN) const
bool addSysExByte(uint8_t CN, uint8_t data)
MIDI_read_t parse(uint8_t *packet)
Print & hex(Print &printer)
#define DEBUGFN(x)
Print an expression and its function (function name and line number) to the debug output if debugging...
Print & dec(Print &printer)
#define DEBUG(x)
Print an expression to the debug output if debugging is enabled.