camac_devices_h

/*
**	Copyright 1991, Universities Research Association.  All rights reserved.
*/
/******************************************************************************/
/* camac_devices.h
**
**	This header file contains named constants for CAMAC device types
**
*/
/******************************************************************************/

#ifndef CAMAC_DEVICES_DEFINED		/* do this only once */
#define	CAMAC_DEVICES_DEFINED

#define	CAMAC_052		24		/* unipolar 4 channel PS controller */
#define	CAMAC_053		24		/* bipolar 4 channel PS controller */
#define	CAMAC_055		62		/* 16 channel in by 1 channel out time multiplexed digital or analog output module */
#define	CAMAC_056		36		/* 6 channel 14 bit DAC */
#define	CAMAC_057		12		/* stepping motor controller */
#define	MOOC_CAMAC_057		43		/* stepping motor controller */
#define	CAMAC_057_EXTENDED	140		/* extended C057 support */
#define	CAMAC_064		87		/* 8-channel gate generator status */
#define	CAMAC_069		56		/* MR LLRF timing processor */
#define	CAMAC_070		10		/* 1K point timing generator */
#define	MOOC_CAMAC_070		20		/* 1K point timing generator */
#define	CAMAC_071		10		/* 1K point ramp generator (two waveforms) */
#define	MOOC_CAMAC_071		20		/* 1K point ramp generator (two waveforms) */
#define	CAMAC_071_BOOSTER_CIM	74		/* 1K point ramp generator (Booster Curve Input Module - CIM) */
#define	CAMAC_071_SPLIT		133		/* 1K point ramp generator (split by waveform) */
#define	CAMAC_082		29		/* tank farm interface */
#define	CAMAC_084		21		/* quad scaler */
#define	CAMAC_085		21		/* quad scaler */
#define	CAMAC_084_READ_ONLY	55		/* quad scaler (read only w/ hardware clear) */
#define	CAMAC_085_READ_ONLY	55		/* quad scaler (read only w/ hardware clear) */
#define	CAMAC_116		92		/* safety system status bits */
/* #define	CAMAC_117		66 */	/* relay card for SWICS motion control */
#define	CAMAC_117		154		/* DC power supply controller */
#define	CAMAC_118		158		/* DC power supply controller */
#define	CAMAC_119		19		/* DC power supply controller */
#define	CAMAC_145		113		/* MR vacuum interface */
#define	CAMAC_145_IP		114		/* MR vacuum interface - ion pumps */
#define	CAMAC_154		30		/* stepping motor controller */
#define	CAMAC_159		71		/* power supply controller */
#define	CAMAC_160		22		/* 160 ramp generator ramp memory */
#define	RAMPCARD_160		22		/* 160 ramp generator ramp memory */
#define	TD_C160			22		/* 160 ramp generator ramp memory */
#define	CAMAC_164		73		/* ramp card and PS controller */
#define	RAMPCARD_164		73		/* ramp card and PS controller */
#define	TD_C164			73		/* ramp card and PS controller */
#define	CAMAC_165		28		/* ramped power supply controller */
#define	RAMPCARD_165		28		/* ramped power supply controller */
#define	TD_C165			28		/* ramped power supply controller */
#define	CAMAC_166		50		/* MDAT transmitter */
#define	CAMAC_169		27		/* MDAT receiver */
#define	CAMAC_172		18		/* time line generator memory */
#define	CAMAC_175		15		/* event generator channel */
#define	CAMAC_176		151		/* TCLK generator module */
#define	CAMAC_177		16		/* 8 channel TCLK timer card */
#define	TIMER_177		16		/* 8 channel TCLK timer card */
#define	TIMER_177_EVENTS	17		/* 8 channel TCLK timer card (reference events) */
#define	CAMAC_178		83		/* TCLK event decoder */
#define	CAMAC_180		23		/* status and control module */
#define	CAMAC_181		23		/* status and control module */
#define	CAMAC_182		32		/* 2-word digital output module */
#define	CAMAC_183		72		/* 2-word digital output module */
#define	CAMAC_184		69		/* general purpose digital I/O module */
#define	CAMAC_185		70		/* general purpose digital input module */
#define	CAMAC_186		104		/* digital input and output for SCI */
#define	CAMAC_189		141		/* CAMAC 189 module */
#define	CAMAC_190		13		/* MADC single channel */
#define	MOOC_CAMAC_190		66		/* MADC single channel */
#define	MADC			13		/* MADC single channel */
#define	MOOC_MADC		66		/* MADC single channel */
#define	MADC_AGGREGATE		14		/* aggregate MADC channels */
#define	MOOC_MADC_AGGREGATE	65		/* aggregate MADC channels */
#define	MADC_PROGRAMMABLE	58		/* programmable list of MADC channels */
#define	CAMAC_191		20		/* fast digitizer for flying wires */
#define	CAMAC_192		75		/* wire scanner ctlr single calculated values for parameter page */
#define	CAMAC_192_SPECIAL	76		/* C192 multiwire (special multiwire support) */
#define	CAMAC_193		110		/* MR voltage to ground snapshot */
#define	MOOC_CAMAC_193		109		/* voltage to ground snapshot */
#define	CAMAC_193_INDIVIDUAL	138		/* individual 193 support */
#define	CAMAC_200		59		/* abort concentrator */
#define	CAMAC_201		33		/* abort link generator */
#define	CAMAC_202		160		/* beam synch clock monitor */
#define	CAMAC_204		18		/* beam permit/trigger qualifier */
#define	CAMAC_205		37		/* 'ODDMOD' accelerator statistics */
#define	CAMAC_216		102		/* DC power supply controller */
#define	CAMAC_217		157		/* DC power supply controller */
#define	CAMAC_218		159		/* DC power supply controller */
#define	CAMAC_219		156		/* DC power supply controller */
#define	CAMAC_265		45		/* ramp card and PS controller */
#define	RAMPCARD_265		45		/* ramp card and PS controller */
#define	TD_C265			45		/* ramp card and PS controller */
#define	CAMAC_266		123		/* time at 150 GeV generator */
#define	CAMAC_269		111		/* MRPS link receiver */
#define	CAMAC_276		152		/* beam synch clock generator module */
#define	CAMAC_277		39		/* 8 channel BSCLK timer card */
#define	TIMER_277		39		/* 8 channel BSCLK timer card */
#define	CAMAC_279		38		/* 2 channel BSCLK timer card */
#define	TIMER_279		38		/* 2 channel BSCLK timer card */
#define	CAMAC_280		90		/* BSCLK pulse processor */
#define	CAMAC_281		90		/* BSCLK pulse processor */
#define	CAMAC_282		90		/* BSCLK pulse processor */
#define	CAMAC_284		105		/* pulsed digital output */
#define	CAMAC_287		78		/* two channel TCLK timer */
#define	CAMAC_288		77		/* 288 octal pulse delay */
#define	CAMAC_290		66		/* C290 MADC single channel */
#define	CAMAC_333_CLEAR		125		/* scalers - read and clear */
#define	CAMAC_333		126		/* scalers - read (no clear) */
#define	CAMAC_333_SCALERS	134		/* CAMAC 333 8 channel 24 bit binary scaler */
#define	CAMAC_334		124		/* SVX trip scalers */
#define	CAMAC_335		127		/* SVX trip BLMs - 'A' board */
#define	CAMAC_336		128		/* SVX trip BLMs - 'B' board */
#define	CAMAC_365		85		/* ramp card */
#define	RAMPCARD_365		85		/* ramp card */
#define	TD_C365			85		/* ramp card */
#define	CAMAC_372		103		/* RF function generator */
#define	CAMAC_377		80		/* 8 channel TCLK timer card - battery backed */
#define	TIMER_377		80		/* 8 channel TCLK timer card - battery backed */
#define	TIMER_377_EVENTS	81		/* 8 channel TCLK timer card - battery backed (reference events) */
#define	CAMAC_379		89		/* 8 channel BSCLK timer card - battery backed */
#define	TIMER_379		89		/* 8 channel BSCLK timer card - battery backed */
#define	TIMER_379_EVENTS	150		/* 8 channel BSCLK timer card - battery backed (reference events) */
#define CAMAC_453		112		/* ramp card and PS controller */
#define RAMPCARD_453		112		/* ramp card and PS controller */
#define TD_C453			112		/* ramp card and PS controller */
#define	CAMAC_453_MUX		54		/* ramp card reference MUX */
#define	CAMAC_460		153		/* ramp card and PS controller */
#define	RAMPCARD_460		153		/* ramp card and PS controller */
#define	TD_C460			153		/* ramp card and PS controller */
#define CAMAC_465		115		/* ramp card and PS controller */
#define RAMPCARD_465		115		/* ramp card and PS controller */
#define TD_C465			115		/* ramp card and PS controller */
#define CAMAC_466		115		/* ramp card and PS controller */
#define TD_C466			115		/* ramp card and PS controller */
#define CAMAC_467		115		/* ramp card and PS controller */
#define TD_C467			115		/* ramp card and PS controller */
#define CAMAC_468		115		/* ramp card and PS controller */
#define TD_C468			115		/* ramp card and PS controller */
#define	CAMAC_473		165		/* ramp card and PS controller */
#define	RAMPCARD_473		165		/* ramp card and PS controller */
#define	TD_C473			165		/* ramp card and PS controller */
#define	CAMAC_475		166		/* ramp card and PS controller */
#define	RAMPCARD_475		166		/* ramp card and PS controller */
#define	TD_C475			166		/* ramp card and PS controller */
#define	CAMAC_477		161		/* 4 channel TCLK timer card */
#define	TIMER_477		161		/* 4 channel TCLK timer card */
#define	TIMER_477_EVENTS	162		/* 4 channel TCLK timer card (reference events) */
#define	CAMAC_479		155		/* C479 beam synch timer */
#define	TIMER_479		155		/* C479 beam synch timer */

/* special devices */

#define	DT_UP_TIME		2		/* front end up time */
#define	DT_PSEUDO_CAMAC		9		/* pseudo CAMAC driver */
#define	DT_ADHOC_DATAPOOL	11		/* ad hoc datapool */
#define	DT_SDAMPER_CONTROL	25		/* super damper control */
#define	DT_2323_DELAY		31		/* LeCroy 2323 delay card */
#define	DT_4222_DELAY		34		/* LeCroy 4222 delay card */
#define	DT_BPM_FLASH_TRIGGER	35		/* BPM flash event trigger */
#define	DT_2248_INT_ADC		40		/* 2248 charge integrating A/D */
#define	DT_2249_INT_ADC		41		/* 2249 charge integrating A/D */
#define	DT_COAXIAL_SWITCH	42		/* multipole coaxial switch */
#define	DT_PBAR_MADC_LIST	44		/* special P-bar externally triggered 190 lists */
#define	DT_BPM_ANALOG_MUX	51		/* BPM mux, analog readbacks */
#define	DT_4208_DELAY_TIMER	53		/* LeCroy 4208 delay timer */
#define	DT_SDAMPER_DIVIDER	57		/* super damper divider board */
#define	DT_BPM_TIMESTAMP	60		/* BPM time stamps */
#define	DT_BPM_TBT		61		/* BPM turn by turn beam position */
#define	DT_BOOSTER_BATCH_INT	63		/* Booster batch intensity (B:BATCHS) */
#define	DT_HUMIDITY_CALC	64		/* humidity calculation (special MADC support) (M:HUMID) */
#define	DT_LCW_TOTAL		67		/* LCW totalizer (220D pulse train integrator) */
#define	DT_SPECIAL_BCD		68		/* 185 special 7 digit BCD support */
#define	DT_BOOSTER_ANALOG_MUX	79		/* Booster analog MUX */
#define	DT_RF_FREQ_SYNTHESIZER	82		/* Sciteq RF frequency synthesizer */
#define	DT_SUPERCYCLE_TIME	84		/* supercycle time (G:SCTIME) */
#define	DT_PBAR_CALCULATED	86		/* special P-bar calculated values */
#define	DT_SPECIAL_GAS_ALARM	86		/* special system GAS alarms */
#define	DT_GAS_DRIVER		87		/* GAS driver */
#define	DT_FE_STATS		88		/* front end statistics */
#define	DT_RAW_CAMAC		88		/* raw CAMAC SSDN support */
#define	DT_ADHOC_SWITCH		91		/* ad hoc switch */
#define	DT_BLOCK_TRANSFER	91		/* block transfer on/off */
#define	DT_SUPER_DAMPER_POS	93		/* super damper position memory */
#define	DT_SWIC_BUFFERS		94		/* SWIC/SEM scanner buffers */
#define	DT_SWIC_PARAM		95		/* SWIC/SEM scanner single calculated parameter and gains */
#define	DT_INJ_COG_OFFSET	96		/* bunch number/cogging offset during collider injection */
#define	DT_E760_TIME_STAMPS	97		/* LeCroy 4448 coincidence register for E760 time stamps */
#define	DT_E760_INTERFACE	98		/* 032 communications interface to E760 VAX */
#define	DT_DIFF_OR_SUM		99		/* difference or sum of two signals */
#define	DT_RF_TRIP_LOG		100		/* RF trip log counts */
#define	DT_CHL_DATAPOOL		101		/* special CHL data pool */
#define	DT_UPTIME		102		/* up time since last reboot */
#define	DT_E735_LOSSES		102		/* time normalized p and p-bar losses at C0 E735 */
#define	DT_JOHNSON_CONTROL	106		/* Johnson controller desired temperatures */
#define	DT_MR_LCW_TEMP		107		/* MR LCW average temperatures */
#define	DT_JOHNSON_CONTROL_SET	108		/* Johnson controller setpoints */
#define	DT_MR_VOLTS_TO_GND	109		/* individual voltage to ground channels */
#define	DT_MR_LCW_LEAK		116		/* MR LCW leak rates */
#define	DT_RS232_NORMAL		117		/* CAMAC 3344 normal RS232 device */
#define	DT_SAM_ADC		118		/* 3527 SAM ADC converter */
#define	DT_DAC_5408		119		/* model 5408 DAC */
#define	DT_PISA_BOX		120		/* Pisa box DAC */
#define	DT_RS232_LONG		121		/* CAMAC 3344 RS232 device (int pattern) */
#define	DT_SVX_PS		122		/* SVX power supplies */
#define	DT_RESET_SLOT		129		/* reset an arbitrary slot */
#define	DT_FRIG_WC_LENGTH	130		/* get length of frig wild card list */
#define	DT_FRIG_WC_NAMES	131		/* get names for frig wild card list */
#define	DT_SLC_INTERFACE	132		/* SLC interface routines */
#define	DT_TCLK_SPY		135		/* CAMAC TCLK spy */
#define	DT_BBM_MADC_SUM		136		/* beam budget monitor MADC sums */
#define	DT_2232_ADC		137		/* LeCroy 2232 ADC */
#define	DT_BTR_STATISTICS	139		/* Block TRansfer statistics */
#define	DT_TEST_DEVICE		142		/* test device */
#define	DT_PAUX_165_DEVICE	143		/* PAUX 165-like device */
#define	DT_PAUX_265_DEVICE	144		/* PAUX 265-like device */
#define	DT_PAUX_SSC_CNTRL	145		/* PAUX start/stop/continue control */
#define	DT_PAUX_P_STOP		146		/* PAUX P stop value */
#define	DT_PAUX_SHR_MEM		147		/* PAUX shared memory device */
#define	DT_PAUX_XTIME		148		/* PAUX XTime value */
#define	DT_MI_BPM_TBT_POSITION	149		/* Main Injector/Tevatron BPM turn by turn beam position */
#define	DT_MI_BPM_TBT_TRIGGER	149		/* Main Injector/Tevatron BPM turn by turn trigger */
#define	DT_MI_TEV_BPM_TBT_POSITION	149	/* Main Injector/Tevatron BPM turn by turn beam position */
#define	DT_MI_TEV_BPM_TBT_TRIGGER	149	/* Main Injector/Tevatron BPM turn by turn trigger */
#define	DT_MOOC_HRM_ADC_0	178		/* HRM ADC 0 */
#define	DT_MOOC_HRM_ADC_1	179		/* HRM ADC 1 */
#define	DT_MOOC_HRM_ADC_2	180		/* HRM ADC 2 */
#define	DT_MOOC_HRM_ADC_3	181		/* HRM ADC 3 */
#define	DT_SLD_STATS		199		/* SLD statistics */

#endif