#include <MIDI_Parsers/BLEMIDIParser.hpp>
Class for parsing BLE-MIDI packets.
It doesn't parse the actual MIDI messages, it just extracts the relevant MIDI data from the BLE packets.
Definition at line 16 of file BLEMIDIParser.hpp.
Public Member Functions | |
BLEMIDIParser (const uint8_t *data, size_t length) | |
void | extend (const uint8_t *data, size_t length) |
Extend the BLE packet with the given buffer. | |
bool | pull (uint8_t &output) |
Get the next MIDI byte from the BLE packet (if available). | |
uint16_t | getTimestamp () const |
Static Private Member Functions | |
static bool | isData (uint8_t data) |
Check if the given byte is a data byte (and not a header, timestamp or status byte). | |
Private Attributes | |
const uint8_t * | data |
const uint8_t * | end |
bool | prevWasTimestamp = true |
uint16_t | timestamp = 0 |
|
inline |
Definition at line 18 of file BLEMIDIParser.hpp.
|
inline |
Extend the BLE packet with the given buffer.
Definition at line 53 of file BLEMIDIParser.hpp.
|
inline |
Get the next MIDI byte from the BLE packet (if available).
Definition at line 60 of file BLEMIDIParser.hpp.
|
inline |
Definition at line 99 of file BLEMIDIParser.hpp.
|
inlinestaticprivate |
Check if the given byte is a data byte (and not a header, timestamp or status byte).
Definition at line 110 of file BLEMIDIParser.hpp.
|
private |
Definition at line 102 of file BLEMIDIParser.hpp.
|
private |
Definition at line 103 of file BLEMIDIParser.hpp.
|
private |
Definition at line 104 of file BLEMIDIParser.hpp.
|
private |
Definition at line 105 of file BLEMIDIParser.hpp.