versadac  1
versadac - Scalable Recorder Firmware
types.h
1 /*---------------------------------------------------------------------------*/
2 /* Copyright (C) 2006 Woodhead Software & Electonics. All rights reserved. */
3 /*---------------------------------------------------------------------------*/
4 /* This program is protected by international copyright. */
5 /* */
6 /* The use of this software including but not limited to its Source Code */
7 /* is subject to restrictions as agreed in the license agreement between */
8 /* you and Woodhead. */
9 /* Copying or distribution is not allowed unless expressly permitted */
10 /* according to your license agreement with Woodhead. */
11 /*---------------------------------------------------------------------------*/
12 /* */
13 /* Project : STACK PROFINET Controller */
14 /* Component : Hardware Interface */
15 /* $Workfile:: types.h $*/
16 /* $Revision:: 1 $*/
17 /* $Date:: 7/06/10 11:05 $*/
18 /* */
19 /*---------------------------------------------------------------------------*/
20 /* */
21 /* D e s c r i p t i o n : */
22 /* Network Abstraction Layer */
23 /* */
24 /*---------------------------------------------------------------------------*/
25 
26 #ifndef _TYPES_H
27 #define _TYPES_H
28 
29 
30 /*****************************************************************************/
31 /* DATA TYPE DEFINITION */
32 /*****************************************************************************/
33 
34  #define APP_EXPORT __declspec( dllexport ) void
35 
36 #define APP_NEAR
37 #define APP_FAR
38 
39 #ifndef __export
40  #define __export
41 #endif
42 
43 #define APP_API __stdcall
44 #define APP_CALLBACK APP_API
45 
46 #ifndef VOID
47  #define VOID void
48 #endif
49 
50 #ifndef FALSE
51  #define FALSE 0
52  #define TRUE !FALSE
53 #endif
54 
55 #ifndef APP_FALSE
56  #define APP_FALSE 0
57  #define APP_TRUE !APP_FALSE
58 #endif
59 
60 #define APP_NULL 0
61 
62 #ifndef NULL
63  #define NULL APP_NULL
64 #endif
65 
66 
67 #define TCHAR char
68 #define HANDLE int
69 
70 typedef HANDLE APP_HANDLE, APP_NEAR * APP_PHANDLE, APP_FAR * APP_LPHANDLE;
71 typedef void APP_VOID, APP_NEAR * APP_PVOID, APP_FAR * APP_LPVOID;
72 /*shall be always a 16bits*/
73 typedef short APP_BOOL, APP_NEAR * APP_PBOOL, APP_FAR * APP_LPBOOL;
74 typedef unsigned char APP_BYTE, APP_NEAR * APP_PBYTE, APP_FAR * APP_LPBYTE;
75 typedef char APP_CHAR, APP_NEAR * APP_PCHAR, APP_FAR * APP_LPCHAR;
76 typedef TCHAR APP_TCHAR, APP_NEAR * APP_PTCHAR, APP_FAR * APP_LPTCHAR;
77 typedef short int APP_SHORT, APP_NEAR * APP_PSHORT, APP_FAR * APP_LPSHORT;
78 typedef unsigned short APP_WORD, APP_NEAR * APP_PWORD, APP_FAR * APP_LPWORD;
79 typedef unsigned long APP_DWORD, APP_NEAR * APP_PDWORD, APP_FAR * APP_LPDWORD;
80 typedef long APP_LONG, APP_NEAR * APP_PLONG, APP_FAR * APP_LPLONG;
81 typedef float APP_FLOAT, APP_NEAR * APP_PFLOAT, APP_FAR * APP_LPFLOAT;
82 typedef void * APP_FAR * APP_AR_HANDLE;
83 typedef void * APP_FAR * APP_CR_HANDLE;
84 
85 
86 
87 #endif