#include <stdbool.h>
#include <stdint.h>
#include "ti/devices/msp432e4/driverlib/driverlib.h"
#include "ti/devices/msp432e4/driverlib/rtos_bindings.h"
#include "usblib.h"
#include "usblibpriv.h"
#include "device/usbdevice.h"
#include "host/usbhost.h"
#include "host/usbhostpriv.h"
Macros | |
#define | USB_HOST_INTS (USB_INTCTRL_VBUS_ERR) |
Enumerations | |
enum | tUSBOTGState { eUSBOTGModeIdle, eUSBOTGModeWaitID, eUSBOTGModeWait, eUSBOTGModeBWaitCon, eUSBOTGModeBDevice, eUSBOTGModeAHost } |
Functions | |
void | USBStackModeSet (uint32_t ui32Index, tUSBMode iUSBMode, tUSBModeCallback pfnCallback) |
void | USB0DualModeIntHandler (void) |
void | USBDualModeInit (uint32_t ui32Index) |
void | USBDualModeTerm (uint32_t ui32Index) |
void | USBOTGModeTerm (uint32_t ui32Index) |
void | USBOTGModeInit (uint32_t ui32Index, uint32_t ui32PollingRate, void *pvPool, uint32_t ui32PoolSize) |
void | USBOTGPollRate (uint32_t ui32Index, uint32_t ui32PollRate) |
void | USB0_IRQOTGModeHandler (void) |
void | OTGDeviceDisconnect (uint32_t ui32Index) |
void | USBOTGMain (uint32_t ui32MsTicks) |
bool | USBOTGFeatureSet (uint32_t ui32Index, uint32_t ui32Feature, void *pvFeature) |
Variables | |
volatile tUSBMode | g_iUSBMode = eUSBModeNone |
volatile uint32_t | g_ui32PollRate |
volatile uint32_t | g_ui32WaitTicks = 0 |
volatile tUSBOTGState | g_eOTGModeState |