FastLED 3.9.15
Loading...
Searching...
No Matches

◆ getTypeFromStatusByte()

template<class Transport, class Settings, class Platform>
MidiType MidiInterface< Transport, Settings, Platform >::getTypeFromStatusByte ( byte inStatus)
inlinestatic

Extract an enumerated MIDI type from a status byte.

This is a utility static method, used internally, made public so you can handle MidiTypes more easily.

Definition at line 1218 of file MIDI.hpp.

1219{
1220 if ((inStatus < 0x80) ||
1221 (inStatus == Undefined_F4) ||
1222 (inStatus == Undefined_F5) ||
1224 return InvalidType; // Data bytes and undefined.
1225
1226 if (inStatus < 0xf0)
1227 // Channel message, remove channel nibble.
1228 return MidiType(inStatus & 0xf0);
1229
1230 return MidiType(inStatus);
1231}
The main class for MIDI handling. It is templated over the type of serial port to provide abstraction...
Definition MIDI.h:55
MidiType
Definition midi_Defs.h:95

References InvalidType, Undefined_F4, Undefined_F5, and Undefined_FD.

Referenced by parse().

+ Here is the caller graph for this function: