1#ifndef SBL_USB_MIDI_HPP_
2#define SBL_USB_MIDI_HPP_
61 static uint32_t
read(uint8_t* buf, uint32_t max_len);
86 static uint32_t
write(
const uint8_t* data, uint32_t len, uint8_t port = 0);
USB MIDI device port (static class)
static bool connected()
Check if USB MIDI interface is mounted by host.
static uint32_t write(const uint8_t *data, uint32_t len, uint8_t port=0)
Write raw MIDI bytes to USB MIDI (TX)
static uint8_t out_port_count()
How many output ports this target has.
static uint32_t read(uint8_t *buf, uint32_t max_len)
Read decoded MIDI bytes from USB (RX)
static bool send(const sbl::midi::MidiEvent &event, uint8_t port=0)
Send a MidiEvent over USB MIDI (TX)