- Main Page
- Modules
- Data Structures
- Files
- Related Pages

- File List
- Globals

# mios32/STM32F10x/mios32_usb.c File Reference

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

## 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 | IMR_MSK (CNTR_CTRM | CNTR_RESETM)
#define | MIOS32_USB_MIDI_NUM_INTERFACES 1
#define | MIOS32_USB_MIDI_INTERFACE_NUM 0x00
#define | MIOS32_USB_MIDI_INTERFACE_OFFSET 1
#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_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_DEVICE_DESC 18
## Typedefs
typedef enum _DEVICE_STATE | DEVICE_STATE
## Enumerations
enum | _DEVICE_STATE { UNCONNECTED, ATTACHED, POWERED, SUSPENDED, ADDRESSED, CONFIGURED }
## Functions
s32 | MIOS32_USB_Init (u32 mode)
void | USB_LP_CAN1_RX0_IRQHandler (void)
s32 | MIOS32_USB_IsInitialized (void)
## Variables
DEVICE_INFO * | pInformation
DEVICE | Device_Table
DEVICE_PROP * | pProperty
USER_STANDARD_REQUESTS * | pUser_Standard_Requests
void(*[7]) | pEpInt_IN (void)
void(*[7]) | pEpInt_OUT (void)