USBLib API Guide  1.00.00.01
Macros | Functions | Variables
usbdcdc.c File Reference
#include <stdbool.h>
#include <stdint.h>
#include "ti/devices/msp432e4/driverlib/driverlib.h"
#include "ti/usblib/msp432e4/usblib.h"
#include "ti/usblib/msp432e4/usbcdc.h"
#include "ti/usblib/msp432e4/usblibpriv.h"
#include "usbdevice.h"
#include "usbdcomp.h"
#include "usbdcdc.h"
Include dependency graph for usbdcdc.c:

Macros

#define USB_RX_ERROR_FLAGS
 
#define MAX_REQUEST_DATA_SIZE   sizeof(tLineCoding)
 
#define CDC_DO_SERIAL_STATE_CHANGE   0
 
#define CDC_DO_SEND_BREAK   1
 
#define CDC_DO_CLEAR_BREAK   2
 
#define CDC_DO_LINE_CODING_CHANGE   3
 
#define CDC_DO_LINE_STATE_CHANGE   4
 
#define CDC_DO_PACKET_RX   5
 
#define RX_BLOCK_OPS
 
#define CONTROL_ENDPOINT   USB_EP_1
 
#define DATA_IN_ENDPOINT   USB_EP_2
 
#define DATA_OUT_ENDPOINT   USB_EP_1
 
#define SERIAL_INTERFACE_CONTROL   0
 
#define SERIAL_INTERFACE_DATA   1
 
#define DATA_IN_EP_MAX_SIZE   USBFIFOSizeToBytes(USB_FIFO_SZ_64)
 
#define DATA_OUT_EP_MAX_SIZE   USBFIFOSizeToBytes(USB_FIFO_SZ_64)
 
#define DATA_IN_EP_MAX_SIZE_HS   USBFIFOSizeToBytes(USB_FIFO_SZ_512)
 
#define DATA_OUT_EP_MAX_SIZE_HS   USBFIFOSizeToBytes(USB_FIFO_SZ_512)
 
#define CTL_IN_EP_MAX_SIZE   USBFIFOSizeToBytes(USB_FIFO_SZ_16)
 
#define USB_CDC_SERIAL_ERRORS
 
#define NUM_CDCSER_SECTIONS
 
#define NUM_COMP_CDCSER_SECTIONS
 

Functions

bool ProcessDataFromHost (tUSBDCDCDevice *psCDCDevice, uint32_t ui32Status)
 
bool ProcessNotificationToHost (tUSBDCDCDevice *psCDCDevice, uint32_t ui32Status)
 
bool ProcessDataToHost (tUSBDCDCDevice *psCDCDevice, uint32_t ui32Status)
 
void * USBDCDCCompositeInit (uint32_t ui32Index, tUSBDCDCDevice *psCDCDevice, tCompositeEntry *psCompEntry)
 
void * USBDCDCInit (uint32_t ui32Index, tUSBDCDCDevice *psCDCDevice)
 
void USBDCDCTerm (void *pvCDCDevice)
 
void * USBDCDCSetControlCBData (void *pvCDCDevice, void *pvCBData)
 
void * USBDCDCSetRxCBData (void *pvCDCDevice, void *pvCBData)
 
void * USBDCDCSetTxCBData (void *pvCDCDevice, void *pvCBData)
 
uint32_t USBDCDCPacketWrite (void *pvCDCDevice, uint8_t *pi8Data, uint32_t ui32Length, bool bLast)
 
uint32_t USBDCDCPacketRead (void *pvCDCDevice, uint8_t *pi8Data, uint32_t ui32Length, bool bLast)
 
uint32_t USBDCDCTxPacketAvailable (void *pvCDCDevice)
 
uint32_t USBDCDCRxPacketAvailable (void *pvCDCDevice)
 
void USBDCDCSerialStateChange (void *pvCDCDevice, uint16_t ui16State)
 
void USBDCDCPowerStatusSet (void *pvCDCDevice, uint8_t ui8Power)
 
bool USBDCDCRemoteWakeupRequest (void *pvCDCDevice)
 

Variables

uint8_t g_pui8CDCSerDeviceDescriptor []
 
uint8_t g_pui8CDCSerDescriptor []
 
const tConfigSection g_sCDCSerConfigSection
 
uint8_t g_pui8IADSerDescriptor [SERDESCRIPTOR_SIZE]
 
const tConfigSection g_sIADSerConfigSection
 
const uint8_t g_pui8CDCSerCommInterface [SERCOMMINTERFACE_SIZE]
 
const tConfigSection g_sCDCSerCommInterfaceSection
 
const uint8_t g_pui8CDCSerDataInterface [SERDATAINTERFACE_SIZE]
 
const tConfigSection g_sCDCSerDataInterfaceSection
 
const uint8_t g_pui8CDCSerDataInterfaceHS [SERDATAINTERFACE_SIZE]
 
const tConfigSection g_sCDCSerDataInterfaceSectionHS
 
const tConfigSectiong_psCDCSerSections []
 
const tConfigSectiong_psCDCSerSectionsHS []
 
const tConfigHeader g_sCDCSerConfigHeader
 
const tConfigHeader g_sCDCSerConfigHeaderHS
 
const tConfigSectiong_psCDCCompSerSections []
 
const tConfigSectiong_psCDCCompSerSectionsHS []
 
const tConfigHeader g_sCDCCompSerConfigHeader
 
const tConfigHeader g_sCDCCompSerConfigHeaderHS
 
const tConfigHeader *const g_ppCDCSerConfigDescriptors []
 
const tConfigHeader *const g_ppCDCSerConfigDescriptorsHS []
 
const tConfigHeader *const g_pCDCCompSerConfigDescriptors []
 
const tConfigHeader *const g_pCDCCompSerConfigDescriptorsHS []
 
const tCustomHandlers g_sCDCHandlers
 
© Copyright 1995-2019, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale