3#include <Settings/SettingsWrapper.hpp>
25 void add(uint8_t data);
27 void add(
const uint8_t *data, uint8_t len);
#define BEGIN_CS_NAMESPACE
constexpr size_t SYSEX_BUFFER_SIZE
The length of the maximum System Exclusive message that can be received.
Helper for storing the System Exclusive messages being received by a MIDI parser.
const uint8_t * getBuffer() const
Get a pointer to the buffer.
uint8_t buffer[SYSEX_BUFFER_SIZE]
bool hasSpaceLeft(uint8_t amount=1) const
Check if the buffer has at least amount bytes of free space available.
void start()
Start a new SysEx message.
void add(uint8_t data)
Add a byte to the current SysEx message.
void end()
Finish the current SysEx message.
uint16_t getLength() const
Get the length of the SysEx message in the buffer.
bool isReceiving() const
Check if the buffer is receiving a SysEx message.