mikroSDK Reference Manual
Device

Functions list

bool tud_midi_n_mounted (uint8_t itf)
 
uint32_t tud_midi_n_available (uint8_t itf, uint8_t cable_num)
 
uint32_t tud_midi_n_stream_read (uint8_t itf, uint8_t cable_num, void *buffer, uint32_t bufsize)
 
uint32_t tud_midi_n_stream_write (uint8_t itf, uint8_t cable_num, uint8_t const *buffer, uint32_t bufsize)
 
bool tud_midi_n_packet_read (uint8_t itf, uint8_t packet[4])
 
bool tud_midi_n_packet_write (uint8_t itf, uint8_t const packet[4])
 
 TU_ATTR_DEPRECATED ("tud_midi_read() is renamed to tud_midi_stream_read()") static inline uint32_t tud_midi_read(void *buffer
 
 TU_ATTR_DEPRECATED ("tud_midi_write() is renamed to tud_midi_stream_write()") static inline uint32_t tud_midi_write(uint8_t cable_num
 
 TU_ATTR_DEPRECATED ("tud_midi_send() is renamed to tud_midi_packet_write()") static inline bool tud_midi_send(uint8_t packet[4])
 
 TU_ATTR_DEPRECATED ("tud_midi_receive() is renamed to tud_midi_packet_read()") static inline bool tud_midi_receive(uint8_t packet[4])
 
TU_ATTR_WEAK void tud_midi_rx_cb (uint8_t itf)
 
void midid_init (void)
 
void midid_reset (uint8_t rhport)
 
uint16_t midid_open (uint8_t rhport, tusb_desc_interface_t const *itf_desc, uint16_t max_len)
 
bool midid_control_xfer_cb (uint8_t rhport, uint8_t stage, tusb_control_request_t const *request)
 
bool midid_xfer_cb (uint8_t rhport, uint8_t edpt_addr, xfer_result_t result, uint32_t xferred_bytes)
 

Variables

uint32_t bufsize
 
uint8_t const * buffer
 

Variable Documentation

◆ bufsize

uint8_t const uint32_t bufsize
Initial value:
{
return tud_midi_stream_read(buffer, bufsize)