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

tacDefines.h File Reference

#include "lsfDefines.h"
#include "slamac.h"

Include dependency graph for tacDefines.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Defines

#define tacVERSION   "$Revision: 1.38 $"
#define tacVERSION_DATE   "APR2003"
#define tacMODULE_ID   "tac"
#define tacMODULE_NAME   tacMODULE_ID
#define tacMODULE_TITLE   "Tools for Advanced Control"
#define tacLOG_ID   101
#define tacSYNCHRO_NO_SYNC_CONTEXT   "NO_SYNC"
#define tacSYNCHRO_AUX_CLK_CONTEXT   "AUX_CLK"
#define tacSYNCHRO_SEMAPHORE_CONTEXT   "TASK"
#define tacSYNCHRO_INT_CONTEXT   "INT"
#define tacIO_BASE_ADDR   0xfbff0000
#define tacMAX_NAME_SIZE   48
#define tacMAX_DATA_NUMBER   10
#define tacMAX_PARAM_NUMBER   10
#define tacMAX_PARAM_SIZE   tacMAX_PARAM_NUMBER*sizeof(double)
#define tacMAX_BLOCK_NUMBER   256
#define tacMAX_LINK_NUMBER   256
#define tacMAX_BLOCK_TYPE_NUMBER   80
#define tacPI   DPI
#define tacINT_VME_BUS   0
#define tacINT_PCI_BUS   1
#define tacINT_MASK   0xff
#define tacRTC_ERR(errNumber, string)
#define tacRTC_ERR_ADD(tacError)
#define tacRtcDefineInterrupt(synchro, busType, intLevel, intVector)
#define tacRtcIsPCIInterrupt(synchro)   (synchro.interrupt.level > tacINT_MASK)
#define tacRtcIsVMEInterrupt(synchro)   (synchro.interrupt.level <= tacINT_MASK)
#define tacRtcGetInterruptLevel(synchro)   (synchro.interrupt.level & tacINT_MASK)
#define tacRtcDefineSemaphore(synchro, semaphore, taskLevel)


Define Documentation

#define tacVERSION   "$Revision: 1.38 $"
 

#define tacVERSION_DATE   "APR2003"
 

#define tacMODULE_ID   "tac"
 

#define tacMODULE_NAME   tacMODULE_ID
 

#define tacMODULE_TITLE   "Tools for Advanced Control"
 

#define tacLOG_ID   101
 

#define tacSYNCHRO_NO_SYNC_CONTEXT   "NO_SYNC"
 

#define tacSYNCHRO_AUX_CLK_CONTEXT   "AUX_CLK"
 

#define tacSYNCHRO_SEMAPHORE_CONTEXT   "TASK"
 

#define tacSYNCHRO_INT_CONTEXT   "INT"
 

#define tacIO_BASE_ADDR   0xfbff0000
 

#define tacMAX_NAME_SIZE   48
 

#define tacMAX_DATA_NUMBER   10
 

#define tacMAX_PARAM_NUMBER   10
 

#define tacMAX_PARAM_SIZE   tacMAX_PARAM_NUMBER*sizeof(double)
 

#define tacMAX_BLOCK_NUMBER   256
 

#define tacMAX_LINK_NUMBER   256
 

#define tacMAX_BLOCK_TYPE_NUMBER   80
 

#define tacPI   DPI
 

#define tacINT_VME_BUS   0
 

#define tacINT_PCI_BUS   1
 

#define tacINT_MASK   0xff
 

#define tacRTC_ERR errNumber,
string   
 

Value:

{                                         \
    error->errNum = errNumber;                 \
    strcpy(error->location, __FILE_LINE__); \
    sprintf(error->param, "%.40s",string);   \
  }                                         \

#define tacRTC_ERR_ADD tacError   
 

Value:

{                                                                                 \
    errAdd(error,tacMODULE_ID,tacError.errNum,tacError.location,"",tacError.param); \
  }                                                                                 \

#define tacRtcDefineInterrupt synchro,
busType,
intLevel,
intVector   
 

Value:

{                                                                     \
    synchro.type = tacSYNCHRO_INTERRUPT;                                \
    synchro.interrupt.level = (busType * (tacINT_MASK + 1)) + intLevel; \
    synchro.interrupt.vector = intVector;                               \
  }

#define tacRtcIsPCIInterrupt synchro       (synchro.interrupt.level > tacINT_MASK)
 

#define tacRtcIsVMEInterrupt synchro       (synchro.interrupt.level <= tacINT_MASK)
 

#define tacRtcGetInterruptLevel synchro       (synchro.interrupt.level & tacINT_MASK)
 

#define tacRtcDefineSemaphore synchro,
semaphore,
taskLevel   
 

Value:

{                                         \
    synchro.type = tacSYNCHRO_SEMAPHORE;    \
    synchro.task.semId = semaphore;         \
    synchro.task.priority = taskLevel;      \
  }


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