/*============================================================================= Abs: Function prototypes used by device support for PLL driver. Auth: 16-nov-2005, Dayle Kotturi (dayle): Initial version for LLRF PAD. -----------------------------------------------------------------------------*/ #include "copyright_SLAC.h" /* SLAC copyright comments */ /*----------------------------------------------------------------------------- Mod: (newest to oldest) 28-jan-2008, Robert Steele: Adaptation for PLL =============================================================================*/ #ifndef DRV_PAD_H #define DRV_PAD_H #include "pllMacros.h" #include /* NB: To be called from Cexp> prompt, it doesn't need to be here; To be called from dev*Pll.c, it does */ int pllInitialise(void); int pllInitialiseIntr(void); int pllReport(int interest); int pllGetIntrCount(void); int pllGetScanIOCount(void); int pllEnableIntr(void); int pllDisableIntr(void); int pllSoftTrigger(void); int pllDumpCalDataToFile(void); /* used by devWaveform */ int pllGetIntrCount(); int pllGetScanIOCount(); IOSCANPVT pllGetIoScanPvt(void); /* needed by dev*Pll.c */ /* debug routines used by debug device support. not used in ops */ #ifdef __cplusplus extern "C" { #endif int pllToggleIRQ5(void); void setDiagnosticBit(); void clearDiagnosticBit(); #ifdef __cplusplus } #endif #ifdef DEBUG_BIT /* note that the debug bit uses irq5 */ extern int diagnosticBitType; #define DEBUG_setDiagnosticBitType(n) {if((n)==diagnosticBitType) setDiagnosticBit();} #define DEBUG_clearDiagnosticBitType(n) {if((n)==diagnosticBitType) clearDiagnosticBit();} #else #define DEBUG_setDiagnosticBitType(n) #define DEBUG_clearDiagnosticBitType(n) #endif #define Bit(n) (1<<(n)) #define ABS(n) ((n)<0?-(n):(n)) #endif