Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

strapLcu.h File Reference

#include <vxWorks.h>
#include <semLib.h>
#include <string.h>
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <ioLib.h>
#include <symLib.h>
#include <sysSymTbl.h>
#include <sysLib.h>
#include <taskLib.h>
#include <tickLib.h>
#include <usrLib.h>
#include <errnoLib.h>
#include <vxLib.h>
#include <math.h>
#include <lcudrv.h>
#include "ccs.h"
#include "log.h"
#include "err.h"
#include "db.h"
#include "cmd.h"
#include "lsfDefines.h"

Include dependency graph for strapLcu.h:

Include dependency graph

Go to the source code of this file.

Compounds

union  strapBOARD_STATUS
struct  strapLOG_FILE
struct  strapGlobalStruct
struct  strapSET_PARAMS

Defines

#define strapSET_STATUS_BIT(key)
#define strapRSET_STATUS_BIT(key)
#define IN
#define OUT
#define INOUT
#define DD2R   0.017453292519943295769236907684886127134428718885417
#define M_PI   3.14159265358979323846
#define strapDB_TIMEBASE   0.250
#define strapDEVICE   "/strapdv0"
#define strapSIZE_FILE_NAME   512
#define strapNULL_GATE   1
#define strapFULL_GATE   32
#define strapTEMP_GAP   4
#define strapSETUP_STATIC   1
#define strapSETUP_DYNAMIC   2
#define strapSETUP_BUF_SIZE   50
#define strapMAX_CHOP_POS   5
#define strapST_UNKNOWN   0
#define strapST_OFF   lsfSTATE_OFF
#define strapST_LOADED   lsfSTATE_LOADED
#define strapST_STANDBY   lsfSTATE_STANDBY
#define strapST_ONLINE   lsfSTATE_ONLINE
#define strapSTR_UNKNOWN   "UNKNOWN"
#define strapSTR_OFF   "LOADED"
#define strapSTR_LOADED   "LOADED"
#define strapSTR_STANDBY   "STANDBY"
#define strapSTR_ONLINE   "ONLINE"
#define strapSS_IDLE   lsfSUBSTATE_IDLE
#define strapSS_ERROR   lsfSUBSTATE_ERROR
#define strapSS_TIMEOUT   lsfSUBSTATE_TIMEOUT
#define strapSS_INITIALIZING   lsfSUBSTATE_INITIALIZING
#define strapSS_ACTIVE   lsfSUBSTATE_ACTIVE
#define strapSTART_OPEN   3
#define strapSTART_CLOSE   4
#define strapSTART_CALIB   5
#define strapSTART_STR_OPEN   "open"
#define strapSTART_STR_CLOSE   "close"
#define strapSTART_STR_CALIB   "calibrate"
#define strapNDF_FIND   0
#define strapNDF_DECREASE   -1
#define strapNDF_INCREASE   1
#define strapST_HV   0
#define strapST_TEMP   4
#define strapST_CURR   5
#define strapST_GATE   6
#define strapST_MASK   7

Typedefs

typedef vltINT32 strapDEV_HANDLE

Functions

ccsCOMPL_STAT strapStdOff (ccsERROR *error)
ccsCOMPL_STAT strapStdOnline (ccsERROR *error)
ccsCOMPL_STAT strapStdStandby (ccsERROR *error)
ccsCOMPL_STAT strapStdInit (ccsERROR *error)
ccsCOMPL_STAT strapStdStop (ccsERROR *error)
ccsCOMPL_STAT strapStdSetup (ccsERROR *error)
ccsCOMPL_STAT strapSetIntMatrix (vltFLOAT *im, ccsERROR *error)
ccsCOMPL_STAT strapSetDataRecs (vltUINT16 dataRecs, ccsERROR *error)
ccsCOMPL_STAT strapSetGate (vltINT32 gate, ccsERROR *error)
ccsCOMPL_STAT strapStdStart (vltINT32 mode, ccsERROR *error)
ccsCOMPL_STAT strapSetChoppingMode (vltLOGICAL mode, ccsERROR *error)
ccsCOMPL_STAT strapSetFluxThr (vltINT32 value, ccsERROR *error)
ccsCOMPL_STAT strapSetSkyBackground (vltINT32 counts, ccsERROR *error)
ccsCOMPL_STAT strapSetAFD (vltDOUBLE value, ccsERROR *error)
ccsCOMPL_STAT strapGetAFD (vltDOUBLE *value, ccsERROR *error)
ccsCOMPL_STAT strapDeg2IntMatrix (vltDOUBLE angle, ccsERROR *error)
ccsCOMPL_STAT strapOptimize (vltDOUBLE starMag, ccsERROR *error)
ccsCOMPL_STAT strapGetTotFlux (vltINT32 *totFlux, ccsERROR *error)
ccsCOMPL_STAT strapStartCalib (ccsERROR *error)
ccsCOMPL_STAT strapSetSetup (strapSET_PARAMS *parList, ccsERROR *error)
ccsCOMPL_STAT strapGetSetup (strapSET_PARAMS *parList, ccsERROR *error)
vltUINT16 strapGetIntTime ()
vltINT32 strapNextNDF (vltINT8 flag, vltDOUBLE refFilter)
void strapLogFits (vltINT32 what)
ccsCOMPL_STAT strapSetNDF (vltINT32 idx, ccsERROR *error)
ccsCOMPL_STAT strapGetNDF (vltINT32 *filterIndex, vltDOUBLE *filterFactor, ccsERROR *error)
ccsCOMPL_STAT strapRtServerMode (vltINT32 rtMode, vltINT32 rtDataType, ccsERROR *error)
ccsCOMPL_STAT strapSetTilt (vltDOUBLE xtilt, vltDOUBLE ytilt, ccsERROR *error)
ccsCOMPL_STAT strapSetChopPos (vltUINT16 numPos, vltFLOAT *chopPosX, vltFLOAT *chopPosY, ccsERROR *error)
ccsCOMPL_STAT strapStdSet (vltUINT16 intTime, vltUINT16 thFreq, vltUINT16 skyBack, vltUINT16 diagRate, vltUINT16 dataRecs, vltINT32 flux, vltFLOAT spotx, vltFLOAT spoty, vltFLOAT intMatrix[4], ccsERROR *error)
ccsCOMPL_STAT strapOptimizeNDF (vltINT32 minFlux, vltINT32 maxFlux, vltINT32 ccdFlux, vltLOGICAL selfSearch, ccsERROR *error)
ccsCOMPL_STAT ndfDummySet (vltINT32 idx, ccsERROR *error)
ccsCOMPL_STAT ndfDummyGet (vltINT32 *idx, ccsERROR *error)

Variables

strapGlobalStruct strapInfo


Define Documentation

#define strapSET_STATUS_BIT key   
 

Value:

strapInfo.boardStatus.ui32 = strapInfo.boardStatus.ui32 | key ;\
     if (strapInfo.verbose) printf("SET_BIT   key 0x%08x  0x%08x Hex.\n",key,strapInfo.boardStatus.ui32);

#define strapRSET_STATUS_BIT key   
 

Value:

strapInfo.boardStatus.ui32 = strapInfo.boardStatus.ui32 & ~key ;\
     if (strapInfo.verbose) printf("RESET_BIT key 0x%08x  0x%08x Hex.\n",key,strapInfo.boardStatus.ui32);

#define IN
 

#define OUT
 

#define INOUT
 

#define DD2R   0.017453292519943295769236907684886127134428718885417
 

#define M_PI   3.14159265358979323846
 

#define strapDB_TIMEBASE   0.250
 

#define strapDEVICE   "/strapdv0"
 

#define strapSIZE_FILE_NAME   512
 

#define strapNULL_GATE   1
 

#define strapFULL_GATE   32
 

#define strapTEMP_GAP   4
 

#define strapSETUP_STATIC   1
 

#define strapSETUP_DYNAMIC   2
 

#define strapSETUP_BUF_SIZE   50
 

#define strapMAX_CHOP_POS   5
 

#define strapST_UNKNOWN   0
 

#define strapST_OFF   lsfSTATE_OFF
 

#define strapST_LOADED   lsfSTATE_LOADED
 

#define strapST_STANDBY   lsfSTATE_STANDBY
 

#define strapST_ONLINE   lsfSTATE_ONLINE
 

#define strapSTR_UNKNOWN   "UNKNOWN"
 

#define strapSTR_OFF   "LOADED"
 

#define strapSTR_LOADED   "LOADED"
 

#define strapSTR_STANDBY   "STANDBY"
 

#define strapSTR_ONLINE   "ONLINE"
 

#define strapSS_IDLE   lsfSUBSTATE_IDLE
 

#define strapSS_ERROR   lsfSUBSTATE_ERROR
 

#define strapSS_TIMEOUT   lsfSUBSTATE_TIMEOUT
 

#define strapSS_INITIALIZING   lsfSUBSTATE_INITIALIZING
 

#define strapSS_ACTIVE   lsfSUBSTATE_ACTIVE
 

#define strapSTART_OPEN   3
 

#define strapSTART_CLOSE   4
 

#define strapSTART_CALIB   5
 

#define strapSTART_STR_OPEN   "open"
 

#define strapSTART_STR_CLOSE   "close"
 

#define strapSTART_STR_CALIB   "calibrate"
 

#define strapNDF_FIND   0
 

#define strapNDF_DECREASE   -1
 

#define strapNDF_INCREASE   1
 

#define strapST_HV   0
 

#define strapST_TEMP   4
 

#define strapST_CURR   5
 

#define strapST_GATE   6
 

#define strapST_MASK   7
 


Typedef Documentation

typedef vltINT32 strapDEV_HANDLE
 


Function Documentation

ccsCOMPL_STAT strapStdOff ccsERROR *    error
 

ccsCOMPL_STAT strapStdOnline ccsERROR *    error
 

ccsCOMPL_STAT strapStdStandby ccsERROR *    error
 

ccsCOMPL_STAT strapStdInit ccsERROR *    error
 

ccsCOMPL_STAT strapStdStop ccsERROR *    error
 

ccsCOMPL_STAT strapStdSetup ccsERROR *    error
 

ccsCOMPL_STAT strapSetIntMatrix vltFLOAT *    im,
ccsERROR *    error
 

ccsCOMPL_STAT strapSetDataRecs vltUINT16    dataRecs,
ccsERROR *    error
 

ccsCOMPL_STAT strapSetGate vltINT32    gate,
ccsERROR *    error
 

ccsCOMPL_STAT strapStdStart vltINT32    mode,
ccsERROR *    error
 

ccsCOMPL_STAT strapSetChoppingMode vltLOGICAL    mode,
ccsERROR *    error
 

ccsCOMPL_STAT strapSetFluxThr vltINT32    value,
ccsERROR *    error
 

ccsCOMPL_STAT strapSetSkyBackground vltINT32    counts,
ccsERROR *    error
 

ccsCOMPL_STAT strapSetAFD vltDOUBLE    value,
ccsERROR *    error
 

ccsCOMPL_STAT strapGetAFD vltDOUBLE *    value,
ccsERROR *    error
 

ccsCOMPL_STAT strapDeg2IntMatrix vltDOUBLE    angle,
ccsERROR *    error
 

ccsCOMPL_STAT strapOptimize vltDOUBLE    starMag,
ccsERROR *    error
 

ccsCOMPL_STAT strapGetTotFlux vltINT32 *    totFlux,
ccsERROR *    error
 

ccsCOMPL_STAT strapStartCalib ccsERROR *    error
 

ccsCOMPL_STAT strapSetSetup strapSET_PARAMS   parList,
ccsERROR *    error
 

ccsCOMPL_STAT strapGetSetup strapSET_PARAMS   parList,
ccsERROR *    error
 

vltUINT16 strapGetIntTime  
 

vltINT32 strapNextNDF vltINT8    flag,
vltDOUBLE    refFilter
 

void strapLogFits vltINT32    what
 

ccsCOMPL_STAT strapSetNDF vltINT32    idx,
ccsERROR *    error
 

ccsCOMPL_STAT strapGetNDF vltINT32 *    filterIndex,
vltDOUBLE *    filterFactor,
ccsERROR *    error
 

ccsCOMPL_STAT strapRtServerMode vltINT32    rtMode,
vltINT32    rtDataType,
ccsERROR *    error
 

ccsCOMPL_STAT strapSetTilt vltDOUBLE    xtilt,
vltDOUBLE    ytilt,
ccsERROR *    error
 

ccsCOMPL_STAT strapSetChopPos vltUINT16    numPos,
vltFLOAT *    chopPosX,
vltFLOAT *    chopPosY,
ccsERROR *    error
 

ccsCOMPL_STAT strapStdSet vltUINT16    intTime,
vltUINT16    thFreq,
vltUINT16    skyBack,
vltUINT16    diagRate,
vltUINT16    dataRecs,
vltINT32    flux,
vltFLOAT    spotx,
vltFLOAT    spoty,
vltFLOAT    intMatrix[4],
ccsERROR *    error
 

ccsCOMPL_STAT strapOptimizeNDF vltINT32    minFlux,
vltINT32    maxFlux,
vltINT32    ccdFlux,
vltLOGICAL    selfSearch,
ccsERROR *    error
 

ccsCOMPL_STAT ndfDummySet vltINT32    idx,
ccsERROR *    error
 

ccsCOMPL_STAT ndfDummyGet vltINT32 *    idx,
ccsERROR *    error
 


Variable Documentation

strapGlobalStruct strapInfo
 


Generated on Wed Dec 3 14:55:57 2003 for ATCS API by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001