Macros | Functions | Variables
usb_serial_structs.c File Reference
#include <stdint.h>
#include <stdbool.h>
#include "inc/hw_types.h"
#include "driverlib/rom.h"
#include "driverlib/rom_map.h"
#include "driverlib/usb.h"
#include "usblib/usblib.h"
#include "usblib/usbcdc.h"
#include "usblib/usb-ids.h"
#include "usblib/device/usbdevice.h"
#include "usblib/device/usbdcdc.h"
#include "usb_serial_structs.h"
Include dependency graph for usb_serial_structs.c:

Go to the source code of this file.

Macros

#define NUM_STRING_DESCRIPTORS
 

Functions

uint32_t ControlHandler (void *pvCBData, uint32_t ui32Event, uint32_t ui32MsgValue, void *pvMsgData)
 
uint32_t RxHandler (void *pvCBData, uint32_t ui32Event, uint32_t ui32MsgValue, void *pvMsgData)
 
uint32_t TxHandler (void *pvCBData, uint32_t ui32Event, uint32_t ui32MsgValue, void *pvMsgData)
 

Variables

static volatile bool g_bUSBConfigured = false
 
const uint8_t *const g_ppui8StringDescriptors []
 
const uint8_t g_pui8ConfigString []
 
const uint8_t g_pui8ControlInterfaceString []
 
const uint8_t g_pui8LangDescriptor []
 
const uint8_t g_pui8ManufacturerString []
 
const uint8_t g_pui8ProductString []
 
const uint8_t g_pui8SerialNumberString []
 
uint8_t g_pui8USBRxBuffer [UART_BUFFER_SIZE]
 
uint8_t g_pui8USBTxBuffer [UART_BUFFER_SIZE]
 
tUSBDCDCDevice g_sCDCDevice
 
tUSBBuffer g_sRxBuffer
 
tUSBBuffer g_sTxBuffer
 

Macro Definition Documentation

#define NUM_STRING_DESCRIPTORS
Value:
sizeof(uint8_t *))
const uint8_t *const g_ppui8StringDescriptors[]

Definition at line 151 of file usb_serial_structs.c.

Function Documentation

uint32_t ControlHandler ( void *  pvCBData,
uint32_t  ui32Event,
uint32_t  ui32MsgValue,
void *  pvMsgData 
)

Definition at line 370 of file usb_serial_structs.c.

uint32_t RxHandler ( void *  pvCBData,
uint32_t  ui32Event,
uint32_t  ui32MsgValue,
void *  pvMsgData 
)

Definition at line 287 of file usb_serial_structs.c.

uint32_t TxHandler ( void *  pvCBData,
uint32_t  ui32Event,
uint32_t  ui32MsgValue,
void *  pvMsgData 
)

Definition at line 239 of file usb_serial_structs.c.

Variable Documentation

volatile bool g_bUSBConfigured = false
static

Definition at line 44 of file usb_serial_structs.c.

const uint8_t* const g_ppui8StringDescriptors[]
Initial value:
=
{
}
const uint8_t g_pui8SerialNumberString[]
const uint8_t g_pui8ControlInterfaceString[]
const uint8_t g_pui8ManufacturerString[]
const uint8_t g_pui8ConfigString[]
const uint8_t g_pui8LangDescriptor[]
const uint8_t g_pui8ProductString[]

Definition at line 141 of file usb_serial_structs.c.

const uint8_t g_pui8ConfigString[]
Initial value:
=
{
2 + (26 * 2),
USB_DTYPE_STRING,
'S', 0, 'e', 0, 'l', 0, 'f', 0, ' ', 0, 'P', 0, 'o', 0, 'w', 0,
'e', 0, 'r', 0, 'e', 0, 'd', 0, ' ', 0, 'C', 0, 'o', 0, 'n', 0,
'f', 0, 'i', 0, 'g', 0, 'u', 0, 'r', 0, 'a', 0, 't', 0, 'i', 0,
'o', 0, 'n', 0
}

Definition at line 126 of file usb_serial_structs.c.

const uint8_t g_pui8ControlInterfaceString[]
Initial value:
=
{
2 + (21 * 2),
USB_DTYPE_STRING,
'A', 0, 'C', 0, 'M', 0, ' ', 0, 'C', 0, 'o', 0, 'n', 0, 't', 0,
'r', 0, 'o', 0, 'l', 0, ' ', 0, 'I', 0, 'n', 0, 't', 0, 'e', 0,
'r', 0, 'f', 0, 'a', 0, 'c', 0, 'e', 0
}

Definition at line 112 of file usb_serial_structs.c.

const uint8_t g_pui8LangDescriptor[]
Initial value:
=
{
4,
USB_DTYPE_STRING,
USBShort(USB_LANG_EN_US)
}

Definition at line 62 of file usb_serial_structs.c.

const uint8_t g_pui8ManufacturerString[]
Initial value:
=
{
(17 + 1) * 2,
USB_DTYPE_STRING,
'T', 0, 'e', 0, 'x', 0, 'a', 0, 's', 0, ' ', 0, 'I', 0, 'n', 0, 's', 0,
't', 0, 'r', 0, 'u', 0, 'm', 0, 'e', 0, 'n', 0, 't', 0, 's', 0,
}

Definition at line 74 of file usb_serial_structs.c.

const uint8_t g_pui8ProductString[]
Initial value:
=
{
2 + (16 * 2),
USB_DTYPE_STRING,
'V', 0, 'i', 0, 'r', 0, 't', 0, 'u', 0, 'a', 0, 'l', 0, ' ', 0,
'C', 0, 'O', 0, 'M', 0, ' ', 0, 'P', 0, 'o', 0, 'r', 0, 't', 0
}

Definition at line 87 of file usb_serial_structs.c.

const uint8_t g_pui8SerialNumberString[]
Initial value:
=
{
2 + (8 * 2),
USB_DTYPE_STRING,
'1', 0, '2', 0, '3', 0, '4', 0, '5', 0, '6', 0, '7', 0, '8', 0
}

Definition at line 100 of file usb_serial_structs.c.

uint8_t g_pui8USBRxBuffer[UART_BUFFER_SIZE]

Definition at line 189 of file usb_serial_structs.c.

uint8_t g_pui8USBTxBuffer[UART_BUFFER_SIZE]

Definition at line 207 of file usb_serial_structs.c.

tUSBDCDCDevice g_sCDCDevice
Initial value:
=
{
USB_VID_TI_1CBE,
USB_PID_SERIAL,
0,
USB_CONF_ATTR_SELF_PWR,
(void *)&g_sCDCDevice,
USBBufferEventCallback,
(void *)&g_sRxBuffer,
USBBufferEventCallback,
(void *)&g_sTxBuffer,
}
const uint8_t *const g_ppui8StringDescriptors[]
tUSBBuffer g_sTxBuffer
tUSBBuffer g_sRxBuffer
uint32_t ControlHandler(void *pvCBData, uint32_t ui32Event, uint32_t ui32MsgValue, void *pvMsgData)
tUSBDCDCDevice g_sCDCDevice
#define NUM_STRING_DESCRIPTORS

Definition at line 168 of file usb_serial_structs.c.

tUSBBuffer g_sRxBuffer
Initial value:
=
{
false,
(void *)&g_sCDCDevice,
USBDCDCPacketRead,
USBDCDCRxPacketAvailable,
(void *)&g_sCDCDevice,
}
uint32_t RxHandler(void *pvCBData, uint32_t ui32Event, uint32_t ui32MsgValue, void *pvMsgData)
#define UART_BUFFER_SIZE
tUSBDCDCDevice g_sCDCDevice
uint8_t g_pui8USBRxBuffer[UART_BUFFER_SIZE]

Definition at line 190 of file usb_serial_structs.c.

tUSBBuffer g_sTxBuffer
Initial value:
=
{
true,
(void *)&g_sCDCDevice,
USBDCDCPacketWrite,
USBDCDCTxPacketAvailable,
(void *)&g_sCDCDevice,
}
uint8_t g_pui8USBTxBuffer[UART_BUFFER_SIZE]
#define UART_BUFFER_SIZE
tUSBDCDCDevice g_sCDCDevice
uint32_t TxHandler(void *pvCBData, uint32_t ui32Event, uint32_t ui32MsgValue, void *pvMsgData)

Definition at line 208 of file usb_serial_structs.c.



rosserial_tivac
Author(s): Vitor Matos, Vitor Matos
autogenerated on Mon Jun 10 2019 14:53:43