Control Surface master
MIDI Control Surface library for Arduino
Public Types | Public Member Functions | Public Attributes | List of all members
USBHostMIDIBackend< MaxPacketSize > Class Template Reference

#include <MIDI_Interfaces/USBHostMIDI_Interface.hpp>

Detailed Description

template<size_t MaxPacketSize = 512>
class USBHostMIDIBackend< MaxPacketSize >

MIDI over USB backend for the Teensy USBHost_t36 library.

Definition at line 13 of file USBHostMIDI_Interface.hpp.

+ Collaboration diagram for USBHostMIDIBackend< MaxPacketSize >:

Public Types

using MIDIUSBPacket_t = AH::Array< uint8_t, 4 >

Public Member Functions

 USBHostMIDIBackend (USBHost &host)
MIDIUSBPacket_t read ()
void write (uint8_t cn_cin, uint8_t midi_0, uint8_t midi_1, uint8_t midi_2)
void sendNow ()
bool preferImmediateSend ()

Public Attributes

TeensyHostMIDI< MaxPacketSize > backend

Member Typedef Documentation

◆ MIDIUSBPacket_t

using MIDIUSBPacket_t = AH::Array<uint8_t, 4>

Definition at line 18 of file USBHostMIDI_Interface.hpp.

Constructor & Destructor Documentation

◆ USBHostMIDIBackend()

USBHostMIDIBackend ( USBHost &  host)

Definition at line 15 of file USBHostMIDI_Interface.hpp.

Member Function Documentation

◆ read()

MIDIUSBPacket_t read ( )

Definition at line 19 of file USBHostMIDI_Interface.hpp.

◆ write()

void write ( uint8_t  cn_cin,
uint8_t  midi_0,
uint8_t  midi_1,
uint8_t  midi_2 

Definition at line 20 of file USBHostMIDI_Interface.hpp.

◆ sendNow()

void sendNow ( )

Definition at line 23 of file USBHostMIDI_Interface.hpp.

◆ preferImmediateSend()

bool preferImmediateSend ( )

Definition at line 24 of file USBHostMIDI_Interface.hpp.

Member Data Documentation

◆ backend

TeensyHostMIDI<MaxPacketSize> backend

Definition at line 27 of file USBHostMIDI_Interface.hpp.

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