Control Surface main
MIDI Control Surface library for Arduino
Loading...
Searching...
No Matches
USBHostMIDI_Interface.hpp
Go to the documentation of this file.
1#pragma once
2
5
7
10template <size_t MaxPacketSize = 512>
12 public:
13 USBHostMIDIBackend(USBHost &host) : backend(host) {}
14
15 public:
19 void sendNow() { backend.send_now(); }
20 bool preferImmediateSend() { return false; }
21
22 public:
24};
25
41 : public GenericUSBMIDI_Interface<USBHostMIDIBackend<64>> {
42 public:
44};
45
61 : public GenericUSBMIDI_Interface<USBHostMIDIBackend<512>> {
62 public:
65};
66
#define END_CS_NAMESPACE
#define BEGIN_CS_NAMESPACE
AH::Array< uint8_t, 4 > u32_to_bytes(uint32_t u)
Definition USBMIDI.hpp:16
uint32_t bytes_to_u32(uint8_t b0, uint8_t b1, uint8_t b2, uint8_t b3)
Definition USBMIDI.hpp:25
A class for serial-in/parallel-out shift registers, like the 74HC595 that are connected to the SPI bu...
A class for MIDI interfaces sending MIDI messages over a USB MIDI connection.
Teensy USB Host MIDI driver.
uint32_t read()
Try reading a 4-byte MIDI USB message.
MIDI over USB backend for the Teensy USBHost_t36 library.
void write(MIDIUSBPacket_t data)
USBHostMIDIBackend(USBHost &host)
TeensyHostMIDI< MaxPacketSize > backend
A class for MIDI interfaces sending MIDI messages to a MIDI USB device connected to a Teensy's USB ho...
A class for MIDI interfaces sending MIDI messages to a MIDI USB device connected to a Teensy's USB ho...
void send_now()
Try sending the buffered data now.
void write(MessageType msg)
Send a MIDI USB message.