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

#include <MIDI_Parsers/MIDI_MessageTypes.hpp>

Detailed Description

Examples
MIDI-Input-Callback.ino, MIDI-Input.ino, and Mackie-Control-Universal-Reverse-Engineering.ino.

Definition at line 326 of file MIDI_MessageTypes.hpp.

+ Collaboration diagram for RealTimeMessage:

Public Member Functions

 RealTimeMessage (uint8_t message, Cable cable=CABLE_1)
 Constructor. More...
 
 RealTimeMessage (MIDIMessageType message, Cable cable=CABLE_1)
 Constructor. More...
 
bool operator== (RealTimeMessage other) const
 
bool operator!= (RealTimeMessage other) const
 
void setMessageType (MIDIMessageType type)
 Set the MIDI message type. More...
 
MIDIMessageType getMessageType () const
 Get the MIDI message type. 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...
 
bool isValid () const
 Check whether the header is a valid header for a Real-Time message. More...
 

Public Attributes

uint8_t message
 
Cable cable
 

Static Public Attributes

constexpr static auto TIMING_CLOCK = MIDIMessageType::TIMING_CLOCK
 
constexpr static auto UNDEFINED_REALTIME_1
 
constexpr static auto START = MIDIMessageType::START
 
constexpr static auto CONTINUE = MIDIMessageType::CONTINUE
 
constexpr static auto STOP = MIDIMessageType::STOP
 
constexpr static auto UNDEFINED_REALTIME_2
 
constexpr static auto ACTIVE_SENSING = MIDIMessageType::ACTIVE_SENSING
 
constexpr static auto RESET = MIDIMessageType::SYSTEM_RESET
 

Constructor & Destructor Documentation

◆ RealTimeMessage() [1/2]

RealTimeMessage ( uint8_t  message,
Cable  cable = CABLE_1 
)
inline

Constructor.

Definition at line 328 of file MIDI_MessageTypes.hpp.

◆ RealTimeMessage() [2/2]

RealTimeMessage ( MIDIMessageType  message,
Cable  cable = CABLE_1 
)
inline

Constructor.

Definition at line 332 of file MIDI_MessageTypes.hpp.

Member Function Documentation

◆ operator==()

bool operator== ( RealTimeMessage  other) const
inline

Definition at line 338 of file MIDI_MessageTypes.hpp.

◆ operator!=()

bool operator!= ( RealTimeMessage  other) const
inline

Definition at line 341 of file MIDI_MessageTypes.hpp.

◆ setMessageType()

void setMessageType ( MIDIMessageType  type)
inline

Set the MIDI message type.

Definition at line 344 of file MIDI_MessageTypes.hpp.

◆ getMessageType()

MIDIMessageType getMessageType ( ) const
inline

Get the MIDI message type.

Definition at line 348 of file MIDI_MessageTypes.hpp.

◆ getCable()

Cable getCable ( ) const
inline

Get the MIDI USB cable number of the message.

Definition at line 353 of file MIDI_MessageTypes.hpp.

◆ setCable()

void setCable ( Cable  cable)
inline

Set the MIDI USB cable number of the message.

Definition at line 355 of file MIDI_MessageTypes.hpp.

◆ isValid()

bool isValid ( ) const
inline

Check whether the header is a valid header for a Real-Time message.

Definition at line 358 of file MIDI_MessageTypes.hpp.

Member Data Documentation

◆ message

uint8_t message

◆ cable

Cable cable

◆ TIMING_CLOCK

constexpr static auto TIMING_CLOCK = MIDIMessageType::TIMING_CLOCK
staticconstexpr

Definition at line 360 of file MIDI_MessageTypes.hpp.

◆ UNDEFINED_REALTIME_1

constexpr static auto UNDEFINED_REALTIME_1
staticconstexpr
Initial value:

Definition at line 361 of file MIDI_MessageTypes.hpp.

◆ START

constexpr static auto START = MIDIMessageType::START
staticconstexpr

Definition at line 363 of file MIDI_MessageTypes.hpp.

◆ CONTINUE

constexpr static auto CONTINUE = MIDIMessageType::CONTINUE
staticconstexpr

Definition at line 364 of file MIDI_MessageTypes.hpp.

◆ STOP

constexpr static auto STOP = MIDIMessageType::STOP
staticconstexpr

Definition at line 365 of file MIDI_MessageTypes.hpp.

◆ UNDEFINED_REALTIME_2

constexpr static auto UNDEFINED_REALTIME_2
staticconstexpr
Initial value:

Definition at line 366 of file MIDI_MessageTypes.hpp.

◆ ACTIVE_SENSING

constexpr static auto ACTIVE_SENSING = MIDIMessageType::ACTIVE_SENSING
staticconstexpr

Definition at line 368 of file MIDI_MessageTypes.hpp.

◆ RESET

constexpr static auto RESET = MIDIMessageType::SYSTEM_RESET
staticconstexpr

Definition at line 369 of file MIDI_MessageTypes.hpp.


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