Control Surface main
MIDI Control Surface library for Arduino
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Public Attributes | List of all members
ESP32_USBDeviceMIDIBackend Struct Reference

#include <MIDI_Interfaces/USBMIDI/USBMIDI_ESP32.hpp>

Detailed Description

Definition at line 9 of file USBMIDI_ESP32.hpp.

+ Collaboration diagram for ESP32_USBDeviceMIDIBackend:

Public Types

using MIDIUSBPacket_t = AH::Array<uint8_t, 4>
 USB MIDI packages are 4 bytes.
 

Public Member Functions

void begin ()
 Called once upon initialization.
 
MIDIUSBPacket_t read ()
 Read a single packet. Return a packet of all zeros if there is no packet.
 
void write (MIDIUSBPacket_t p)
 Write a single packet to the output buffer.
 
void sendNow ()
 Transmit the output buffer immediately (not implemented).
 
bool preferImmediateSend ()
 No explicit call to sendNow is required.
 

Public Attributes

USBMIDI backend
 The actual low-level USB MIDI backend provided by the core libraries.
 

Member Typedef Documentation

◆ MIDIUSBPacket_t

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

USB MIDI packages are 4 bytes.

Definition at line 11 of file USBMIDI_ESP32.hpp.

Member Function Documentation

◆ begin()

void begin ( )
inline

Called once upon initialization.

Definition at line 13 of file USBMIDI_ESP32.hpp.

◆ read()

MIDIUSBPacket_t read ( )
inline

Read a single packet. Return a packet of all zeros if there is no packet.

Definition at line 18 of file USBMIDI_ESP32.hpp.

◆ write()

void write ( MIDIUSBPacket_t p)
inline

Write a single packet to the output buffer.

Definition at line 24 of file USBMIDI_ESP32.hpp.

◆ sendNow()

void sendNow ( )
inline

Transmit the output buffer immediately (not implemented).

Definition at line 29 of file USBMIDI_ESP32.hpp.

◆ preferImmediateSend()

bool preferImmediateSend ( )
inline

No explicit call to sendNow is required.

Definition at line 31 of file USBMIDI_ESP32.hpp.

Member Data Documentation

◆ backend

USBMIDI backend

The actual low-level USB MIDI backend provided by the core libraries.

Definition at line 33 of file USBMIDI_ESP32.hpp.


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