| 1 | /*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*\ |
| 2 | |
| 3 | File: octtypevx.h |
| 4 | |
| 5 | Copyright (c) 2001-2007 Octasic Inc. |
| 6 | |
| 7 | Description: |
| 8 | |
| 9 | This file defines the base storage types for the VxWorks environment. |
| 10 | |
| 11 | This file is part of the Octasic OCT6100 GPL API . The OCT6100 GPL API is |
| 12 | free software; you can redistribute it and/or modify it under the terms of |
| 13 | the GNU General Public License as published by the Free Software Foundation; |
| 14 | either version 2 of the License, or (at your option) any later version. |
| 15 | |
| 16 | The OCT6100 GPL API is distributed in the hope that it will be useful, but |
| 17 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY |
| 18 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
| 19 | for more details. |
| 20 | |
| 21 | You should have received a copy of the GNU General Public License |
| 22 | along with the OCT6100 GPL API; if not, write to the Free Software |
| 23 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
| 24 | |
| 25 | $Octasic_Release: OCT612xAPI-01.00-PR49 $ |
| 26 | |
| 27 | $Octasic_Revision: 9 $ |
| 28 | |
| 29 | \*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*/ |
| 30 | |
| 31 | #ifndef __OCTTYPEVX_H__ |
| 32 | #define __OCTTYPEVX_H__ |
| 33 | |
| 34 | /*-------------------------------------------------------------------------- |
| 35 | C language |
| 36 | ----------------------------------------------------------------------------*/ |
| 37 | |
| 38 | #ifdef __cplusplus |
| 39 | extern "C" { |
| 40 | #endif |
| 41 | |
| 42 | #include "vxWorks.h" |
| 43 | |
| 44 | /* 16-bit pointer integer */ |
| 45 | typedef unsigned short *PUINT16; |
| 46 | typedef signed short *PINT16; |
| 47 | |
| 48 | /* 8-bit integer pointer */ |
| 49 | typedef unsigned char *PUINT8; |
| 50 | typedef signed char *PINT8; |
| 51 | |
| 52 | /* 32-bit integer pointer */ |
| 53 | typedef INT32 * PINT32; |
| 54 | typedef UINT32 * PUINT32; |
| 55 | |
| 56 | /* Long integer pointer */ |
| 57 | /*Intel library for file system definition*/ |
| 58 | #ifndef DATATYPE_H |
| 59 | typedef long LONG; |
| 60 | #endif |
| 61 | typedef long * PLONG; |
| 62 | typedef unsigned long * PULONG; |
| 63 | |
| 64 | /* Short integer pointer */ |
| 65 | typedef short SHORT; |
| 66 | typedef short * PSHORT; |
| 67 | typedef unsigned short *PUSHORT; |
| 68 | |
| 69 | /* 8-bit integer*/ |
| 70 | #if (CPU!=SIMNT) && !defined(DATATYPE_H) |
| 71 | typedef char BYTE; |
| 72 | #endif |
| 73 | |
| 74 | |
| 75 | typedef BYTE * PBYTE; |
| 76 | |
| 77 | /* Character and strings */ |
| 78 | /*Intel library for file system definition*/ |
| 79 | #ifndef DATATYPE_H |
| 80 | typedef char CHAR; |
| 81 | #endif |
| 82 | typedef char * PCHAR; |
| 83 | typedef CHAR SZ; |
| 84 | typedef CHAR * PSZ; |
| 85 | typedef signed char OCT_INT8; |
| 86 | |
| 87 | /* Double integers */ |
| 88 | typedef double DOUBLE; |
| 89 | typedef double * PDOUBLE; |
| 90 | typedef float FLOAT; |
| 91 | typedef float * PFLOAT; |
| 92 | |
| 93 | typedef void * PVOID; |
| 94 | |
| 95 | /* Booleans */ |
| 96 | typedef BOOL * PBOOL; |
| 97 | |
| 98 | /* Integers */ |
| 99 | typedef int INT; |
| 100 | typedef int * PINT; |
| 101 | typedef unsigned int PUINT; |
| 102 | |
| 103 | /* Define pseudo-keywords IN and OUT if not defined yet */ |
| 104 | #ifndef IN |
| 105 | #define IN /* IN param */ |
| 106 | #endif |
| 107 | |
| 108 | #ifndef OUT |
| 109 | #define OUT /* OUT param */ |
| 110 | #endif |
| 111 | |
| 112 | /* LONG LONG */ |
| 113 | #define LLONG signed long long |
| 114 | #define PLLONG signed long long * |
| 115 | #define ULLONG unsigned long long |
| 116 | #define PULLONG unsigned long long * |
| 117 | |
| 118 | #ifndef OPT |
| 119 | #define OPT /* OPT param */ |
| 120 | #endif |
| 121 | |
| 122 | typedef PSZ * PPSZ; |
| 123 | |
| 124 | |
| 125 | /*-------------------------------------------------------------------------- |
| 126 | C language |
| 127 | ----------------------------------------------------------------------------*/ |
| 128 | #ifdef __cplusplus |
| 129 | } |
| 130 | #endif |
| 131 | |
| 132 | #endif /* __OCTTYPEVX_H__ */ |