Files
epics-base/modules/database/src/ioc/dbStatic/special.h
Dirk Zimoch 36a8b51d8e CleanupWhitespace
removed spaces at end of line

replaced tabs with spaces
2020-05-20 14:48:09 -07:00

69 lines
2.2 KiB
C

/*************************************************************************\
* Copyright (c) 2002 The University of Chicago, as Operator of Argonne
* National Laboratory.
* Copyright (c) 2002 The Regents of the University of California, as
* Operator of Los Alamos National Laboratory.
* EPICS BASE Versions 3.13.7
* and higher are distributed subject to a Software License Agreement found
* in file LICENSE that is included with this distribution.
\*************************************************************************/
/* special.h */
/*
* Author: Marty Kraimer
* Date: 6-1-90
*/
#ifndef INCspecialh
#define INCspecialh 1
#ifdef __cplusplus
extern "C" {
#endif
/*NOTE Do NOT add aditional definitions with out modifying dbLexRoutines.c */
/* types 1-99 are global. Record specific must start with 100 */
#define SPC_NOMOD 1 /*Field must not be modified*/
#define SPC_DBADDR 2 /*db_name_to_addr must call cvt_dbaddr*/
#define SPC_SCAN 3 /*A scan related field is being changed*/
#define SPC_ALARMACK 5 /*Special Alarm Acknowledgement*/
#define SPC_AS 6 /* Access Security*/
#define SPC_ATTRIBUTE 7 /* psuedo field, i.e. attribute field*/
/* useful when record support must be notified of a field changing value*/
#define SPC_MOD 100
/* used by all records that support a reset field*/
#define SPC_RESET 101 /*The res field is being modified*/
/* Specific to conversion (Currently only ai */
#define SPC_LINCONV 102 /*A linear conversion field is being changed*/
/* Specific to calculation records */
#define SPC_CALC 103 /*The CALC field is being changed*/
#define SPC_NTYPES 9
typedef struct mapspcType{
char *strvalue;
int value;
}mapspcType;
#ifndef SPECIAL_GBLSOURCE
extern mapspcType pamapspcType[];
#else
mapspcType pamapspcType[SPC_NTYPES] = {
{"SPC_NOMOD",SPC_NOMOD},
{"SPC_DBADDR",SPC_DBADDR},
{"SPC_SCAN",SPC_SCAN},
{"SPC_ALARMACK",SPC_ALARMACK},
{"SPC_AS",SPC_AS},
{"SPC_MOD",SPC_MOD},
{"SPC_RESET",SPC_RESET},
{"SPC_LINCONV",SPC_LINCONV},
{"SPC_CALC",SPC_CALC}
};
#endif /*SPECIAL_GBLSOURCE*/
#ifdef __cplusplus
}
#endif
#endif /*INCspecialh*/