Macros | Functions | Variables
usbdenum.c File Reference
#include <stdbool.h>
#include <stdint.h>
#include "ti/devices/msp432e4/driverlib/driverlib.h"
#include "ti/devices/msp432e4/driverlib/rtos_bindings.h"
#include "ti/usblib/msp432e4/usblib.h"
#include "ti/usblib/msp432e4/usblibpriv.h"
#include "ti/usblib/msp432e4/usbulpi.h"
#include "usbdevice.h"
#include "usbdevicepriv.h"
Include dependency graph for usbdenum.c:

Macros

#define HALT_EP_IN   0
 
#define HALT_EP_OUT   1
 
#define EP0_MAX_PACKET_SIZE   64
 
#define DEV_ADDR_PENDING   0x80000000
 
#define DEFAULT_CONFIG_ID   1
 
#define REMOTE_WAKEUP_PULSE_MS   10
 
#define REMOTE_WAKEUP_READY_MS   20
 
#define USBLIB_LPM_STATE_DISABLED   0x00000000
 
#define USBLIB_LPM_STATE_AWAKE   0x00000001
 
#define USBLIB_LPM_STATE_SLEEP   0x00000002
 

Functions

void USBDCDDeviceInfoInit (uint32_t ui32Index, tDeviceInfo *psDeviceInfo)
 
void USBDCDInit (uint32_t ui32Index, tDeviceInfo *psDevice, void *pvDCDCBData)
 
void USBDCDTerm (uint32_t ui32Index)
 
void USBDCDRequestDataEP0 (uint32_t ui32Index, uint8_t *pui8Data, uint32_t ui32Size)
 
void USBDCDSendDataEP0 (uint32_t ui32Index, uint8_t *pui8Data, uint32_t ui32Size)
 
void USBDCDSetDefaultConfiguration (uint32_t ui32Index, uint32_t ui32DefaultConfig)
 
void USBDCDStallEP0 (uint32_t ui32Index)
 
void USBDCDPowerStatusSet (uint32_t ui32Index, uint8_t ui8Power)
 
bool USBDCDFeatureSet (uint32_t ui32Index, uint32_t ui32Feature, void *pvFeature)
 
bool USBDCDFeatureGet (uint32_t ui32Index, uint32_t ui32Feature, void *pvFeature)
 
bool USBDCDRemoteWakeLPM (uint32_t ui32Index)
 
bool USBDCDRemoteWakeupRequest (uint32_t ui32Index)
 
void USBDeviceResumeTickHandler (tDCDInstance *psDevInst)
 
void USBDeviceEnumHandler (tDCDInstance *pDevInstance)
 
void USBDeviceEnumResetHandler (tDCDInstance *pDevInstance)
 
void USBDeviceIntHandlerInternal (uint32_t ui32Index, uint32_t ui32Status)
 

Variables

tUSBMode g_iUSBMode
 
tDCDInstance g_psDCDInst [1]
 
tDeviceInfog_ppsDevInfo [1]
 
Copyright 2018, Texas Instruments Incorporated