libDaisy
Hardware Library for Daisy
Loading...
Searching...
No Matches
daisy::MidiUsbTransport::Config Struct Reference

#include <usb_midi.h>

Public Types

enum  Periph { INTERNAL = 0 , EXTERNAL , HOST }
 

Public Member Functions

 Config ()
 

Public Attributes

Periph periph
 
uint8_t tx_retry_count
 

Member Enumeration Documentation

◆ Periph

Enumerator
INTERNAL 
EXTERNAL 
HOST 

Constructor & Destructor Documentation

◆ Config()

daisy::MidiUsbTransport::Config::Config ( )
inline

Member Data Documentation

◆ periph

Periph daisy::MidiUsbTransport::Config::periph

◆ tx_retry_count

uint8_t daisy::MidiUsbTransport::Config::tx_retry_count

When sending MIDI messages immediately back-to-back in user code, sometimes the USB CDC driver is still "busy".

This option configures the number of times to retry a Tx after delaying for 100 microseconds (default = 3 retries).

If you set this to zero, Tx will not retry so the attempt will block for slightly less time, but transmit can fail if the Tx state is busy.


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