Zephyr Project API 4.0.99
A Scalable Open Source RTOS
|
USB MIDI 2.0 class device API. More...
Data Structures | |
struct | usbd_midi_ops |
MIDI2 application event handlers. More... | |
Functions | |
int | usbd_midi_send (const struct device *dev, const struct midi_ump ump) |
Send a Universal MIDI Packet to the host. | |
void | usbd_midi_set_ops (const struct device *dev, const struct usbd_midi_ops *ops) |
Set the application event handlers on a USB MIDI device. | |
USB MIDI 2.0 class device API.
#include <include/zephyr/usb/class/usbd_midi2.h>
Send a Universal MIDI Packet to the host.
[in] | dev | The MIDI2 device |
[in] | ump | The packet to send, in Universal MIDI Packet format |
void usbd_midi_set_ops | ( | const struct device * | dev, |
const struct usbd_midi_ops * | ops | ||
) |
#include <include/zephyr/usb/class/usbd_midi2.h>
Set the application event handlers on a USB MIDI device.
[in] | dev | The MIDI2 device |
[in] | ops | The event handlers. Pass NULL to reset all callbacks |