/*-*-C-*-*/ /*==================================================================== Abs: PVs and Defines shared by klystron sequence programs and subroutine support Name: klysInclude.h Auth: 09-Dec-2010, Sonya Hoobler (SONYA) Rev: dd-mmm-yyyy, Reviewer's Name (USERNAME) ---------------------------------------------------------------------- Mod: 24-Feb-2023, K.Luchini (LUCHINI): remove header file dbAccess.h, not used chg argument size in klysTmskCheck add header file epicsTypes.h! ====================================================================*/ #include #include #include #include #include #include #include #include #include #include #include /* Request type */ #define DEACT 0 #define REACT 1 #define ACT 2 #define MAX_N_KLYS 8 /* Number of klystrons in sector */ #define MAX_N_BC 4 /* Number of possible beam codes */ /* Klystron TMSK status */ #define TMSK_BAD 0 #define TMSK_OK 1 /* Klystron status masks (from VMS linac_klys_stat) */ #define LINKLYSTA_ACCEL 0x0001 #define LINKLYSTA_STANDBY 0x0002 #define LINKLYSTA_BAD 0x0004 /* Used in VMS, but we can probably remove #define LINKLYSTA_SLED_TUNED 0x0008 #define LINKLYSTA_SLEDED 0x0010 #define LINKLYSTA_PAMPL 0x0020 #define LINKLYSTA_PPHAS 0x0040 */ /* Klystron HSTA masks */ #define HSTA_GOOD 0x0001 #define HSTA_GOOD 0x0001 #define HSTA_DEAD 0x0004 #define HSTA_OK 0x0002 #define HSTA_MKSU 0x0400 #define HSTA_SS_SB 0x4000 /* Used to set message PV */ #define MSG_NEW_REQUEST 1 #define MSG_ACT_COMP 2 #define MSG_DEACT_COMP 3 #define MSG_TMSK 4 #define MSG_SBST_NOT_ACT 5 #define MSG_BAD_HSTA 6 #define MSG_KLYS_ACT 7 int klysTmskCheck( epicsUInt32 *tmsk, epicsUInt32 *tmsk_bc );