ltkcpp_platform.h

Go to the documentation of this file.
00001 
00002 /*
00003  *****************************************************************************
00004  *                                                                           *
00005  *                 IMPINJ CONFIDENTIAL AND PROPRIETARY                       *
00006  *                                                                           *
00007  * This source code is the sole property of Impinj, Inc.  Reproduction or    *
00008  * utilization of this source code in whole or in part is forbidden without  *
00009  * the prior written consent of Impinj, Inc.                                 *
00010  *                                                                           *
00011  * (c) Copyright Impinj, Inc. 2007,2008. All rights reserved.                *
00012  *                                                                           *
00013  *****************************************************************************/
00014 
00026 /*
00027  * Include file to establish context
00028  * for the LLRP Tool Kit (LTK) C++ platform.
00029  */
00030 
00031 #include <list>
00032 #include <string.h>         /* memcpy() */
00033 
00034 #define FALSE       0
00035 #define TRUE        1
00036 
00037 namespace LLRP
00038 {
00039 
00040 /*
00041  * Typedefs of simple types.
00042  * The LTK/C++ uses these types extensively.
00043  * To retarget to another C++ platform change
00044  * these typedefs. Everything else should be
00045  * good to go.
00046  */
00047 
00048 #ifdef linux
00049 #include <stdint.h>
00051 typedef uint8_t                 llrp_u8_t;
00053 typedef int8_t                  llrp_s8_t;
00055 typedef uint16_t                llrp_u16_t;
00057 typedef int16_t                 llrp_s16_t;
00059 typedef uint32_t                llrp_u32_t;
00061 typedef int32_t                 llrp_s32_t;
00063 typedef uint64_t                llrp_u64_t;
00065 typedef int64_t                 llrp_s64_t;
00067 typedef uint8_t                 llrp_u1_t;
00069 typedef uint8_t                 llrp_u2_t;
00071 typedef uint8_t                 llrp_utf8_t;
00073 typedef bool                    llrp_bool_t;
00075 typedef uint8_t                 llrp_byte_t;
00076 #endif /* linux */
00077 
00078 #ifdef WIN32
00079 typedef unsigned char           llrp_u8_t;
00080 typedef signed char             llrp_s8_t;
00081 typedef unsigned short          llrp_u16_t;
00082 typedef signed short            llrp_s16_t;
00083 typedef unsigned int            llrp_u32_t;
00084 typedef signed int              llrp_s32_t;
00085 typedef unsigned long long      llrp_u64_t;
00086 typedef signed long long        llrp_s64_t;
00087 typedef unsigned char           llrp_u1_t;
00088 typedef unsigned char           llrp_u2_t;
00089 typedef unsigned char           llrp_utf8_t;
00090 typedef bool                    llrp_bool_t;
00091 typedef unsigned char           llrp_byte_t;
00092 #endif /* WIN32 */
00093 
00094 };  /* namespace LLRP */

Generated on Wed Jun 6 11:55:49 2012 for LTKCPP-- LLRP Toolkit C Plus Plus Library by  doxygen 1.5.9