Control Surface main
MIDI Control Surface library for Arduino
Loading...
Searching...
No Matches
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, MIDI-Monitor-OLED.ino, MIDI_Pipes-Filter.ino, and Mackie-Control-Universal-Reverse-Engineering.ino.

Definition at line 354 of file MIDI_MessageTypes.hpp.

+ Collaboration diagram for RealTimeMessage:

Public Member Functions

 RealTimeMessage (uint8_t message, Cable cable=Cable_1)
 Constructor.
 
 RealTimeMessage (MIDIMessageType message, Cable cable=Cable_1)
 Constructor.
 
bool operator== (RealTimeMessage other) const
 
bool operator!= (RealTimeMessage other) const
 
void setMessageType (MIDIMessageType type)
 Set the MIDI message type.
 
MIDIMessageType getMessageType () const
 Get the MIDI message type.
 
Cable getCable () const
 Get the MIDI USB cable number of the message.
 
void setCable (Cable cable)
 Set the MIDI USB cable number of the message.
 
bool isValid () const
 Check whether the header is a valid header for a Real-Time message.
 

Public Attributes

uint8_t message
 
Cable cable
 

Static Public Attributes

static constexpr auto TimingClock = MIDIMessageType::TimingClock
 
static constexpr auto UndefinedRealTime1
 
static constexpr auto Start = MIDIMessageType::Start
 
static constexpr auto Continue = MIDIMessageType::Continue
 
static constexpr auto Stop = MIDIMessageType::Stop
 
static constexpr auto UndefinedRealTime2
 
static constexpr auto ActiveSensing = MIDIMessageType::ActiveSensing
 
static constexpr auto RESET = MIDIMessageType::SystemReset
 

Constructor & Destructor Documentation

◆ RealTimeMessage() [1/2]

RealTimeMessage ( uint8_t message,
Cable cable = Cable_1 )
inline

Constructor.

Definition at line 356 of file MIDI_MessageTypes.hpp.

◆ RealTimeMessage() [2/2]

RealTimeMessage ( MIDIMessageType message,
Cable cable = Cable_1 )
inline

Constructor.

Definition at line 360 of file MIDI_MessageTypes.hpp.

Member Function Documentation

◆ operator==()

bool operator== ( RealTimeMessage other) const
inline

Definition at line 366 of file MIDI_MessageTypes.hpp.

◆ operator!=()

bool operator!= ( RealTimeMessage other) const
inline

Definition at line 369 of file MIDI_MessageTypes.hpp.

◆ setMessageType()

void setMessageType ( MIDIMessageType type)
inline

Set the MIDI message type.

Definition at line 372 of file MIDI_MessageTypes.hpp.

◆ getMessageType()

MIDIMessageType getMessageType ( ) const
inline

Get the MIDI message type.

Examples
MIDI-Monitor-OLED.ino.

Definition at line 376 of file MIDI_MessageTypes.hpp.

◆ getCable()

Cable getCable ( ) const
inline

Get the MIDI USB cable number of the message.

Examples
MIDI-Monitor-OLED.ino.

Definition at line 381 of file MIDI_MessageTypes.hpp.

◆ setCable()

void setCable ( Cable cable)
inline

Set the MIDI USB cable number of the message.

Definition at line 383 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 386 of file MIDI_MessageTypes.hpp.

Member Data Documentation

◆ message

uint8_t message

◆ cable

Cable cable

◆ TimingClock

constexpr auto TimingClock = MIDIMessageType::TimingClock
staticconstexpr

Definition at line 388 of file MIDI_MessageTypes.hpp.

◆ UndefinedRealTime1

constexpr auto UndefinedRealTime1
staticconstexpr
Initial value:
=
@ UndefinedRealTime1
Undefined System Real-Time message 0xF9.

Definition at line 389 of file MIDI_MessageTypes.hpp.

◆ Start

constexpr auto Start = MIDIMessageType::Start
staticconstexpr

Definition at line 391 of file MIDI_MessageTypes.hpp.

◆ Continue

constexpr auto Continue = MIDIMessageType::Continue
staticconstexpr

Definition at line 392 of file MIDI_MessageTypes.hpp.

◆ Stop

constexpr auto Stop = MIDIMessageType::Stop
staticconstexpr

Definition at line 393 of file MIDI_MessageTypes.hpp.

◆ UndefinedRealTime2

constexpr auto UndefinedRealTime2
staticconstexpr
Initial value:
=
@ UndefinedRealTime2
Undefined System Real-Time message 0xFD.

Definition at line 394 of file MIDI_MessageTypes.hpp.

◆ ActiveSensing

constexpr auto ActiveSensing = MIDIMessageType::ActiveSensing
staticconstexpr

Definition at line 396 of file MIDI_MessageTypes.hpp.

◆ RESET

constexpr auto RESET = MIDIMessageType::SystemReset
staticconstexpr

Definition at line 397 of file MIDI_MessageTypes.hpp.


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