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 Member Functions | Protected Attributes | Private Attributes | List of all members
SerialMIDI_Parser Class Reference

#include <SerialMIDI_Parser.hpp>

Inheritance diagram for SerialMIDI_Parser:
Collaboration diagram for SerialMIDI_Parser:

Public Member Functions

MIDI_read_t parse (uint8_t midibyte)
 
SysExMessage getSysEx () const override
 Get the latest SysEx message. More...
 
ChannelMessage getChannelMessage ()
 Get the latest MIDI channel 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 Member Functions

bool addSysExByte (uint8_t data)
 
void startSysEx ()
 
void endSysEx ()
 

Protected Attributes

SysExBuffer sysexbuffer
 
ChannelMessage midimsg = {}
 

Private Attributes

bool thirdByte = false
 

Detailed Description

Definition at line 8 of file SerialMIDI_Parser.hpp.

Member Function Documentation

◆ parse()

MIDI_read_t SerialMIDI_Parser::parse ( uint8_t  midibyte)

Definition at line 5 of file SerialMIDI_Parser.cpp.

◆ getSysEx()

SysExMessage SerialMIDI_Parser::getSysEx ( ) const
inlineoverridevirtual

Get the latest SysEx message.

Implements MIDI_Parser.

Definition at line 13 of file SerialMIDI_Parser.hpp.

◆ addSysExByte()

bool SerialMIDI_Parser::addSysExByte ( uint8_t  data)
inlineprotected

Definition at line 22 of file SerialMIDI_Parser.hpp.

◆ startSysEx()

void SerialMIDI_Parser::startSysEx ( )
inlineprotected

Definition at line 23 of file SerialMIDI_Parser.hpp.

◆ endSysEx()

void SerialMIDI_Parser::endSysEx ( )
inlineprotected

Definition at line 24 of file SerialMIDI_Parser.hpp.

◆ getChannelMessage()

ChannelMessage MIDI_Parser::getChannelMessage ( )
inherited

Get the latest MIDI channel message.

Definition at line 17 of file MIDI_Parser.cpp.

◆ getSysExBuffer()

const uint8_t* MIDI_Parser::getSysExBuffer ( ) const
inlineinherited

Get the pointer to the SysEx data.

Definition at line 95 of file MIDI_Parser.hpp.

◆ getSysExLength()

size_t MIDI_Parser::getSysExLength ( ) const
inlineinherited

Get the length of the SysEx message.

Definition at line 97 of file MIDI_Parser.hpp.

◆ getCN()

virtual uint8_t MIDI_Parser::getCN ( ) const
inlinevirtualinherited

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)
staticinherited

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)
staticinherited

Check if the given byte is a MIDI data byte.

Definition at line 15 of file MIDI_Parser.cpp.

Member Data Documentation

◆ sysexbuffer

SysExBuffer SerialMIDI_Parser::sysexbuffer
protected

Definition at line 20 of file SerialMIDI_Parser.hpp.

◆ thirdByte

bool SerialMIDI_Parser::thirdByte = false
private

Definition at line 28 of file SerialMIDI_Parser.hpp.

◆ midimsg

ChannelMessage MIDI_Parser::midimsg = {}
protectedinherited

Definition at line 102 of file MIDI_Parser.hpp.


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