diff options
| author | Kay Sievers <[email protected]> | 2020-01-16 10:06:52 +0100 |
|---|---|---|
| committer | Kay Sievers <[email protected]> | 2020-01-16 10:11:37 +0100 |
| commit | 73228a67efd122915e43ed445ddaec8285786d28 (patch) | |
| tree | cdb8fbddd3b2f68c36e0a59ef32eace8569eb442 /docs | |
| parent | 4daeb3818571b9f1bf356f13c65e47af91e4ad79 (diff) | |
MIDI: Add packet interface
This changes the internal buffering to the raw 4-byte messages. The
conversion of the messages to a byte-stream moved to the read/write
methods.
It adds a raw packet interface to send and retrieve the raw 4-byte
USB MIDI message:
static inline bool tud_midi_receive (uint8_t packet[4]);
static inline bool tud_midi_send (uint8_t const packet[4]);
MIDI USB packets carry virtual cable/wire/plug data in the packet header,
which cannot be exported in the byte-stream interface. The raw packet
interface allows to send and and receive the complete USB message.
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions
