#*************************************************************************
# Copyright (c) 2002 The University of Chicago, as Operator of Argonne
#     National Laboratory.
# Copyright (c) 2002 The Regents of the University of California, as
#     Operator of Los Alamos National Laboratory.
# EPICS BASE Versions 3.13.7
# and higher are distributed subject to a Software License Agreement found
# in file LICENSE that is included with this distribution. 
#*************************************************************************
menu(egMOD1) {
	choice(egMOD1_Off,"Off")
	choice(egMOD1_Normal,"Normal")
	choice(egMOD1_Normal_Recycle,"Normal Recycle")
	choice(egMOD1_Single,"Single")
	choice(egMOD1_Alternate,"Alternate")
}
recordtype(eg) {
	include "dbCommon.dbd" 
	field(OUT,DBF_OUTLINK) {
		prompt("Output Specification")
		promptgroup(GUI_OUTPUT)
		interest(1)
	}
	field(MOD1,DBF_MENU) {
		prompt("RAM 1 Operating Mode")
		promptgroup(GUI_DISPLAY)
		pp(TRUE)
		interest(1)
		menu(egMOD1)
	}
	field(R1SP,DBF_DOUBLE) {
		prompt("RAM 1 Clock (Hz)")
		promptgroup(GUI_DISPLAY)
		special(SPC_NOMOD)
		pp(TRUE)
		interest(1)
	}
	field(MOD2,DBF_MENU) {
		prompt("RAM 2 Operating Mode")
		promptgroup(GUI_DISPLAY)
		pp(TRUE)
		interest(1)
		menu(egMOD1)
	}
	field(R2SP,DBF_DOUBLE) {
		prompt("RAM 2 Clock (Hz)")
		promptgroup(GUI_DISPLAY)
		special(SPC_NOMOD)
		pp(TRUE)
		interest(1)
	}
	field(LMD1,DBF_MENU) {
		prompt("Last Operating Mode1")
		special(SPC_NOMOD)
		pp(TRUE)
		interest(1)
		menu(egMOD1)
	}
	field(LMD2,DBF_MENU) {
		prompt("Last Operating Mode2")
		special(SPC_NOMOD)
		pp(TRUE)
		interest(1)
		menu(egMOD1)
	}
	field(FIFO,DBF_MENU) {
		prompt("Input FIFO Enable")
		promptgroup(GUI_DISPLAY)
		pp(TRUE)
		interest(1)
		menu(menuYesNo)
	}
	field(LFFO,DBF_MENU) {
		prompt("Last FIFO Enable")
		special(SPC_NOMOD)
		pp(TRUE)
		interest(1)
		menu(menuYesNo)
	}
	field(CLR1,DBF_CHAR) {
		prompt("Clear Sequence 1")
		pp(TRUE)
		interest(1)
	}
	field(CLR2,DBF_CHAR) {
		prompt("Clear Sequence 2")
		pp(TRUE)
		interest(1)
	}
	field(TRG1,DBF_CHAR) {
		prompt("Trigger Sequence 1")
		pp(TRUE)
		interest(1)
	}
	field(TRG2,DBF_CHAR) {
		prompt("Trigger Sequence 2")
		pp(TRUE)
		interest(1)
	}
	field(ENAB,DBF_MENU) {
		prompt("Master Enable")
		promptgroup(GUI_DISPLAY)
		pp(TRUE)
		interest(1)
		menu(menuYesNo)
	}
	field(LENA,DBF_LONG) {
		prompt("Last Master Enable")
		special(SPC_NOMOD)
		pp(TRUE)
		interest(1)
	}
	field(TAXI,DBF_LONG) {
		prompt("Taxi Violation")
		interest(1)
	}
	field(LTAX,DBF_LONG) {
		prompt("Last Taxi Violation")
		special(SPC_NOMOD)
		interest(1)
	}
	field(VME,DBF_LONG) {
		prompt("Generate VME Event")
		pp(TRUE)
		interest(1)
	}
	field(ETE0,DBF_MENU) {
		prompt("Trigger 0 Enable")
		promptgroup(GUI_DISPLAY)
		pp(TRUE)
		interest(1)
		menu(menuYesNo)
	}
	field(ET0,DBF_LONG) {
		prompt("Trigger 0 Event")
		promptgroup(GUI_DISPLAY)
		pp(TRUE)
		base(HEX)
		interest(1)
	}
	field(LET0,DBF_LONG) {
		prompt("Last Trigger 0 Event")
		special(SPC_NOMOD)
		pp(TRUE)
		interest(1)
	}
	field(ETE1,DBF_MENU) {
		prompt("Trigger 1 Enable")
		promptgroup(GUI_DISPLAY)
		pp(TRUE)
		interest(1)
		menu(menuYesNo)
	}
	field(ET1,DBF_LONG) {
		prompt("Trigger 1 Event")
		promptgroup(GUI_DISPLAY)
		pp(TRUE)
		base(HEX)
		interest(1)
	}
	field(LET1,DBF_LONG) {
		prompt("Last Trigger 1 Event")
		special(SPC_NOMOD)
		pp(TRUE)
		interest(1)
	}
	field(ETE2,DBF_MENU) {
		prompt("Trigger 2 Enable")
		promptgroup(GUI_DISPLAY)
		pp(TRUE)
		interest(1)
		menu(menuYesNo)
	}
	field(ET2,DBF_LONG) {
		prompt("Trigger 2 Event")
		promptgroup(GUI_DISPLAY)
		pp(TRUE)
		base(HEX)
		interest(1)
	}
	field(LET2,DBF_LONG) {
		prompt("Last Trigger 2 Event")
		special(SPC_NOMOD)
		pp(TRUE)
		interest(1)
	}
	field(ETE3,DBF_MENU) {
		prompt("Trigger 3 Enable")
		promptgroup(GUI_DISPLAY)
		pp(TRUE)
		interest(1)
		menu(menuYesNo)
	}
	field(ET3,DBF_LONG) {
		prompt("Trigger 3 Event")
		promptgroup(GUI_DISPLAY)
		pp(TRUE)
		base(HEX)
		interest(1)
	}
	field(LET3,DBF_LONG) {
		prompt("Last Trigger 3 Event")
		special(SPC_NOMOD)
		pp(TRUE)
		interest(1)
	}
	field(ETE4,DBF_MENU) {
		prompt("Trigger 4 Enable")
		promptgroup(GUI_DISPLAY)
		pp(TRUE)
		interest(1)
		menu(menuYesNo)
	}
	field(ET4,DBF_LONG) {
		prompt("Trigger 4 Event")
		promptgroup(GUI_DISPLAY)
		pp(TRUE)
		base(HEX)
		interest(1)
	}
	field(LET4,DBF_LONG) {
		prompt("Last Trigger 4 Event")
		special(SPC_NOMOD)
		pp(TRUE)
		interest(1)
	}
	field(ETE5,DBF_MENU) {
		prompt("Trigger 5 Enable")
		promptgroup(GUI_DISPLAY)
		pp(TRUE)
		interest(1)
		menu(menuYesNo)
	}
	field(ET5,DBF_LONG) {
		prompt("Trigger 5 Event")
		promptgroup(GUI_DISPLAY)
		pp(TRUE)
		base(HEX)
		interest(1)
	}
	field(LET5,DBF_LONG) {
		prompt("Last Trigger 5 Event")
		special(SPC_NOMOD)
		pp(TRUE)
		interest(1)
	}
	field(ETE6,DBF_MENU) {
		prompt("Trigger 6 Enable")
		promptgroup(GUI_DISPLAY)
		pp(TRUE)
		interest(1)
		menu(menuYesNo)
	}
	field(ET6,DBF_LONG) {
		prompt("Trigger 6 Event")
		promptgroup(GUI_DISPLAY)
		pp(TRUE)
		base(HEX)
		interest(1)
	}
	field(LET6,DBF_LONG) {
		prompt("Last Trigger 6 Event")
		special(SPC_NOMOD)
		pp(TRUE)
		interest(1)
	}
	field(ETE7,DBF_MENU) {
		prompt("Trigger 7 Enable")
		promptgroup(GUI_DISPLAY)
		pp(TRUE)
		interest(1)
		menu(menuYesNo)
	}
	field(ET7,DBF_LONG) {
		prompt("Trigger 7 Event")
		promptgroup(GUI_DISPLAY)
		pp(TRUE)
		base(HEX)
		interest(1)
	}
	field(LET7,DBF_LONG) {
		prompt("Last Trigger 7 Event")
		special(SPC_NOMOD)
		pp(TRUE)
		interest(1)
	}
	field(VAL,DBF_CHAR) {
		prompt("Worthless Value")
		asl(ASL0)
		special(SPC_NOMOD)
		interest(1)
	}
}
