Main Page   Class Hierarchy   Alphabetical List   Data Structures   File List   Data Fields   Globals  

locdefs.h

Go to the documentation of this file.
00001 //
00002 // locdefs.h
00003 //
00004 // This file has some things specific to a given target application.
00005 //
00006 
00007 #ifndef _LOCDEFS_H_
00008 #define _LOCDEFS_H_
00009 
00010 #define STG_SUCCESS  0
00011 #define STG_FAILURE  1
00012 
00013 #define NUM_AXIS_IN_SYS     8
00014 #define MAX_AXIS            8
00015 
00016 //
00017 // digital I/O port stuff
00018 //
00019 // begin to use the enumerated type, rather than the defines
00020 //
00021 typedef enum { A_dir = 0x01, B_dir = 0x02, C_lo_dir = 0x04,
00022                C_hi_dir = 0x08, C_dir = 0x0c, D_lo_dir = 0x10,
00023                            D_hiDir = 0x20, D_dir = 0x30 }   eDir_typ;
00024 typedef enum { A_port, B_port, C_port, D_port } ePort_typ;
00025 typedef enum { HomeSwitchFORWARD, HomeSwitchREVERSE } eHomeDir_typ;
00026 
00027 #define STG_PORT_A        0x01
00028 #define STG_PORT_B        0x02
00029 #define STG_PORT_C_LO     0x04
00030 #define STG_PORT_C_HI     0x08
00031 #define STG_PORT_C        (STG_PORT_C_LO | STG_PORT_C_HI)
00032 #define STG_PORT_D_LO     0x10
00033 #define STG_PORT_D_HI     0x20
00034 #define STG_PORT_D        (STG_PORT_D_LO | STG_PORT_D_HI)
00035 #define STG_PORT_INPUT    0
00036 #define STG_PORT_OUTPUT   1
00037 
00038 #endif // _LOCDEFS_H_

Generated on Sun Dec 2 15:27:41 2001 for EMC by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001