moved files from /base/include
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
#! /bin/sh
|
||||
# createSoftLinks.sh
|
||||
# $Id$
|
||||
|
||||
# Tailored script to create local softlinks releative to this directory
|
||||
# the name createSoftLinks.sh is a key and must not be changed. If the
|
||||
# release tool sccsGet finds a file by the name of (createSoftLinks.sh),
|
||||
# after it has retrieved any out-of-date SCCS files, it invokes the
|
||||
# script to create the defined softlinks
|
||||
|
||||
/bin/rm -f epicsVersion.h
|
||||
ln -s ../version/epicsVersion.h epicsVersion.h
|
||||
@@ -0,0 +1,112 @@
|
||||
/* $Id$
|
||||
*
|
||||
* Author: Marty Kraimer
|
||||
* Date: 6-1-90
|
||||
*
|
||||
* Experimental Physics and Industrial Control System (EPICS)
|
||||
*
|
||||
* Copyright 1991, the Regents of the University of California,
|
||||
* and the University of Chicago Board of Governors.
|
||||
*
|
||||
* This software was produced under U.S. Government contracts:
|
||||
* (W-7405-ENG-36) at the Los Alamos National Laboratory,
|
||||
* and (W-31-109-ENG-38) at Argonne National Laboratory.
|
||||
*
|
||||
* Initial development by:
|
||||
* The Controls and Automation Group (AT-8)
|
||||
* Ground Test Accelerator
|
||||
* Accelerator Technology Division
|
||||
* Los Alamos National Laboratory
|
||||
*
|
||||
* Co-developed with
|
||||
* The Controls and Computing Group
|
||||
* Accelerator Systems Division
|
||||
* Advanced Photon Source
|
||||
* Argonne National Laboratory
|
||||
*
|
||||
* Modification Log:
|
||||
* -----------------
|
||||
* .01 mm-dd-yy iii Comment
|
||||
* .02 12-03-91 rcz defines from vxWorks.h for Unix
|
||||
* .03 12-03-91 rcz added define PVNAME_STRINGSZ
|
||||
* .04 05-22-92 mrk cleanup
|
||||
* .05 07-22-93 mrk Cleanup defs for NO and YES
|
||||
* .06 08-11-93 joh included errMdef.h
|
||||
*/
|
||||
|
||||
#ifndef INCdbDefsh
|
||||
#define INCdbDefsh 1
|
||||
|
||||
#if defined(NULL)
|
||||
#undef NULL
|
||||
#endif
|
||||
#define NULL 0
|
||||
|
||||
#if defined(NO)
|
||||
#undef NO
|
||||
#endif
|
||||
#define NO 0
|
||||
|
||||
#if defined(YES)
|
||||
#undef YES
|
||||
#endif
|
||||
#define YES 1
|
||||
|
||||
#if defined(TRUE)
|
||||
#undef TRUE
|
||||
#endif
|
||||
#define TRUE 1
|
||||
|
||||
#if defined(FALSE)
|
||||
#undef FALSE
|
||||
#endif
|
||||
#define FALSE 0
|
||||
|
||||
#ifndef OK
|
||||
#define OK 0
|
||||
#endif
|
||||
#ifndef ERROR
|
||||
#define ERROR (-1)
|
||||
#endif
|
||||
#ifndef NONE
|
||||
#define NONE (-1) /* for times when NULL won't do */
|
||||
#endif
|
||||
|
||||
#ifndef NELEMENTS
|
||||
#define NELEMENTS(array) /* number of elements in an array */ \
|
||||
(sizeof (array) / sizeof ((array) [0]))
|
||||
#endif
|
||||
|
||||
#ifndef max
|
||||
#define max(x, y) (((x) < (y)) ? (y) : (x))
|
||||
#endif
|
||||
#ifndef min
|
||||
#define min(x, y) (((x) < (y)) ? (x) : (y))
|
||||
#endif
|
||||
|
||||
#ifndef OFFSET
|
||||
#define OFFSET(structure, member) /* byte offset of member in structure*/\
|
||||
((int) &(((structure *) 0) -> member))
|
||||
#endif
|
||||
|
||||
/* FLDNAME_SZ must be 4 */
|
||||
#define PVNAME_STRINGSZ 29 /* includes NULL terminator for PVNAME_SZ */
|
||||
#define PVNAME_SZ (PVNAME_STRINGSZ - 1) /*Process Variable Name Size */
|
||||
#define FLDNAME_SZ 4 /*Field Name Size */
|
||||
|
||||
#define DB_MAX_CHOICES 30
|
||||
|
||||
#define SUPERVISORY 0
|
||||
#define CLOSED_LOOP 1
|
||||
|
||||
#define NTO1FIRST 0
|
||||
#define NTO1LOW 1
|
||||
#define NTO1HIGH 2
|
||||
#define NTO1AVE 3
|
||||
|
||||
#define vxTicksPerSecond (sysClkRateGet()) /*clock ticks per second*/
|
||||
|
||||
#include <errMdef.h>
|
||||
#include <epicsTypes.h>
|
||||
|
||||
#endif /* INCdbDefsh */
|
||||
@@ -0,0 +1,284 @@
|
||||
/* $Id */
|
||||
|
||||
/*
|
||||
* Author: Jeff Hill
|
||||
* Date: 5-95
|
||||
*
|
||||
* Experimental Physics and Industrial Control System (EPICS)
|
||||
*
|
||||
* Copyright 1991, the Regents of the University of California,
|
||||
* and the University of Chicago Board of Governors.
|
||||
*
|
||||
* This software was produced under U.S. Government contracts:
|
||||
* (W-7405-ENG-36) at the Los Alamos National Laboratory,
|
||||
* and (W-31-109-ENG-38) at Argonne National Laboratory.
|
||||
*
|
||||
* Initial development by:
|
||||
* The Controls and Automation Group (AT-8)
|
||||
* Ground Test Accelerator
|
||||
* Accelerator Technology Division
|
||||
* Los Alamos National Laboratory
|
||||
*
|
||||
* Co-developed with
|
||||
* The Controls and Computing Group
|
||||
* Accelerator Systems Division
|
||||
* Advanced Photon Source
|
||||
* Argonne National Laboratory
|
||||
*
|
||||
* Modification Log:
|
||||
* -----------------
|
||||
* $Log$
|
||||
* Revision 1.7 1995/12/19 19:46:44 jhill
|
||||
* added epicsStatus typedef
|
||||
*
|
||||
* Revision 1.6 1995/09/29 21:41:41 jhill
|
||||
* added use of sbufs
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef INCepicsTypesh
|
||||
#define INCepicsTypesh 1
|
||||
|
||||
#ifdef __STDC__
|
||||
# define READONLY const
|
||||
#else
|
||||
# define READONLY
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#include <shareLib.h>
|
||||
#include <sbufLib.h>
|
||||
|
||||
#ifndef stringOf
|
||||
# ifdef __STDC__
|
||||
# define stringOf(TOKEN) #TOKEN
|
||||
# else
|
||||
# define stringOf(TOKEN) "TOKEN"
|
||||
# endif
|
||||
#endif
|
||||
|
||||
typedef enum {
|
||||
epicsFalse=0,
|
||||
epicsTrue=1 } epicsBoolean;
|
||||
|
||||
/*
|
||||
* Architecture Independent Data Types
|
||||
* (so far this is sufficient for all archs we have ported to)
|
||||
*/
|
||||
typedef char epicsInt8;
|
||||
typedef unsigned char epicsUInt8;
|
||||
typedef short epicsInt16;
|
||||
typedef unsigned short epicsUInt16;
|
||||
typedef epicsUInt16 epicsEnum16;
|
||||
typedef int epicsInt32;
|
||||
typedef unsigned epicsUInt32;
|
||||
typedef float epicsFloat32;
|
||||
typedef double epicsFloat64;
|
||||
typedef unsigned long epicsIndex;
|
||||
typedef epicsInt32 epicsStatus;
|
||||
|
||||
typedef struct {
|
||||
unsigned length;
|
||||
char *pString;
|
||||
}epicsString;
|
||||
|
||||
typedef struct {
|
||||
epicsIndex first;
|
||||
epicsIndex count;
|
||||
}epicsArrayIndex;
|
||||
|
||||
/*
|
||||
* Arrays are stored in a stored in a shared buffer
|
||||
* in order to avoid redundant copying. See "sbufLib.h".
|
||||
*
|
||||
* The first segment in a shared buffer containing an
|
||||
* EPICS array will always contain only the
|
||||
* "epicsArrayDescriptor" described below. Subsequent
|
||||
* segments will contain the array data (in C language
|
||||
* dimension order).
|
||||
*
|
||||
* Segments in the shared buffer must end on natural
|
||||
* boundaries for the element type stored in the array.
|
||||
*
|
||||
* nDim - the number of dimensions. nDim==0 => scaler
|
||||
* pDim - pointer to an array of lengths for each dimension
|
||||
*
|
||||
*/
|
||||
typedef SBUFID epicsArray;
|
||||
typedef struct {
|
||||
unsigned nDim; /* the number of dimensions */
|
||||
epicsIndex *pDim; /* array of dimension lengths */
|
||||
}epicsArrayDescriptor;
|
||||
|
||||
/*
|
||||
* !! Dont use this - it may vanish in the future !!
|
||||
*
|
||||
* Provided only for backwards compatibility with
|
||||
* db_access.h
|
||||
*
|
||||
*/
|
||||
#define MAX_STRING_SIZE 40
|
||||
typedef char epicsOldString[MAX_STRING_SIZE];
|
||||
|
||||
/*
|
||||
* union of all types
|
||||
*
|
||||
* Strings included here as pointers only so that we support
|
||||
* large string types.
|
||||
*
|
||||
* Arrays included here as pointers because large arrays will
|
||||
* not fit in this union.
|
||||
*/
|
||||
typedef union epics_any{
|
||||
epicsInt8 int8;
|
||||
epicsUInt8 uInt8;
|
||||
epicsInt16 int16;
|
||||
epicsUInt16 uInt16;
|
||||
epicsEnum16 enum16;
|
||||
epicsInt32 int32;
|
||||
epicsUInt32 uInt32;
|
||||
epicsFloat32 float32;
|
||||
epicsFloat64 float64;
|
||||
epicsString string;
|
||||
epicsArray array;
|
||||
}epicsAny;
|
||||
|
||||
/*
|
||||
* Corresponding Type Codes
|
||||
* (this enum must start at zero)
|
||||
*
|
||||
* !! Update epicsTypeToDBR_XXXX[] and DBR_XXXXToEpicsType
|
||||
* in db_access.h if you edit this enum !!
|
||||
*/
|
||||
typedef enum {
|
||||
epicsInt8T,
|
||||
epicsUInt8T,
|
||||
epicsInt16T,
|
||||
epicsUInt16T,
|
||||
epicsEnum16T,
|
||||
epicsInt32T,
|
||||
epicsUInt32T,
|
||||
epicsFloat32T,
|
||||
epicsFloat64T,
|
||||
epicsStringT,
|
||||
epicsOldStringT
|
||||
}epicsType;
|
||||
#define firstEpicsType epicsInt8T
|
||||
#define lastEpicsType epicsOldStringT
|
||||
#define validEpicsType(x) ((x>=firstEpicsType) && (x<=lastEpicsType))
|
||||
#define invalidEpicsType(x) ((x<firstEpicsType) || (x>lastEpicsType))
|
||||
|
||||
|
||||
/*
|
||||
* The enumeration "epicsType" is an index to this array
|
||||
* of type name strings.
|
||||
*/
|
||||
#ifdef epicsTypesGLOBAL
|
||||
READONLY char *epicsTypeNames [lastEpicsType+1] = {
|
||||
stringOf (epicsInt8),
|
||||
stringOf (epicsUInt8),
|
||||
stringOf (epicsInt16),
|
||||
stringOf (epicsUInt16),
|
||||
stringOf (epicsEnum16),
|
||||
stringOf (epicsInt32),
|
||||
stringOf (epicsUInt32),
|
||||
stringOf (epicsFloat32),
|
||||
stringOf (epicsFloat64),
|
||||
stringOf (epicsString),
|
||||
stringOf (epicsOldString),
|
||||
};
|
||||
#else /* epicsTypesGLOBAL */
|
||||
epicsShareExtern READONLY char *epicsTypeNames [lastEpicsType+1];
|
||||
#endif /* epicsTypesGLOBAL */
|
||||
|
||||
/*
|
||||
* The enumeration "epicsType" is an index to this array
|
||||
* of type code name strings.
|
||||
*/
|
||||
#ifdef epicsTypesGLOBAL
|
||||
READONLY char *epicsTypeCodeNames [lastEpicsType+1] = {
|
||||
stringOf (epicsInt8T),
|
||||
stringOf (epicsUInt8T),
|
||||
stringOf (epicsInt16T),
|
||||
stringOf (epicsUInt16T),
|
||||
stringOf (epicsEnum16T),
|
||||
stringOf (epicsInt32T),
|
||||
stringOf (epicsUInt32T),
|
||||
stringOf (epicsFloat32T),
|
||||
stringOf (epicsFloat64T),
|
||||
stringOf (epicsStringT),
|
||||
stringOf (epicsOldStringT),
|
||||
};
|
||||
#else /* epicsTypesGLOBAL */
|
||||
epicsShareExtern READONLY char *epicsTypeCodeNames [lastEpicsType+1];
|
||||
#endif /* epicsTypesGLOBAL */
|
||||
|
||||
#ifdef epicsTypesGLOBAL
|
||||
READONLY unsigned epicsTypeSizes [lastEpicsType+1] = {
|
||||
sizeof (epicsInt8),
|
||||
sizeof (epicsUInt8),
|
||||
sizeof (epicsInt16),
|
||||
sizeof (epicsUInt16),
|
||||
sizeof (epicsEnum16),
|
||||
sizeof (epicsInt32),
|
||||
sizeof (epicsUInt32),
|
||||
sizeof (epicsFloat32),
|
||||
sizeof (epicsFloat64),
|
||||
sizeof (epicsString),
|
||||
sizeof (epicsOldString),
|
||||
};
|
||||
#else /* epicsTypesGLOBAL */
|
||||
epicsShareExtern READONLY unsigned epicsTypeSizes [lastEpicsType+1];
|
||||
#endif /* epicsTypesGLOBAL */
|
||||
|
||||
/*
|
||||
* The enumeration "epicsType" is an index to this array
|
||||
* of type class identifiers.
|
||||
*/
|
||||
typedef enum {
|
||||
epicsIntC,
|
||||
epicsUIntC,
|
||||
epicsEnumC,
|
||||
epicsFloatC,
|
||||
epicsStringC,
|
||||
epicsOldStringC} epicsTypeClass;
|
||||
#ifdef epicsTypesGLOBAL
|
||||
READONLY epicsTypeClass epicsTypeClasses [lastEpicsType+1] = {
|
||||
epicsIntC,
|
||||
epicsUIntC,
|
||||
epicsIntC,
|
||||
epicsUIntC,
|
||||
epicsEnumC,
|
||||
epicsIntC,
|
||||
epicsUIntC,
|
||||
epicsFloatC,
|
||||
epicsFloatC,
|
||||
epicsStringC,
|
||||
epicsOldStringC
|
||||
};
|
||||
#else /* epicsTypesGLOBAL */
|
||||
epicsShareExtern READONLY epicsTypeClass epicsTypeClasses [lastEpicsType+1];
|
||||
#endif /* epicsTypesGLOBAL */
|
||||
|
||||
|
||||
#ifdef epicsTypesGLOBAL
|
||||
READONLY char *epicsTypeAnyFieldName [lastEpicsType+1] = {
|
||||
stringOf (int8),
|
||||
stringOf (uInt8),
|
||||
stringOf (int16),
|
||||
stringOf (uInt16),
|
||||
stringOf (enum16),
|
||||
stringOf (int32),
|
||||
stringOf (uInt32),
|
||||
stringOf (float32),
|
||||
stringOf (float64),
|
||||
stringOf (string),
|
||||
"", /* Old Style Strings will not be in epicsAny type */
|
||||
};
|
||||
#else /* epicsTypesGLOBAL */
|
||||
epicsShareExtern READONLY char *epicsTypeAnyFieldName [lastEpicsType+1];
|
||||
#endif /* epicsTypesGLOBAL */
|
||||
|
||||
#endif /* INCepicsTypesh */
|
||||
|
||||
@@ -0,0 +1,55 @@
|
||||
#ifndef INCgsd_sync_defsh
|
||||
#define INCgsd_sync_defsh
|
||||
/* $Id$
|
||||
* Author: Gale Slentz
|
||||
* Date: 09-18-90
|
||||
*
|
||||
* Experimental Physics and Industrial Control System (EPICS)
|
||||
*
|
||||
* Copyright 1991, the Regents of the University of California,
|
||||
* and the University of Chicago Board of Governors.
|
||||
*
|
||||
* This software was produced under U.S. Government contracts:
|
||||
* (W-7405-ENG-36) at the Los Alamos National Laboratory,
|
||||
* and (W-31-109-ENG-38) at Argonne National Laboratory.
|
||||
*
|
||||
* Initial development by:
|
||||
* The Controls and Automation Group (AT-8)
|
||||
* Ground Test Accelerator
|
||||
* Accelerator Technology Division
|
||||
* Los Alamos National Laboratory
|
||||
*
|
||||
* Co-developed with
|
||||
* The Controls and Computing Group
|
||||
* Accelerator Systems Division
|
||||
* Advanced Photon Source
|
||||
* Argonne National Laboratory
|
||||
*
|
||||
* Modification Log:
|
||||
* -----------------
|
||||
* .01 09-18-90 ges initial version
|
||||
*
|
||||
*/
|
||||
/*+/mod***********************************************************************
|
||||
* TITLE gsd_sync_defs.h - defines for gsd_sync.c
|
||||
*
|
||||
* DESCRIPTION
|
||||
* Contains the definitions that a user of gsd_sync.c
|
||||
* (for silo of synchronous data) would need to use.
|
||||
*
|
||||
*-***************************************************************************/
|
||||
#define PREVIOUS_SYNC_DATA 0
|
||||
#define NEXTSET_SYNC_DATA 1
|
||||
#define USEC_TIME_OUT 100 /* struct timeval's timeout 100usecs */
|
||||
#define VOID void
|
||||
|
||||
struct gsd_sync_data {
|
||||
char *pName; /* ptr to channel name string */
|
||||
chid pChid; /* Channel Access id */
|
||||
chtype time_type; /* DBR_TIME_xxxx type specifier for data */
|
||||
int count; /* element count */
|
||||
int svalid; /* valid data flag */
|
||||
VOID *pSdata; /* ptr to DBR_TIME_XXXX structure */
|
||||
};
|
||||
|
||||
#endif /* INCgsd_sync_defsh */
|
||||
@@ -0,0 +1,18 @@
|
||||
|
||||
/*
|
||||
* Use compiler specific key words to set up shareable library
|
||||
* external symbols and entry points
|
||||
*/
|
||||
|
||||
#ifdef WIN32
|
||||
# ifdef _WINDLL
|
||||
# define epicsShareExtern __declspec(dllexport)
|
||||
# else
|
||||
# define epicsShareExtern __declspec(dllimport) extern
|
||||
# endif
|
||||
# define epicsShareAPI __stdcall
|
||||
#else
|
||||
# define epicsShareAPI
|
||||
# define epicsShareExtern extern
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user