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¶
variable rx¶
variable 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 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¶
Public Functions Documentation¶
function Config¶
The documentation for this class was generated from the following file external-docs/libDaisy/src/hid/midi.h