diff options
| author | HiFiPhile <[email protected]> | 2026-05-08 13:13:01 +0200 |
|---|---|---|
| committer | HiFiPhile <[email protected]> | 2026-05-08 13:13:08 +0200 |
| commit | 21fbee1e63e3f756bb991ccb6477ec2b69f53eb8 (patch) | |
| tree | 858a9d204a570a0a883d3c29a037d089ad48a0d6 /src/class/midi | |
| parent | 5951d07ad9de9d05127348f110024ac08bf5e676 (diff) | |
| parent | d21fdd98f34241f52a01832e3c4133cd03a94d0a (diff) | |
Merge remote-tracking branch 'tinyusb/master' into ncm_packet_filter
Signed-off-by: HiFiPhile <[email protected]>
Diffstat (limited to 'src/class/midi')
| -rw-r--r-- | src/class/midi/midi_host.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/class/midi/midi_host.h b/src/class/midi/midi_host.h index b9ab0130d..8fdfd8966 100644 --- a/src/class/midi/midi_host.h +++ b/src/class/midi/midi_host.h @@ -150,6 +150,13 @@ uint32_t tuh_midi_stream_write(uint8_t idx, uint8_t cable_num, const uint8_t *p_ // Note that this function ignores the CIN field of the MIDI packet // because a number of commercial devices out there do not encode // it properly. +// +// NOTE: this function terminates when it encounters an event whose cable +// number differs from the one being returned. Applications should invoke +// it in a loop until it returns 0 (or until tuh_midi_read_available() +// returns 0) to guarantee the stream FIFO is fully drained per callback. +// Leaving bytes in the FIFO across callbacks can prevent subsequent bulk +// IN transfers from landing. uint32_t tuh_midi_stream_read(uint8_t idx, uint8_t *p_cable_num, uint8_t *p_buffer, uint16_t bufsize); #endif |
