LTKCPP-- LLRP Toolkit C Plus Plus Library
ltkcpp_platform.h
Go to the documentation of this file.
1 
2 /*
3  *****************************************************************************
4  * *
5  * IMPINJ CONFIDENTIAL AND PROPRIETARY *
6  * *
7  * This source code is the sole property of Impinj, Inc. Reproduction or *
8  * utilization of this source code in whole or in part is forbidden without *
9  * the prior written consent of Impinj, Inc. *
10  * *
11  * (c) Copyright Impinj, Inc. 2007,2008. All rights reserved. *
12  * *
13  *****************************************************************************/
14 
26 /*
27  * Include file to establish context
28  * for the LLRP Tool Kit (LTK) C++ platform.
29  */
30 
31 #include <list>
32 #include <string.h> /* memcpy() */
33 #include <time.h>
34 #include <stdlib.h>
35 
36 #define FALSE 0
37 #define TRUE 1
38 
39 namespace LLRP
40 {
41 
42 /*
43  * Typedefs of simple types.
44  * The LTK/C++ uses these types extensively.
45  * To retarget to another C++ platform change
46  * these typedefs. Everything else should be
47  * good to go.
48  */
49 
50 #ifdef linux
51 #include <stdint.h>
53 typedef uint8_t llrp_u8_t;
55 typedef int8_t llrp_s8_t;
57 typedef uint16_t llrp_u16_t;
59 typedef int16_t llrp_s16_t;
61 typedef uint32_t llrp_u32_t;
63 typedef int32_t llrp_s32_t;
65 typedef uint64_t llrp_u64_t;
67 typedef int64_t llrp_s64_t;
69 typedef uint8_t llrp_u1_t;
71 typedef uint8_t llrp_u2_t;
73 typedef uint8_t llrp_utf8_t;
75 typedef bool llrp_bool_t;
77 typedef uint8_t llrp_byte_t;
78 #endif /* linux */
79 
80 #ifdef WIN32
81 typedef unsigned char llrp_u8_t;
82 typedef signed char llrp_s8_t;
83 typedef unsigned short llrp_u16_t;
84 typedef signed short llrp_s16_t;
85 typedef unsigned int llrp_u32_t;
86 typedef signed int llrp_s32_t;
87 typedef unsigned long long llrp_u64_t;
88 typedef signed long long llrp_s64_t;
89 typedef unsigned char llrp_u1_t;
90 typedef unsigned char llrp_u2_t;
91 typedef unsigned char llrp_utf8_t;
92 typedef bool llrp_bool_t;
93 typedef unsigned char llrp_byte_t;
94 #endif /* WIN32 */
95 
96 }; /* namespace LLRP */