Deluge Firmware 1.3.0
Build date: 2025.06.30
Loading...
Searching...
No Matches
MIDICableDINPorts Class Referencefinal
Inheritance diagram for MIDICableDINPorts:
Collaboration diagram for MIDICableDINPorts:

Public Member Functions

Error onReceiveByte (uint32_t timestamp, uint8_t byte)
 Called by the DIN root complex when a byte is received.
bool wantsToOutputMIDIOnChannel (MIDIMessage message, int32_t filter) const override
 Used to decide if the given message should be output on a channel.
void writeReferenceAttributesToFile (Serializer &writer) override
void writeToFlash (uint8_t *memory) override
char const * getDisplayName () const override
Error sendMessage (MIDIMessage message) override
 Send a MIDI message.
Error sendSysex (const uint8_t *data, int32_t len) override
size_t sendBufferSpace () const override
 Get the number of bytes available in the send buffer.
Public Member Functions inherited from MIDICable
void dataEntryMessageReceived (ModelStack *modelStack, int32_t channel, int32_t msb)
void writeReferenceToFile (Serializer &writer, char const *tagName="device")
void writeToFile (Serializer &writer, char const *tagName)
void readFromFile (Deserializer &reader)
bool worthWritingToFile ()
void writePorts (Serializer &writer)
void sendAllMCMs ()
 Send MPE control messages.
void sendCC (int32_t channel, int32_t cc, int32_t value)
void sendRPN (int32_t channel, int32_t rpnMSB, int32_t rpnLSB, int32_t valueMSB)
bool hasDefaultVelocityToLevelSet ()

Private Types

using IntermediateMessageBuffer = std::array<uint8_t, 3>

Private Attributes

IntermediateMessageBuffer messageBytes_
IntermediateMessageBuffer::size_type currentByte_
bool currentlyReceivingSysex_ {false}

Additional Inherited Members

MIDIPort ports [2]
uint8_t mpeZoneBendRanges [2][2]
MIDIInputChannel inputChannels [16]
int32_t defaultVelocityToLevel
uint8_t connectionFlags
bool sendClock
uint8_t incomingSysexBuffer [1024]
int32_t incomingSysexPos = 0
void writeDefinitionAttributesToFile (Serializer &writer)

Member Function Documentation

◆ getDisplayName()

char const * MIDICableDINPorts::getDisplayName ( ) const
nodiscardoverridevirtual

Implements MIDICable.

◆ sendBufferSpace()

size_t MIDICableDINPorts::sendBufferSpace ( ) const
nodiscardoverridevirtual

Get the number of bytes available in the send buffer.

Implements MIDICable.

◆ sendMessage()

Error MIDICableDINPorts::sendMessage ( MIDIMessage message)
nodiscardoverridevirtual

Send a MIDI message.

Implements MIDICable.

◆ sendSysex()

Error MIDICableDINPorts::sendSysex ( const uint8_t * data,
int32_t len )
nodiscardoverridevirtual

Send a chunk of SYSEX data.

Parameters
dataData to send. Should include the 0xf0 and 0xf7 start/stop bytes.
lenNumber of bytes in data, including the start/stop bytes.

Implements MIDICable.

◆ wantsToOutputMIDIOnChannel()

bool MIDICableDINPorts::wantsToOutputMIDIOnChannel ( MIDIMessage message,
int32_t filter ) const
nodiscardoverridevirtual

Used to decide if the given message should be output on a channel.

Reimplemented from MIDICable.

◆ writeReferenceAttributesToFile()

void MIDICableDINPorts::writeReferenceAttributesToFile ( Serializer & writer)
overridevirtual

Implements MIDICable.

◆ writeToFlash()

void MIDICableDINPorts::writeToFlash ( uint8_t * memory)
overridevirtual

Implements MIDICable.


The documentation for this class was generated from the following files:
  • src/deluge/io/midi/cable_types/din.h
  • src/deluge/io/midi/cable_types/din.cpp