#include <MIDI_Parsers/MIDI_MessageTypes.hpp>
Public Member Functions | |
ChannelMessage (uint8_t header, uint8_t data1, uint8_t data2, uint8_t CN) | |
Constructor. More... | |
ChannelMessage (MIDIMessageType type, Channel channel, uint8_t data1, uint8_t data2=0x00, Cable cable=CABLE_1) | |
Constructor. More... | |
bool | operator== (ChannelMessage other) const |
Check for equality. More... | |
bool | operator!= (ChannelMessage other) const |
Check for inequality. More... | |
Channel | getChannel () const |
Get the MIDI channel of the message. More... | |
void | setChannel (Channel channel) |
Set the MIDI channel of the message. More... | |
Cable | getCable () const |
Get the MIDI USB cable number of the message. More... | |
void | setCable (Cable cable) |
Set the MIDI USB cable number of the message. More... | |
MIDIMessageType | getMessageType () const |
Get the MIDI message type. More... | |
void | setMessageType (MIDIMessageType type) |
Set the MIDI message type. More... | |
bool | hasTwoDataBytes () const |
Check whether this message has one or two data bytes. More... | |
bool | hasValidHeader () const |
Check whether the header is a valid header for a channel message. More... | |
Public Attributes | |
uint8_t | header |
MIDI status byte (message type and channel). More... | |
uint8_t | data1 |
First MIDI data byte. More... | |
uint8_t | data2 |
First MIDI data byte. More... | |
uint8_t | CN |
USB MIDI cable number;. More... | |
Definition at line 72 of file MIDI_MessageTypes.hpp.
|
inline |
Constructor.
Definition at line 74 of file MIDI_MessageTypes.hpp.
|
inline |
Constructor.
Definition at line 78 of file MIDI_MessageTypes.hpp.
|
inline |
Check for equality.
Definition at line 90 of file MIDI_MessageTypes.hpp.
|
inline |
Check for inequality.
Definition at line 95 of file MIDI_MessageTypes.hpp.
|
inline |
Get the MIDI channel of the message.
Definition at line 98 of file MIDI_MessageTypes.hpp.
|
inline |
Set the MIDI channel of the message.
Definition at line 100 of file MIDI_MessageTypes.hpp.
|
inline |
Get the MIDI USB cable number of the message.
Definition at line 106 of file MIDI_MessageTypes.hpp.
|
inline |
Set the MIDI USB cable number of the message.
Definition at line 108 of file MIDI_MessageTypes.hpp.
|
inline |
Get the MIDI message type.
Definition at line 111 of file MIDI_MessageTypes.hpp.
|
inline |
Set the MIDI message type.
Definition at line 115 of file MIDI_MessageTypes.hpp.
|
inline |
Check whether this message has one or two data bytes.
Definition at line 124 of file MIDI_MessageTypes.hpp.
|
inline |
Check whether the header is a valid header for a channel message.
Definition at line 131 of file MIDI_MessageTypes.hpp.
uint8_t header |
MIDI status byte (message type and channel).
Definition at line 83 of file MIDI_MessageTypes.hpp.
uint8_t data1 |
First MIDI data byte.
Definition at line 84 of file MIDI_MessageTypes.hpp.
uint8_t data2 |
First MIDI data byte.
Definition at line 85 of file MIDI_MessageTypes.hpp.
uint8_t CN |
USB MIDI cable number;.
Definition at line 87 of file MIDI_MessageTypes.hpp.