This is a class which contains function to interface with the MLX75320
typeDef.h@13:ccf4ab73c33d, 2016-05-17 (annotated)
- Committer:
- TNU
- Date:
- Tue May 17 18:54:04 2016 +0000
- Revision:
- 13:ccf4ab73c33d
- Parent:
- 0:dfe498e03679
Added documentation
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
TNU | 0:dfe498e03679 | 1 | // **************************************************************************** |
TNU | 0:dfe498e03679 | 2 | /*! |
TNU | 0:dfe498e03679 | 3 | Module: Data definitions. |
TNU | 0:dfe498e03679 | 4 | |
TNU | 0:dfe498e03679 | 5 | Platform: Independent |
TNU | 0:dfe498e03679 | 6 | |
TNU | 0:dfe498e03679 | 7 | \file typeDef.h |
TNU | 0:dfe498e03679 | 8 | |
TNU | 0:dfe498e03679 | 9 | \brief Data type definitions header. |
TNU | 0:dfe498e03679 | 10 | For Microsoft type, see this link: |
TNU | 0:dfe498e03679 | 11 | http://msdn.microsoft.com/en-us/library/windows/desktop/aa383751%28v=vs.85%29.aspx |
TNU | 0:dfe498e03679 | 12 | |
TNU | 0:dfe498e03679 | 13 | \author Frédéric Parent |
TNU | 0:dfe498e03679 | 14 | \since Nov 5, 2012 |
TNU | 0:dfe498e03679 | 15 | |
TNU | 0:dfe498e03679 | 16 | \copyright (c) 2012-2013 LeddarTech Inc. All rights reserved. |
TNU | 0:dfe498e03679 | 17 | */ |
TNU | 0:dfe498e03679 | 18 | // *************************************************************************** |
TNU | 0:dfe498e03679 | 19 | |
TNU | 0:dfe498e03679 | 20 | #ifndef __TYPEDEF_H__ |
TNU | 0:dfe498e03679 | 21 | #define __TYPEDEF_H__ |
TNU | 0:dfe498e03679 | 22 | |
TNU | 0:dfe498e03679 | 23 | |
TNU | 0:dfe498e03679 | 24 | //***************************************************************************** |
TNU | 0:dfe498e03679 | 25 | //*************** Header Includes ********************************************* |
TNU | 0:dfe498e03679 | 26 | //***************************************************************************** |
TNU | 0:dfe498e03679 | 27 | |
TNU | 0:dfe498e03679 | 28 | // Standard C libraries include files |
TNU | 0:dfe498e03679 | 29 | #include <stddef.h> // to get size_t, NULL, wchar_t |
TNU | 0:dfe498e03679 | 30 | #include <stdint.h> |
TNU | 0:dfe498e03679 | 31 | #if __STDC_VERSION__ >= 199901L // Support of C99 compiler version. |
TNU | 0:dfe498e03679 | 32 | #include <stdbool.h> // to get bool, true, false |
TNU | 0:dfe498e03679 | 33 | #endif |
TNU | 0:dfe498e03679 | 34 | |
TNU | 0:dfe498e03679 | 35 | |
TNU | 0:dfe498e03679 | 36 | //***************************************************************************** |
TNU | 0:dfe498e03679 | 37 | //************** Constants, Macros and Data Type Definition ******************* |
TNU | 0:dfe498e03679 | 38 | //***************************************************************************** |
TNU | 0:dfe498e03679 | 39 | |
TNU | 0:dfe498e03679 | 40 | //****************************** |
TNU | 0:dfe498e03679 | 41 | // Short name standard types |
TNU | 0:dfe498e03679 | 42 | //****************************** |
TNU | 0:dfe498e03679 | 43 | typedef unsigned long long U64; |
TNU | 0:dfe498e03679 | 44 | typedef unsigned long U32; |
TNU | 0:dfe498e03679 | 45 | typedef unsigned short U16; |
TNU | 0:dfe498e03679 | 46 | typedef unsigned char U8; |
TNU | 0:dfe498e03679 | 47 | typedef long long S64; |
TNU | 0:dfe498e03679 | 48 | typedef long S32; |
TNU | 0:dfe498e03679 | 49 | typedef short S16; |
TNU | 0:dfe498e03679 | 50 | typedef char S8; |
TNU | 0:dfe498e03679 | 51 | typedef float F32; |
TNU | 0:dfe498e03679 | 52 | typedef double F64; |
TNU | 0:dfe498e03679 | 53 | |
TNU | 0:dfe498e03679 | 54 | //******************************************* |
TNU | 0:dfe498e03679 | 55 | // Some standard Microsoft style data types |
TNU | 0:dfe498e03679 | 56 | //****************************************** |
TNU | 0:dfe498e03679 | 57 | #ifndef _WINDOWS_ |
TNU | 0:dfe498e03679 | 58 | #define CONST const |
TNU | 0:dfe498e03679 | 59 | typedef unsigned long long ULONGLONG, *PULONGLONG; |
TNU | 0:dfe498e03679 | 60 | typedef unsigned long DWORD, *PDWORD; |
TNU | 0:dfe498e03679 | 61 | typedef unsigned long ULONG, *PULONG; |
TNU | 0:dfe498e03679 | 62 | typedef unsigned long ULONG_PTR, *PULONG_PTR; |
TNU | 0:dfe498e03679 | 63 | typedef ULONG_PTR SIZE_T, *PSIZE_T; |
TNU | 0:dfe498e03679 | 64 | typedef unsigned int UINT, *PUINT; |
TNU | 0:dfe498e03679 | 65 | typedef unsigned short WORD, *PWORD; |
TNU | 0:dfe498e03679 | 66 | typedef unsigned short USHORT, *PUSHORT; |
TNU | 0:dfe498e03679 | 67 | typedef wchar_t WCHAR, *PWCHAR; |
TNU | 0:dfe498e03679 | 68 | typedef unsigned char BYTE, *PBYTE; |
TNU | 0:dfe498e03679 | 69 | typedef unsigned char UCHAR, *PUCHAR; |
TNU | 0:dfe498e03679 | 70 | typedef BYTE BOOLEAN, *PBOOLEAN; |
TNU | 0:dfe498e03679 | 71 | typedef long long LONGLONG, *PLONGLONG; |
TNU | 0:dfe498e03679 | 72 | typedef long LONG, *PLONG; |
TNU | 0:dfe498e03679 | 73 | typedef int INT, *PINT; |
TNU | 0:dfe498e03679 | 74 | typedef short SHORT, *PSHORT; |
TNU | 0:dfe498e03679 | 75 | typedef char CHAR, *PCHAR; |
TNU | 0:dfe498e03679 | 76 | typedef float FLOAT, *PFLOAT; |
TNU | 0:dfe498e03679 | 77 | typedef void VOID, *PVOID; |
TNU | 0:dfe498e03679 | 78 | typedef PVOID HANDLE, *PHANDLE; |
TNU | 0:dfe498e03679 | 79 | #endif // _WINDOWS_ |
TNU | 0:dfe498e03679 | 80 | |
TNU | 0:dfe498e03679 | 81 | //****************************** |
TNU | 0:dfe498e03679 | 82 | // LeddarTech types |
TNU | 0:dfe498e03679 | 83 | //****************************** |
TNU | 0:dfe498e03679 | 84 | typedef unsigned long long LtUInt64; |
TNU | 0:dfe498e03679 | 85 | #ifdef _MSC_VER |
TNU | 0:dfe498e03679 | 86 | typedef unsigned int LtUInt32; |
TNU | 0:dfe498e03679 | 87 | #else |
TNU | 0:dfe498e03679 | 88 | typedef unsigned long int LtUInt32; |
TNU | 0:dfe498e03679 | 89 | #endif |
TNU | 0:dfe498e03679 | 90 | typedef unsigned short LtUInt16; |
TNU | 0:dfe498e03679 | 91 | typedef unsigned char LtUInt8; |
TNU | 0:dfe498e03679 | 92 | typedef long long LtInt64; |
TNU | 0:dfe498e03679 | 93 | #ifdef _MSC_VER |
TNU | 0:dfe498e03679 | 94 | typedef int LtInt32, LtFixedPoint; |
TNU | 0:dfe498e03679 | 95 | #else |
TNU | 0:dfe498e03679 | 96 | typedef long int LtInt32, LtFixedPoint; |
TNU | 0:dfe498e03679 | 97 | #endif |
TNU | 0:dfe498e03679 | 98 | typedef short LtInt16; |
TNU | 0:dfe498e03679 | 99 | typedef char LtInt8; |
TNU | 0:dfe498e03679 | 100 | typedef float LtFloat32; |
TNU | 0:dfe498e03679 | 101 | typedef double LtFloat64; |
TNU | 0:dfe498e03679 | 102 | |
TNU | 0:dfe498e03679 | 103 | |
TNU | 0:dfe498e03679 | 104 | //****************************** |
TNU | 0:dfe498e03679 | 105 | // LabWindows |
TNU | 0:dfe498e03679 | 106 | //****************************** |
TNU | 0:dfe498e03679 | 107 | typedef unsigned int uint; |
TNU | 0:dfe498e03679 | 108 | typedef unsigned int uint32; |
TNU | 0:dfe498e03679 | 109 | typedef unsigned short uint16; |
TNU | 0:dfe498e03679 | 110 | typedef unsigned char uint8; |
TNU | 0:dfe498e03679 | 111 | #ifndef _EMBEDDED_ENV // To remove compilation warning (redeclaration) into CodeWarrior... |
TNU | 0:dfe498e03679 | 112 | typedef unsigned char uchar; |
TNU | 0:dfe498e03679 | 113 | #endif |
TNU | 0:dfe498e03679 | 114 | |
TNU | 0:dfe498e03679 | 115 | //****************************** |
TNU | 0:dfe498e03679 | 116 | // Boolean definitions. |
TNU | 0:dfe498e03679 | 117 | //****************************** |
TNU | 0:dfe498e03679 | 118 | #if __bool_true_false_are_defined // Normally found in <stdbool.h> |
TNU | 0:dfe498e03679 | 119 | |
TNU | 0:dfe498e03679 | 120 | // Boolean type definition |
TNU | 0:dfe498e03679 | 121 | #ifndef BOOL |
TNU | 0:dfe498e03679 | 122 | #define BOOL bool |
TNU | 0:dfe498e03679 | 123 | #endif |
TNU | 0:dfe498e03679 | 124 | |
TNU | 0:dfe498e03679 | 125 | // Boolean states definitions |
TNU | 0:dfe498e03679 | 126 | #ifndef TRUE |
TNU | 0:dfe498e03679 | 127 | #define TRUE true |
TNU | 0:dfe498e03679 | 128 | #define FALSE false |
TNU | 0:dfe498e03679 | 129 | #endif |
TNU | 0:dfe498e03679 | 130 | |
TNU | 0:dfe498e03679 | 131 | #else // __bool_true_false_are_defined |
TNU | 0:dfe498e03679 | 132 | |
TNU | 0:dfe498e03679 | 133 | // Boolean type definition |
TNU | 0:dfe498e03679 | 134 | #ifndef __cplusplus |
TNU | 0:dfe498e03679 | 135 | #ifndef bool |
TNU | 0:dfe498e03679 | 136 | #define bool unsigned char |
TNU | 0:dfe498e03679 | 137 | #endif |
TNU | 0:dfe498e03679 | 138 | #endif |
TNU | 0:dfe498e03679 | 139 | |
TNU | 0:dfe498e03679 | 140 | #ifndef BOOL |
TNU | 0:dfe498e03679 | 141 | #ifdef __cplusplus |
TNU | 0:dfe498e03679 | 142 | #define BOOL bool |
TNU | 0:dfe498e03679 | 143 | #else |
TNU | 0:dfe498e03679 | 144 | #define BOOL unsigned char |
TNU | 0:dfe498e03679 | 145 | #endif |
TNU | 0:dfe498e03679 | 146 | #endif |
TNU | 0:dfe498e03679 | 147 | |
TNU | 0:dfe498e03679 | 148 | // Boolean states definitions |
TNU | 0:dfe498e03679 | 149 | #ifndef TRUE |
TNU | 0:dfe498e03679 | 150 | #ifdef __cplusplus |
TNU | 0:dfe498e03679 | 151 | #define TRUE true |
TNU | 0:dfe498e03679 | 152 | #define FALSE false |
TNU | 0:dfe498e03679 | 153 | #else |
TNU | 0:dfe498e03679 | 154 | #define TRUE ((BOOL) 1) |
TNU | 0:dfe498e03679 | 155 | #define FALSE ((BOOL) 0) |
TNU | 0:dfe498e03679 | 156 | #endif |
TNU | 0:dfe498e03679 | 157 | #endif |
TNU | 0:dfe498e03679 | 158 | #endif // __bool_true_false_are_defined |
TNU | 0:dfe498e03679 | 159 | |
TNU | 0:dfe498e03679 | 160 | |
TNU | 0:dfe498e03679 | 161 | //****************************** |
TNU | 0:dfe498e03679 | 162 | // Null definition. |
TNU | 0:dfe498e03679 | 163 | //****************************** |
TNU | 0:dfe498e03679 | 164 | #ifndef NULL |
TNU | 0:dfe498e03679 | 165 | #define NULL 0L |
TNU | 0:dfe498e03679 | 166 | #endif |
TNU | 0:dfe498e03679 | 167 | |
TNU | 0:dfe498e03679 | 168 | |
TNU | 0:dfe498e03679 | 169 | #endif /* __TYPEDEF_H__ */ |
TNU | 0:dfe498e03679 | 170 |