USBLibAPIGuide
1.00.00.01
|
#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"
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) |