usb_serial_structs.h
Go to the documentation of this file.
1 //*****************************************************************************
2 //
3 // usb_serial_structs.h - Data structures defining this USB CDC device.
4 //
5 // Copyright (c) 2012-2014 Texas Instruments Incorporated. All rights reserved.
6 // Software License Agreement
7 //
8 // Texas Instruments (TI) is supplying this software for use solely and
9 // exclusively on TI's microcontroller products. The software is owned by
10 // TI and/or its suppliers, and is protected under applicable copyright
11 // laws. You may not combine this software with "viral" open-source
12 // software in order to form a larger program.
13 //
14 // THIS SOFTWARE IS PROVIDED "AS IS" AND WITH ALL FAULTS.
15 // NO WARRANTIES, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT
16 // NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
17 // A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. TI SHALL NOT, UNDER ANY
18 // CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
19 // DAMAGES, FOR ANY REASON WHATSOEVER.
20 //
21 // This is part of revision 2.1.0.12573 of the EK-TM4C123GXL Firmware Package.
22 //
23 //*****************************************************************************
24 
25 #ifndef _USB_SERIAL_STRUCTS_H_
26 #define _USB_SERIAL_STRUCTS_H_
27 
28 //*****************************************************************************
29 //
30 // The size of the transmit and receive buffers used for the redirected UART.
31 // This number should be a power of 2 for best performance. 256 is chosen
32 // pretty much at random though the buffer should be at least twice the size of
33 // a maxmum-sized USB packet.
34 //
35 //*****************************************************************************
36 #ifdef __cpluspus
37 extern "C" {
38 #endif
39 
40 #ifndef UART_BUFFER_SIZE
41 #define UART_BUFFER_SIZE 256
42 #endif
43 
44 //*****************************************************************************
45 //
46 // CDC device callback function prototypes.
47 //
48 //*****************************************************************************
49 uint32_t RxHandler(void *pvCBData, uint32_t ui32Event,
50  uint32_t ui32MsgValue, void *pvMsgData);
51 uint32_t TxHandler(void *pvCBData, uint32_t ui32Event,
52  uint32_t ui32MsgValue, void *pvMsgData);
53 uint32_t ControlHandler(void *pvCBData, uint32_t ui32Event,
54  uint32_t ui32MsgValue, void *pvMsgData);
55 
56 extern tUSBBuffer g_sTxBuffer;
57 extern tUSBBuffer g_sRxBuffer;
58 extern tUSBDCDCDevice g_sCDCDevice;
59 extern uint8_t g_pui8USBTxBuffer[];
60 extern uint8_t g_pui8USBRxBuffer[];
61 
62 #ifdef __cpluspus
63 }
64 #endif
65 
66 #endif
uint8_t g_pui8USBRxBuffer[]
uint8_t g_pui8USBTxBuffer[]
uint32_t RxHandler(void *pvCBData, uint32_t ui32Event, uint32_t ui32MsgValue, void *pvMsgData)
tUSBDCDCDevice g_sCDCDevice
uint32_t TxHandler(void *pvCBData, uint32_t ui32Event, uint32_t ui32MsgValue, void *pvMsgData)
uint32_t ControlHandler(void *pvCBData, uint32_t ui32Event, uint32_t ui32MsgValue, void *pvMsgData)
tUSBBuffer g_sTxBuffer
tUSBBuffer g_sRxBuffer


rosserial_tivac
Author(s): Vitor Matos, Vitor Matos
autogenerated on Fri Jun 7 2019 22:03:04