![]()  | 
  
    Deluge Firmware 1.3.0
    
   Build date: 2025.11.03 
   | 
 
A MIDI cable connection. Stores all state specific to a given cable and its contained ports and channels. More...
#include <midi_device.h>


Public Member Functions | |
| virtual void | writeToFlash (uint8_t *memory)=0 | 
| virtual char const * | getDisplayName () const =0 | 
| void | dataEntryMessageReceived (ModelStack *modelStack, int32_t channel, int32_t msb) | 
| virtual bool | wantsToOutputMIDIOnChannel (MIDIMessage message, int32_t filter) const | 
| Used to decide if the given message should be output on a channel.   | |
File IO functions  | |
| 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) | 
Low-level Device I/O  | |
| virtual Error | sendMessage (MIDIMessage message)=0 | 
| Send a MIDI message.   | |
| virtual Error | sendSysex (const uint8_t *data, int32_t len)=0 | 
| virtual size_t | sendBufferSpace () const =0 | 
| Get the number of bytes available in the send buffer.   | |
High-level IO functions | |
| 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 | 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 () | 
| virtual void | writeReferenceAttributesToFile (Serializer &writer)=0 | 
| void | writeDefinitionAttributesToFile (Serializer &writer) | 
A MIDI cable connection. Stores all state specific to a given cable and its contained ports and channels.
      
  | 
  nodiscardpure virtual | 
Get the number of bytes available in the send buffer.
Implemented in MIDICableDINPorts, and MIDICableUSB.
      
  | 
  nodiscardpure virtual | 
Send a MIDI message.
Implemented in MIDICableDINPorts, and MIDICableUSB.
      
  | 
  nodiscardpure virtual | 
Send a chunk of SYSEX data.
| data | Data to send. Should include the 0xf0 and 0xf7 start/stop bytes. | 
| len | Number of bytes in data, including the start/stop bytes. | 
Implemented in MIDICableDINPorts, and MIDICableUSB.
      
  | 
  nodiscardvirtual | 
Used to decide if the given message should be output on a channel.
Reimplemented in MIDICableDINPorts, and MIDICableUSB.