LTKCPP-- LLRP Toolkit C Plus Plus Library
|
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 #include <time.h> 00034 #include <stdlib.h> 00035 00036 #define FALSE 0 00037 #define TRUE 1 00038 00039 namespace LLRP 00040 { 00041 00042 /* 00043 * Typedefs of simple types. 00044 * The LTK/C++ uses these types extensively. 00045 * To retarget to another C++ platform change 00046 * these typedefs. Everything else should be 00047 * good to go. 00048 */ 00049 00050 #ifdef linux 00051 #include <stdint.h> 00053 typedef uint8_t llrp_u8_t; 00055 typedef int8_t llrp_s8_t; 00057 typedef uint16_t llrp_u16_t; 00059 typedef int16_t llrp_s16_t; 00061 typedef uint32_t llrp_u32_t; 00063 typedef int32_t llrp_s32_t; 00065 typedef uint64_t llrp_u64_t; 00067 typedef int64_t llrp_s64_t; 00069 typedef uint8_t llrp_u1_t; 00071 typedef uint8_t llrp_u2_t; 00073 typedef uint8_t llrp_utf8_t; 00075 typedef bool llrp_bool_t; 00077 typedef uint8_t llrp_byte_t; 00078 #endif /* linux */ 00079 00080 #ifdef WIN32 00081 typedef unsigned char llrp_u8_t; 00082 typedef signed char llrp_s8_t; 00083 typedef unsigned short llrp_u16_t; 00084 typedef signed short llrp_s16_t; 00085 typedef unsigned int llrp_u32_t; 00086 typedef signed int llrp_s32_t; 00087 typedef unsigned long long llrp_u64_t; 00088 typedef signed long long llrp_s64_t; 00089 typedef unsigned char llrp_u1_t; 00090 typedef unsigned char llrp_u2_t; 00091 typedef unsigned char llrp_utf8_t; 00092 typedef bool llrp_bool_t; 00093 typedef unsigned char llrp_byte_t; 00094 #endif /* WIN32 */ 00095 00096 }; /* namespace LLRP */