Control Surface master
MIDI Control Surface library for Arduino
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
SysExMessage Struct Reference

#include <MIDI_Parsers/MIDI_MessageTypes.hpp>

Detailed Description

Examples
MIDI-Input-Callback.ino, MIDI-Input-Fine-Grained-All-Callbacks.ino, MIDI-Input.ino, Mackie-Control-Universal-Reverse-Engineering.ino, and SysEx-Send-Receive.ino.

Definition at line 277 of file MIDI_MessageTypes.hpp.

+ Collaboration diagram for SysExMessage:

Public Member Functions

 SysExMessage ()
 Constructor. More...
 
 SysExMessage (const uint8_t *data, uint16_t length, Cable cable=CABLE_1)
 Constructor. More...
 
 SysExMessage (const std::vector< uint8_t > &vec, Cable cable=CABLE_1)
 Constructor. More...
 
template<uint16_t N>
 SysExMessage (const uint8_t(&array)[N], Cable cable=CABLE_1)
 Constructor. More...
 
bool operator== (SysExMessage other) const
 
bool operator!= (SysExMessage other) const
 
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...
 
bool isFirstChunk () const
 
bool isLastChunk () const
 
bool isCompleteMessage () const
 

Public Attributes

const uint8_t * data
 
uint16_t length
 
Cable cable
 

Static Public Attributes

constexpr static auto SYSEX_START = MIDIMessageType::SYSEX_START
 
constexpr static auto SYSEX_END = MIDIMessageType::SYSEX_END
 

Constructor & Destructor Documentation

◆ SysExMessage() [1/4]

SysExMessage ( )
inline

Constructor.

Definition at line 279 of file MIDI_MessageTypes.hpp.

◆ SysExMessage() [2/4]

SysExMessage ( const uint8_t *  data,
uint16_t  length,
Cable  cable = CABLE_1 
)
inline

Constructor.

Definition at line 282 of file MIDI_MessageTypes.hpp.

◆ SysExMessage() [3/4]

SysExMessage ( const std::vector< uint8_t > &  vec,
Cable  cable = CABLE_1 
)
inline

Constructor.

Definition at line 286 of file MIDI_MessageTypes.hpp.

◆ SysExMessage() [4/4]

SysExMessage ( const uint8_t(&)  array[N],
Cable  cable = CABLE_1 
)
inline

Constructor.

Definition at line 291 of file MIDI_MessageTypes.hpp.

Member Function Documentation

◆ operator==()

bool operator== ( SysExMessage  other) const
inline

Definition at line 299 of file MIDI_MessageTypes.hpp.

◆ operator!=()

bool operator!= ( SysExMessage  other) const
inline

Definition at line 304 of file MIDI_MessageTypes.hpp.

◆ getCable()

Cable getCable ( ) const
inline

Get the MIDI USB cable number of the message.

Definition at line 307 of file MIDI_MessageTypes.hpp.

◆ setCable()

void setCable ( Cable  cable)
inline

Set the MIDI USB cable number of the message.

Definition at line 309 of file MIDI_MessageTypes.hpp.

◆ isFirstChunk()

bool isFirstChunk ( ) const
inline

Definition at line 311 of file MIDI_MessageTypes.hpp.

◆ isLastChunk()

bool isLastChunk ( ) const
inline

Definition at line 315 of file MIDI_MessageTypes.hpp.

◆ isCompleteMessage()

bool isCompleteMessage ( ) const
inline

Definition at line 320 of file MIDI_MessageTypes.hpp.

Member Data Documentation

◆ data

const uint8_t* data

◆ length

uint16_t length

◆ cable

Cable cable

◆ SYSEX_START

constexpr static auto SYSEX_START = MIDIMessageType::SYSEX_START
staticconstexpr

Definition at line 322 of file MIDI_MessageTypes.hpp.

◆ SYSEX_END

constexpr static auto SYSEX_END = MIDIMessageType::SYSEX_END
staticconstexpr

Definition at line 323 of file MIDI_MessageTypes.hpp.


The documentation for this struct was generated from the following file: