1 //***************************************************************************** 2 // 3 // usbdevicepriv.h - Private header file used to share internal variables and 4 // function prototypes between the various device-related 5 // modules in the USB library. This header MUST NOT be 6 // used by application code. 7 // 8 // Copyright (c) 2008-2010 Texas Instruments Incorporated. All rights reserved. 9 // Software License Agreement 10 // 11 // Texas Instruments (TI) is supplying this software for use solely and 12 // exclusively on TI's microcontroller products. The software is owned by 13 // TI and/or its suppliers, and is protected under applicable copyright 14 // laws. You may not combine this software with "viral" open-source 15 // software in order to form a larger program. 16 // 17 // THIS SOFTWARE IS PROVIDED "AS IS" AND WITH ALL FAULTS. 18 // NO WARRANTIES, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT 19 // NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 20 // A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. TI SHALL NOT, UNDER ANY 21 // CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL 22 // DAMAGES, FOR ANY REASON WHATSOEVER. 23 // 24 // 25 //***************************************************************************** 26 27 #ifndef __USBDEVICEPRIV_H__ 28 #define __USBDEVICEPRIV_H__ 29 30 //***************************************************************************** 31 // 32 // If building with a C++ compiler, make all of the definitions in this header 33 // have a C binding. 34 // 35 //***************************************************************************** 36 #ifdef __cplusplus 37 extern "C" 38 { 39 #endif 40 41 //***************************************************************************** 42 // 43 // Device enumeration functions provided by device/usbenum.c and called from 44 // the interrupt handler in device/usbhandler.c 45 // 46 //***************************************************************************** 47 extern tBoolean USBDeviceConfig(uint32 ulIndex, 48 const tConfigHeader *psConfig, 49 const tFIFOConfig *psFIFOConfig); 50 extern tBoolean USBDeviceConfigAlternate(uint32 ulIndex, 51 const tConfigHeader *psConfig, 52 uint8 ucInterfaceNum, 53 uint8 ucAlternateSetting); 54 extern void USBDeviceResumeTickHandler(uint32 ulIndex); 55 56 //***************************************************************************** 57 // 58 // Mark the end of the C bindings section for C++ compilers. 59 // 60 //***************************************************************************** 61 #ifdef __cplusplus 62 } 63 #endif 64 65 #endif // __USBDEVICEPRIV_H__ 66