# mios32/LPC17xx/mios32_usb.c File Reference

`#include <mios32.h>`
`#include <string.h>`
`#include <usbapi.h>`

## Data Structures
struct | TLineCoding
## Defines
#define | DSCR_DEVICE 1
#define | DSCR_CONFIG 2
#define | DSCR_STRING 3
#define | DSCR_INTRFC 4
#define | DSCR_ENDPNT 5
#define | CS_INTERFACE 0x24
#define | CS_ENDPOINT 0x25
#define | LE_WORD(x) ((x)&0xFF),((x)>>8)
#define | SET_LINE_CODING 0x20
#define | GET_LINE_CODING 0x21
#define | SET_CONTROL_LINE_STATE 0x22
#define | MIOS32_USB_MIDI_NUM_INTERFACES 2
#define | MIOS32_USB_MIDI_AC_INTERFACE_IX 0x00
#define | MIOS32_USB_MIDI_AS_INTERFACE_IX 0x01
#define | MIOS32_USB_MIDI_INTERFACE_OFFSET 2
#define | MIOS32_USB_MIDI_SIZ_CLASS_DESC (7+MIOS32_USB_MIDI_NUM_PORTS*(6+6+9+9)+9+(4+MIOS32_USB_MIDI_NUM_PORTS)+9+(4+MIOS32_USB_MIDI_NUM_PORTS))
#define | MIOS32_USB_MIDI_SIZ_CONFIG_DESC (9+MIOS32_USB_MIDI_USE_AC_INTERFACE*(9+9)+MIOS32_USB_MIDI_SIZ_CLASS_DESC)
#define | MIOS32_USB_MIDI_SIZ_CLASS_DESC_SINGLE_USB (7+1*(6+6+9+9)+9+(4+1)+9+(4+1))
#define | MIOS32_USB_MIDI_SIZ_CONFIG_DESC_SINGLE_USB (9+MIOS32_USB_MIDI_USE_AC_INTERFACE*(9+9)+MIOS32_USB_MIDI_SIZ_CLASS_DESC_SINGLE_USB)
#define | MIOS32_USB_COM_NUM_INTERFACES 2
#define | MIOS32_USB_COM_SIZ_CONFIG_DESC 58
#define | MIOS32_USB_COM_CC_INTERFACE_IX (MIOS32_USB_MIDI_INTERFACE_OFFSET + 0x00)
#define | MIOS32_USB_COM_CD_INTERFACE_IX (MIOS32_USB_MIDI_INTERFACE_OFFSET + 0x01)
#define | MIOS32_USB_COM_INTERFACE_OFFSET (MIOS32_USB_MIDI_INTERFACE_OFFSET + 2)
#define | MIOS32_USB_NUM_INTERFACES (MIOS32_USB_MIDI_NUM_INTERFACES + MIOS32_USB_COM_NUM_INTERFACES)
#define | MIOS32_USB_SIZ_CONFIG_DESC (9 + MIOS32_USB_MIDI_SIZ_CONFIG_DESC + MIOS32_USB_COM_SIZ_CONFIG_DESC)
#define | MIOS32_USB_SIZ_CONFIG_DESC_SINGLE_USB (9 + MIOS32_USB_MIDI_SIZ_CONFIG_DESC_SINGLE_USB)
#define | MIOS32_USB_SIZ_DEVICE_DESC 18
#define | BUFFER_SIZE 100
## Functions
s32 | MIOS32_USB_Init (u32 mode)
void | USB_IRQHandler (void)
s32 | MIOS32_USB_IsInitialized (void)
s32 | MIOS32_USB_ForceSingleUSB (void)