From 562022b6984b18997fab779acae312203cf83991 Mon Sep 17 00:00:00 2001 From: Rolf Bork <rolf.bork@ligo.org> Date: Fri, 4 Jan 2013 22:31:28 +0000 Subject: [PATCH] Added doxygen commentary. git-svn-id: https://redoubt.ligo-wa.caltech.edu/svn/advLigoRTS/trunk@3172 6dcd42c9-f523-4c6d-aada-af552506706e --- src/include/drv/epicsXfer.c | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/src/include/drv/epicsXfer.c b/src/include/drv/epicsXfer.c index 2c69fcd7c..14eb60840 100644 --- a/src/include/drv/epicsXfer.c +++ b/src/include/drv/epicsXfer.c @@ -1,9 +1,15 @@ +/// @file epicsXfer.c +/// @brief File contains routines for: +///< - Exchanging filter module data with EPICS shared memory +///< - Checking for process kill command from EPICS +///< - Ramping algorithm, used by Product.pm part. /************************************************************************/ -/* TASK: updateEpics() */ -/* Initiates/performs functions required on particular clock cycle */ -/* counts. Due to performace reqs of LSC, do not want to do more */ -/* than one housekeeping I/O function per LSC cycle. Resulting */ -/* update rate to/from EPICS is 16Hz. */ +/// Function to exchange filter module data with EPICS via shared memory. +/// @param[in] subcycle Filter Module ID for data transfer. +/// @param[in] *dsp Pointer to process memory fm data. +/// @param[in] *pDsp Pointer to shared memory fm data. +/// @param[in] *dspCoeff Pointer to process memory fm coeff data. +/// @param[in] *pCoeff Pointer to shared memory fm coeff data. /************************************************************************/ inline void updateEpics(int subcycle, FILT_MOD *dsp, @@ -14,7 +20,6 @@ inline void updateEpics(int subcycle, int ii; ii = subcycle; - /* Check for new filter coeffs or history resets */ if((ii >= 0) && (ii < MAX_MODULES)) { checkFiltReset(ii, dsp, pDsp, dspCoeff, MAX_MODULES, pCoeff); @@ -47,15 +52,15 @@ int ii; } +/// Check for process stop command from EPICS +/// @param[in] subcycle Present code cycle +/// @param[in] *plocalEpics Pointer to EPICS data in shared memory inline int checkEpicsReset(int subcycle, CDS_EPICS *plocalEpics){ int ii; ii = subcycle; if ((ii==MAX_MODULES) && (plocalEpics->epicsInput.vmeReset)) { -#ifndef NO_RTL - //printf("VME_RESET PUSHED !!! \n"); -#endif #ifdef ADC_MASTER if (cdsPciModules.adcCount > 0) gsc16ai64AdcStop(); #endif @@ -66,6 +71,7 @@ inline int checkEpicsReset(int subcycle, CDS_EPICS *plocalEpics){ } +/// Perform gain ramping int gainRamp(float gainReq, int rampTime, int id, float *gain, int gainRate) { -- GitLab