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

USB Transport for MIDI. More...

Detailed Description

USB Transport for MIDI.

#include <usb_midi.h>

Classes

struct  Config
 

Public Types

typedef void(* MidiRxParseCallback) (uint8_t *data, size_t size, void *context)
 

Public Member Functions

void Init (Config config)
 
void StartRx (MidiRxParseCallback callback, void *context)
 
bool RxActive ()
 
void FlushRx ()
 
void Tx (uint8_t *buffer, size_t size)
 
 MidiUsbTransport ()
 
 ~MidiUsbTransport ()
 
 MidiUsbTransport (const MidiUsbTransport &other)=default
 
MidiUsbTransportoperator= (const MidiUsbTransport &other)=default
 

Member Typedef Documentation

◆ MidiRxParseCallback

typedef void(* daisy::MidiUsbTransport::MidiRxParseCallback) (uint8_t *data, size_t size, void *context)

Constructor & Destructor Documentation

◆ MidiUsbTransport() [1/2]

daisy::MidiUsbTransport::MidiUsbTransport ( )
inline

◆ ~MidiUsbTransport()

daisy::MidiUsbTransport::~MidiUsbTransport ( )
inline

◆ MidiUsbTransport() [2/2]

daisy::MidiUsbTransport::MidiUsbTransport ( const MidiUsbTransport other)
default

Member Function Documentation

◆ FlushRx()

void daisy::MidiUsbTransport::FlushRx ( )

◆ Init()

void daisy::MidiUsbTransport::Init ( Config  config)

◆ operator=()

MidiUsbTransport & daisy::MidiUsbTransport::operator= ( const MidiUsbTransport other)
default

◆ RxActive()

bool daisy::MidiUsbTransport::RxActive ( )

◆ StartRx()

void daisy::MidiUsbTransport::StartRx ( MidiRxParseCallback  callback,
void context 
)

◆ Tx()

void daisy::MidiUsbTransport::Tx ( uint8_t buffer,
size_t  size 
)

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