Skip to content

Struct daisy::MidiUartTransport::Config

ClassList > daisy > MidiUartTransport > Config

Configuration structure for UART MIDI.

  • #include <midi.h>

Public Attributes

Type Name
UartHandler::Config::Peripheral periph
Pin rx
uint8_t * rx_buffer
size_t rx_buffer_size
Pin tx

Public Functions

Type Name
Config ()

Public Attributes Documentation

variable periph

UartHandler::Config::Peripheral daisy::MidiUartTransport::Config::periph;

variable rx

Pin daisy::MidiUartTransport::Config::rx;

variable rx_buffer

uint8_t* daisy::MidiUartTransport::Config::rx_buffer;

Pointer to buffer for DMA UART rx byte transfer in background.

By default this uses a shared buffer in DMA_BUFFER_MEM_SECTION, which can only be utilized for a single UART peripheral. To use MIDI with multiple UART peripherals, you must provide your own buffer, allocated to a DMA-capable memory section.


variable rx_buffer_size

size_t daisy::MidiUartTransport::Config::rx_buffer_size;

Size in bytes of rx_buffer.

This size determines the maximum Rx bytes readable by the UART in the background. By default it's set to the size of the default shared rx_buffer (256 bytes). While much smaller sizes can be used, data can get missed if the buffer is too small.


variable tx

Pin daisy::MidiUartTransport::Config::tx;

Public Functions Documentation

function Config

daisy::MidiUartTransport::Config::Config () 


The documentation for this class was generated from the following file external-docs/libDaisy/src/hid/midi.h