#ifndef _DEV_BROOKS0254_ #define _DEV_BROOKS0254_ #define ERROR (-1) #define OK (0) #include #include #include #include #include #include #include #include "Brooks0254Set.h" #include "Brooks0254Input.h" enum brooksParType { Global=0, Input=1, Output=2, Nowhere=4 }; enum brooksGlobPar_t { GlobZeroSprs = 32, GlobClearSP = 33, GlobAudioBep = 39, GlobComStat = 101, GlobComReset = 102, GlobBatchMode= 103 }; enum brooksInPar_t { InPortType = 0, InDecPoint = 3, InMeasUnit = 4, InFulScale = 9, InTimeBase = 10, InGasFactr = 27, InNonResPV = 101, InTotlzrPV = 102, InValuePV = 103 }; enum brooksOutPar_t { OutPortType = 0, OutSetRate = 1, OutFuncSP = 2, OutFulScale = 9, OutSetVOR = 29, OutSetBatch = 44, OutSetBlend = 45, OutSetSours = 46 }; typedef struct { int chassis; int slot_no; int port_type; int param; } devInfoBrooks0254; static void devBrooks0254_recDisable( struct dbCommon *prec ); static int common_init_record( struct dbCommon *prec, devInfoBrooks0254 **ppdevInfo, char *type); static int common_get_params( devInfoBrooks0254 *pdevInfo, const char*str ); static int brooksCheckParams( devInfoBrooks0254* pdevInfo ); /* static int floorLog2(unsigned int n) ; */ #endif