| 
   
    MIDI Control Surface library for Arduino 
   | 
 
 
 
 
Go to the documentation of this file.
    9     constexpr uint8_t SysExStart =
 
   10         static_cast<uint8_t
>(MIDIMessageType::SYSEX_START);
 
   11     constexpr uint8_t SysExEnd =
 
   12         static_cast<uint8_t
>(MIDIMessageType::SYSEX_END);
 
   29         if (midiByte >= uint8_t(MIDIMessageType::TIMING_CLOCK)) {
 
   45             if (
midimsg.
header == uint8_t(MIDIMessageType::TUNE_REQUEST)) {
 
   54             if (unterminatedSysEx) {
 
   59                 return MIDIReadEvent::SYSEX_MESSAGE;
 
   62             (void)unterminatedSysEx;
 
   63 #endif // IGNORE_SYSEX 
   77             return MIDIReadEvent::CHANNEL_MESSAGE;
 
   89                 return MIDIReadEvent::CHANNEL_MESSAGE;
 
   97 #endif // IGNORE_SYSEX 
  103     return MIDIReadEvent::NO_MESSAGE;
 
  
bool addSysExByte(uint8_t data)
 
bool hasValidHeader() const
Check whether the header is a valid header for a channel message.
 
#define NAMEDVALUE(x)
Macro for printing an expression as a string, followed by its value.
 
bool isReceiving() const
Check if the buffer is receiving a SysEx message.
 
Print & dec(Print &printer)
 
#define BEGIN_CS_NAMESPACE
 
uint8_t header
MIDI status byte (message type and channel).
 
uint8_t data2
First MIDI data byte.
 
bool hasTwoDataBytes() const
Check whether this message has one or two data bytes.
 
@ NO_MESSAGE
No new incoming methods.
 
Print & hex(Print &printer)
 
uint8_t data1
First MIDI data byte.
 
static bool isStatus(uint8_t data)
Check if the given byte is a MIDI header byte.
 
#define DEBUGFN(x)
Print an expression and its function (function name and line number) to the debug output if debugging...
 
MIDIReadEvent parse(uint8_t midibyte)
 
MIDIReadEvent
Result of the MIDI interface read methods.