// Borland C++ Builder
// Copyright (c) 1995, 2002 by Borland Software Corporation
// All rights reserved

// (DO NOT EDIT: machine generated header) 'i332_def.pas' rev: 6.00

#ifndef i332_defHPP
#define i332_defHPP

#pragma delphiheader begin
#pragma option push -w-
#pragma option push -Vx
#include <SysInit.hpp>	// Pascal unit
#include <System.hpp>	// Pascal unit

//-- user supplied -----------------------------------------------------------

//-- type declarations -------------------------------------------------------
typedef Shortint TAxes;

typedef int TAxisArray[8];

typedef char TAxLbls[8];

typedef char TI332ID[16];

#pragma pack(push, 4)
struct TI332Info
{
	int ifcMode;
	int ifcPara;
	int ifcErr;
	int i332Ver;
	char i332ID[16];
} ;
#pragma pack(pop)

#pragma pack(push, 4)
struct TI332InfoEx
{
	int Size;
	int i332Ver;
	int i332Dat;
	int i332Axes;
	int i332RAMSize;
	char i332ID[16];
} ;
#pragma pack(pop)

//-- var, const, procedure ---------------------------------------------------
static const Shortint icSetDist = 0x0;
static const Shortint icSetPos = 0x1;
static const Shortint icSetCP = 0x2;
static const Byte icGetPos = 0x81;
static const Shortint icSetSFDist = 0x10;
static const Shortint icSetSFVCmd = 0x11;
static const Shortint icSetSFV = 0x11;
static const Byte icGetRest = 0x83;
static const Byte icGetPos0 = 0x85;
static const Shortint sfPos = 0x0;
static const Byte sfNeg = 0x80;
static const Shortint sfStd = 0x0;
static const Shortint sfVCmd = 0x1;
static const Shortint sfVMax = 0x3;
static const Shortint sfVSS = 0x4;
static const Word sfBreak = 0xffff;
static const Shortint sfLSOff = 0x10;
static const Shortint sfPotiOff = 0x20;
static const Shortint icSFRef = 0x50;
static const Word rm = 0xf00;
static const Word rmRef = 0x1000;
static const Word rmPos = 0x2000;
static const Word rmSWLS = 0x4000;
static const Shortint icSFAsync = 0x51;
static const Word asAbs = 0x8000;
static const Shortint icSFHand = 0x52;
static const Shortint icSFJoystick = 0x56;
static const Shortint icJSKennlinie = 0x16;
static const Shortint icSFHandRad = 0x54;
static const Shortint icSetDG_my = 0x12;
static const Shortint icSetDG_pls = 0x13;
static const Byte icGetSFDist = 0x90;
static const Byte icGetSFVCur = 0x91;
static const Byte icGetSFV = 0x91;
static const Byte icGetPIDCmdPos = 0xa0;
static const Byte icGetPIDCurPos = 0xa1;
static const Byte icGetPIDFErr = 0xa2;
static const Word icSetAP = 0x4000;
static const Word icGetAP = 0x4080;
static const Shortint apVMax = 0x0;
static const Shortint apVStart = 0x1;
static const Shortint apVStop = 0x2;
static const Shortint apAcc = 0x3;
static const Shortint apDec = 0x4;
static const Shortint apMod = 0x5;
static const Shortint apStep = 0x6;
static const Shortint apmm = 0x7;
static const Shortint apVRef = 0x8;
static const Shortint apVHys = 0x9;
static const Shortint apVRefP = 0xa;
static const Shortint apHys = 0xb;
static const Shortint apHysMax = 0xc;
static const Shortint apLS = 0xd;
static const Shortint lsPInB = 0x0;
static const Shortint lsPInF = 0x1;
static const Shortint lsPPolB = 0x1;
static const Shortint lsPPolF = 0x2;
static const Shortint lsPRefB = 0x2;
static const Shortint lsPRefF = 0x4;
static const Shortint lsPHDirB = 0x4;
static const Shortint lsPHDirF = 0x10;
static const Shortint lsPRDirB = 0x5;
static const Shortint lsPRDirF = 0x20;
static const Shortint lsMInB = 0x8;
static const Word lsMInF = 0x100;
static const Shortint lsMPolB = 0x9;
static const Word lsMPolF = 0x200;
static const Shortint lsMRefB = 0xa;
static const Word lsMRefF = 0x400;
static const Shortint lsMHDirB = 0xc;
static const Word lsMHDirF = 0x1000;
static const Shortint lsMRDirB = 0xd;
static const Word lsMRDirF = 0x2000;
static const Shortint lsChgB = 0x7;
static const Byte lsChgF = 0x80;
static const Shortint lsRefMB = 0xf;
static const Word lsRefMF = 0x8000;
static const Word lsDirF = 0x3737;
static const Shortint apLSMax = 0xf;
static const Shortint apChar = 0x10;
static const Shortint acPathB = 0x0;
static const Shortint acPathF = 0x1;
static const Shortint acSMB = 0x8;
static const Word acSMF = 0x100;
static const Shortint acDCB = 0x9;
static const Word acDCF = 0x200;
static const Shortint acTypMsk = 0x3;
static const Word acDrvMsk = 0x700;
static const Shortint apSM = 0x11;
static const Shortint smPlsPolB = 0x0;
static const Shortint smPlsPolF = 0x1;
static const Shortint smDirPolB = 0x1;
static const Shortint smDirPolF = 0x2;
static const Shortint apDC = 0x12;
static const Shortint dcEnOutB = 0x0;
static const Shortint dcEnOutF = 0x1;
static const Shortint dcEnPolB = 0x1;
static const Shortint dcEnPolF = 0x2;
static const Shortint dcRdyInB = 0x2;
static const Shortint dcRdyInF = 0x4;
static const Shortint dcRdyPolB = 0x3;
static const Shortint dcRdyPolF = 0x8;
static const Shortint dcRefInB = 0x4;
static const Shortint dcRefInF = 0x10;
static const Shortint dcRefPolB = 0x5;
static const Shortint dcRefPolF = 0x20;
static const Shortint dcDGInvB = 0x8;
static const Word dcDGInvF = 0x100;
static const Shortint dcDACInvB = 0x9;
static const Word dcDACInvF = 0x200;
static const Shortint apLSDeltaM = 0x14;
static const Shortint apLSDeltaP = 0x15;
static const Shortint apRefOffs = 0x16;
static const Shortint apRefPos = 0x17;
static const Shortint apPFac = 0x18;
static const Shortint apIFac = 0x19;
static const Shortint apDFac = 0x1a;
static const Shortint apVFac = 0x1b;
static const Shortint apInPos = 0x1c;
static const Shortint apFEMax = 0x1d;
static const Shortint ap0Off = 0x1e;
static const Shortint apAmpMax = 0x1f;
static const Shortint apdFMax = 0x20;
static const Word icAxisOvl = 0x6000;
static const Word icIPL = 0x8000;
static const Word icIPLlin = 0x8001;
static const Word icIPLcw = 0x8002;
static const Word icIPLccw = 0x8003;
static const Byte iplModePos = 0x80;
static const Shortint iplModePath = 0x0;
static const Word icIPLWait = 0x8004;
static const Word icSetID = 0x8400;
static const Word icGetID = 0x8480;
static const Word icSetStdM = 0x8410;
static const int m03Beg = 0x10000;
static const int m04Beg = 0x20000;
static const int m05Beg = 0x30000;
static const Shortint m03End = 0x1;
static const Shortint m04End = 0x2;
static const Shortint m05End = 0x3;
static const Word icGetStdMCur = 0xc885;
static const Word icSetWait = 0x8401;
static const Word icGetWait = 0x8481;
static const Word icSetAccFac = 0x8406;
static const Word icSetDecFac = 0x8407;
static const Word icSetVCmd = 0x9000;
static const Word icGetVCmd = 0x9080;
static const Word icGetVCur = 0x9081;
static const Word icSetSCmd = 0x9010;
static const Word icGetSCmd = 0x9090;
static const Word icGetSCur = 0x9091;
static const Word icSetOvr = 0x9800;
static const Word icGetOvr = 0x9084;
static const Word icSetMP = 0xb000;
static const Word icGetMP = 0xb080;
static const Shortint mpCode = 0x8;
static const Shortint mpRAMSize = 0x10;
static const Shortint mpAxis = 0x1f;
static const Shortint mpPotiInit = 0x5b;
static const Shortint mpSP_Data = 0x30;
static const Shortint mpSP_MPorts = 0x31;
static const Shortint mpSP_SMax = 0x33;
static const Shortint mpSMOutDef = 0x3c;
static const Shortint mpSMOutPAR = 0x40;
static const Shortint mpEnOutDef = 0x3d;
static const Shortint mpEnOutPAR = 0x41;
static const Shortint mpIOOutDef = 0x3f;
static const Shortint mpIOOutPAR = 0x43;
static const Shortint mpFEFatal = 0x49;
static const Shortint mpEmStop = 0x6f;
static const Shortint emActiveB = 0xf;
static const Word emActiveF = 0x8000;
static const Shortint emStop = 0x0;
static const Shortint emBreak = 0x1;
static const Word icStatus = 0xc000;
static const Shortint stLSB = 0x0;
static const Shortint stLSF = 0x1;
static const Shortint stErrB = 0x1;
static const Shortint stErrF = 0x2;
static const Shortint stOVB = 0x2;
static const Shortint stOVF = 0x4;
static const Shortint stMVB = 0x3;
static const Shortint stMVF = 0x8;
static const Shortint stFEB = 0x4;
static const Shortint stFEF = 0x10;
static const Shortint stBNEB = 0x5;
static const Shortint stBNEF = 0x20;
static const Shortint stFEMaxB = 0x6;
static const Shortint stFEMaxF = 0x40;
static const Shortint stSFB = 0x8;
static const Word stSFF = 0x100;
static const Shortint stSSB = 0xc;
static const Word stSSF = 0x1000;
static const Shortint stSCB = 0xd;
static const Word stSCF = 0x2000;
static const Word icGetBlockCnt = 0xb100;
static const Word icGetErrNo = 0xc100;
static const Shortint ieROMChkSum = 0x1;
static const Shortint ieRefHys = 0x11;
static const Shortint ieEmergency = 0x41;
static const Shortint ieEmergency0 = 0x40;
static const Shortint ieEmergency1 = 0x41;
static const Shortint iePID = 0x20;
static const Shortint ieIPL = 0x21;
static const Word icGetPIDInfo = 0xc800;
static const Word icGetRefInfo = 0xc883;
static const Word icGetSFInfo = 0xc900;
static const Word icSFBreak = 0xc9ff;
static const Word icSetPIDEn = 0xcc00;
static const Word icGetLS = 0xd000;
static const Word icGetLSAkt = 0xd001;
static const Word icLSOff = 0xd0ff;
static const Word icMPorts = 0xd200;
static const Word icPorts = 0xd100;
static const Shortint pgIO1 = 0x60;
static const Shortint pgIO2 = 0x70;
static const Shortint pgSM = 0x0;
static const Shortint pgLS = 0x10;
static const Shortint pgRef = 0x20;
static const Shortint pgEn = 0x20;
static const Shortint pgRdy = 0x30;
static const Shortint pmPut = 0x0;
static const Shortint pmClr = 0x1;
static const Shortint pmSet = 0x2;
static const Shortint pmChg = 0x3;
static const Word icSetMPorts = 0xd200;
static const Shortint psBeg = 0x0;
static const Shortint psEnd = 0x8;
static const Word icSetPorts = 0xd100;
static const Word icGetPorts = 0xd180;
static const Shortint prOutBuf = 0x4;
static const Shortint prOutPAR = 0x8;
static const Shortint prPort = 0xc;
static const Word icGetOutBuf = 0xd184;
static const Word icGetInPortC = 0xd18c;
static const Word icGetInPort = 0xd18c;
static const Word icSetOutBuf = 0xd104;
static const Word icSetOutPort = 0xd10c;
static const Word icSetMOutBuf = 0xd204;
static const Word icGetMOutBuf = 0xd284;
static const Word icSetOutPAR = 0xd108;
static const Word icGetOutPAR = 0xd188;
static const Word icGetDG = 0xd880;
static const Word icSetDAC = 0xd840;
static const Word icGetDAC = 0xd8c0;
static const Word icGetADC = 0xd890;
static const Word icGetVerNo = 0xf000;
static const Word icGetVerDat = 0xf001;
static const Word icGetVerStr = 0xf100;
static const Word icAPEnd = 0xfe00;
static const Word icRestart0 = 0xff00;
static const Word icRestart1 = 0xff01;
static const Word icRestart2 = 0xff02;
static const Word icRestart3 = 0xff03;
static const Word icRestart5 = 0xff05;
static const Word icRestart11 = 0xff11;
static const Word icRestart12 = 0xff12;
static const Word icRestart13 = 0xff13;
static const Word icRestart14 = 0xff14;
static const Word icRestart15 = 0xff15;
static const Word icClrFE = 0xff0a;
static const Word icInitMP = 0xff08;
static const Word icResetMP = 0xff0b;
static const Shortint brModePutL = 0x0;
static const Shortint brModePutH = 0x10;
static const Shortint brModePut = 0x1;
static const Byte brModeGetL = 0x80;
static const Byte brModeGetH = 0x90;
static const Byte brModeGet = 0x81;
static const Shortint brModeClrL = 0x20;
static const Shortint brModeClrH = 0x30;
static const Shortint brModeClr = 0x21;
static const Shortint brModeSetL = 0x40;
static const Shortint brModeSetH = 0x50;
static const Shortint brModeSet = 0x41;
static const Shortint brModeChgL = 0x60;
static const Shortint brModeChgH = 0x70;
static const Shortint brModeChg = 0x61;
static const Byte brModeClrB = 0xa0;
static const Byte brModeSetB = 0xc0;
static const Byte brModeChgB = 0xe0;
static const Shortint imNoIFC = 0x0;
static const Shortint imISA = 0x8;
static const Shortint imPCI = 0xc;
static const Shortint imUSB = 0xd;
static const Shortint imExt = 0xf;
static const Shortint imCOM = 0x10;
static const Shortint imCOM1 = 0x11;
static const Shortint imCOM2 = 0x12;
static const Shortint imCOM3 = 0x13;
static const Shortint imCOM4 = 0x14;
static const Shortint ieNoErr = 0x0;
static const Shortint ieInternal = 0xffffffff;
static const Shortint ieNotImplemented = 0xfffffffe;
static const Shortint ieUnknown = 0xfffffffd;
static const Shortint ieNoIFC = 0xfffffff6;
static const Shortint ieIFC = 0xfffffff5;
static const Shortint ieCOM = 0xfffffff4;
static const Shortint ieDev = 0xfffffff4;
static const Shortint ieInvalid = 0xfffffff3;
static const Shortint ieNoI332 = 0xffffffec;
static const Shortint ieTimeOut = 0xffffffeb;
static const Shortint ieSync = 0xffffffea;
static const Shortint Axes = 0x8;
static const unsigned UndefL = 0x80000000;
static const unsigned Minus0 = 0x80000000;
static const Shortint FEilgang = 0x0;
static const Shortint fAbs = 0x1;
static const Shortint fRel = 0x0;
static const Shortint fCW = 0x4;
static const Shortint fCCW = 0x0;
static const Shortint deNoError = 0x0;
static const Shortint deAxisNo = 0x1;
static const Shortint deSFAktiv = 0x2;
static const Shortint deSFRtg0 = 0x3;
static const Shortint deRtgLS = 0x4;
static const Shortint deSFDist0 = 0x5;
static const Shortint deIPL_OV = 0x6;
#pragma option pop	// -w-
#pragma option pop	// -Vx

#pragma delphiheader end.
//-- end unit ----------------------------------------------------------------
#endif	// i332_def
