This is an old version of the documentation. View the latest version here.
Control Surface  1.0.0
MIDI Control Surface library for Arduino
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
MIDI_Parser Class Referenceabstract

#include <MIDI_Parser.hpp>

Inheritance diagram for MIDI_Parser:
Collaboration diagram for MIDI_Parser:

Public Member Functions

ChannelMessage getChannelMessage ()
 Get the latest MIDI channel message. More...
 
virtual SysExMessage getSysEx () const =0
 Get the latest SysEx message. More...
 
const uint8_t * getSysExBuffer () const
 Get the pointer to the SysEx data. More...
 
size_t getSysExLength () const
 Get the length of the SysEx message. More...
 
virtual uint8_t getCN () const
 Get the cable number of the latests MIDI message. More...
 

Static Public Member Functions

static bool isStatus (uint8_t data)
 Check if the given byte is a MIDI header byte. More...
 
static bool isData (uint8_t data)
 Check if the given byte is a MIDI data byte. More...
 

Protected Attributes

ChannelMessage midimsg = {}
 

Detailed Description

Definition at line 84 of file MIDI_Parser.hpp.

Member Function Documentation

◆ getChannelMessage()

ChannelMessage MIDI_Parser::getChannelMessage ( )

Get the latest MIDI channel message.

Definition at line 17 of file MIDI_Parser.cpp.

◆ getSysEx()

virtual SysExMessage MIDI_Parser::getSysEx ( ) const
pure virtual

Get the latest SysEx message.

Implemented in USBMIDI_Parser, and SerialMIDI_Parser.

◆ getSysExBuffer()

const uint8_t* MIDI_Parser::getSysExBuffer ( ) const
inline

Get the pointer to the SysEx data.

Definition at line 95 of file MIDI_Parser.hpp.

◆ getSysExLength()

size_t MIDI_Parser::getSysExLength ( ) const
inline

Get the length of the SysEx message.

Definition at line 97 of file MIDI_Parser.hpp.

◆ getCN()

virtual uint8_t MIDI_Parser::getCN ( ) const
inlinevirtual

Get the cable number of the latests MIDI message.

Reimplemented in USBMIDI_Parser.

Definition at line 99 of file MIDI_Parser.hpp.

◆ isStatus()

bool MIDI_Parser::isStatus ( uint8_t  data)
static

Check if the given byte is a MIDI header byte.

Definition at line 11 of file MIDI_Parser.cpp.

◆ isData()

bool MIDI_Parser::isData ( uint8_t  data)
static

Check if the given byte is a MIDI data byte.

Definition at line 15 of file MIDI_Parser.cpp.

Member Data Documentation

◆ midimsg

ChannelMessage MIDI_Parser::midimsg = {}
protected

Definition at line 102 of file MIDI_Parser.hpp.


The documentation for this class was generated from the following files: