1/**************************************************************************** 2**+-----------------------------------------------------------------------+** 3**| |** 4**| Copyright(c) 1998 - 2008 Texas Instruments. All rights reserved. |** 5**| All rights reserved. |** 6**| |** 7**| Redistribution and use in source and binary forms, with or without |** 8**| modification, are permitted provided that the following conditions |** 9**| are met: |** 10**| |** 11**| * Redistributions of source code must retain the above copyright |** 12**| notice, this list of conditions and the following disclaimer. |** 13**| * Redistributions in binary form must reproduce the above copyright |** 14**| notice, this list of conditions and the following disclaimer in |** 15**| the documentation and/or other materials provided with the |** 16**| distribution. |** 17**| * Neither the name Texas Instruments nor the names of its |** 18**| contributors may be used to endorse or promote products derived |** 19**| from this software without specific prior written permission. |** 20**| |** 21**| THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |** 22**| "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |** 23**| LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |** 24**| A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |** 25**| OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |** 26**| SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |** 27**| LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |** 28**| DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |** 29**| THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |** 30**| (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |** 31**| OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |** 32**| |** 33**+-----------------------------------------------------------------------+** 34****************************************************************************/ 35 36#ifndef _TYPES_H 37#define _TYPES_H 38#define TYPES_H 39 40/*typedef unsigned char uint8;*/ 41/*typedef unsigned short uint16;*/ 42/*typedef unsigned int uint32;*/ 43/*typedef tiULONGLONG uint64;*/ 44 45/*typedef char int8;*/ 46/*typedef short int16;*/ 47/*typedef int int32;*/ 48 49/*typedef uint8 MACAddress[6];*/ 50 51#ifndef TRUE 52#define TRUE 1 53#endif 54 55#ifndef FALSE 56#define FALSE 0 57#endif 58 59#define BIT_0 0x00000001 60#define BIT_1 0x00000002 61#define BIT_2 0x00000004 62#define BIT_3 0x00000008 63#define BIT_4 0x00000010 64#define BIT_5 0x00000020 65#define BIT_6 0x00000040 66#define BIT_7 0x00000080 67#define BIT_8 0x00000100 68#define BIT_9 0x00000200 69#define BIT_10 0x00000400 70#define BIT_11 0x00000800 71#define BIT_12 0x00001000 72#define BIT_13 0x00002000 73#define BIT_14 0x00004000 74#define BIT_15 0x00008000 75#define BIT_16 0x00010000 76#define BIT_17 0x00020000 77#define BIT_18 0x00040000 78#define BIT_19 0x00080000 79#define BIT_20 0x00100000 80#define BIT_21 0x00200000 81#define BIT_22 0x00400000 82#define BIT_23 0x00800000 83#define BIT_24 0x01000000 84#define BIT_25 0x02000000 85#define BIT_26 0x04000000 86#define BIT_27 0x08000000 87#define BIT_28 0x10000000 88#define BIT_29 0x20000000 89#define BIT_30 0x40000000 90#define BIT_31 0x80000000 91 92#define BIT_32 0x00000001 93#define BIT_33 0x00000002 94#define BIT_34 0x00000004 95#define BIT_35 0x00000008 96#define BIT_36 0x00000010 97#define BIT_37 0x00000020 98#define BIT_38 0x00000040 99#define BIT_39 0x00000080 100#define BIT_40 0x00000100 101#define BIT_41 0x00000200 102#define BIT_42 0x00000400 103#define BIT_43 0x00000800 104#define BIT_44 0x00001000 105#define BIT_45 0x00002000 106#define BIT_46 0x00004000 107#define BIT_47 0x00008000 108#define BIT_48 0x00010000 109#define BIT_49 0x00020000 110#define BIT_50 0x00040000 111#define BIT_51 0x00080000 112#define BIT_52 0x00100000 113#define BIT_53 0x00200000 114#define BIT_54 0x00400000 115#define BIT_55 0x00800000 116#define BIT_56 0x01000000 117#define BIT_57 0x02000000 118#define BIT_58 0x04000000 119#define BIT_59 0x08000000 120#define BIT_60 0x10000000 121#define BIT_61 0x20000000 122#define BIT_62 0x40000000 123#define BIT_63 0x80000000 124 125#endif /*_TYPES_H*/ 126