00001
00002
00003
00004
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
00018
00019
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_