# mios32/STM32F4xx/mios32_usb_midi.c File Reference

`#include <mios32.h>`
`#include <usb_core.h>`
`#include <usbd_req.h>`
`#include <usb_regs.h>`
`#include <usbh_core.h>`
`#include <usbh_conf.h>`
`#include <usbh_ioreq.h>`
`#include <usbh_stdreq.h>`
`#include <usbh_hcs.h>`

## Enumerations
enum | USBH_MIDI_transfer_state_t { USBH_MIDI_IDLE, USBH_MIDI_RX, USBH_MIDI_TX }
## Functions
s32 | MIOS32_USB_MIDI_Init (u32 mode)
s32 | MIOS32_USB_MIDI_ChangeConnectionState (u8 connected)
s32 | MIOS32_USB_MIDI_CheckAvailable (u8 cable)
s32 | MIOS32_USB_MIDI_PackageSend_NonBlocking (mios32_midi_package_t package)
s32 | MIOS32_USB_MIDI_PackageSend (mios32_midi_package_t package)
s32 | MIOS32_USB_MIDI_PackageReceive (mios32_midi_package_t *package)
s32 | MIOS32_USB_MIDI_Periodic_mS (void)
void | MIOS32_USB_MIDI_EP1_IN_Callback (u8 bEP, u8 bEPStatus)
void | MIOS32_USB_MIDI_EP2_OUT_Callback (u8 bEP, u8 bEPStatus)
## Variables
USB_OTG_CORE_HANDLE | USB_OTG_dev
uint32_t | USB_rx_buffer [MIOS32_USB_MIDI_DATA_OUT_SIZE/4]
USBH_HOST | USB_Host
const USBH_Class_cb_TypeDef | MIOS32_MIDI_USBH_Callbacks