EPICS Base  7.0.6.1
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
special.h
1 /*************************************************************************\
2 * Copyright (c) 2002 The University of Chicago, as Operator of Argonne
3 * National Laboratory.
4 * Copyright (c) 2002 The Regents of the University of California, as
5 * Operator of Los Alamos National Laboratory.
6 * SPDX-License-Identifier: EPICS
7 * EPICS Base is distributed subject to a Software License Agreement found
8 * in file LICENSE that is included with this distribution.
9 \*************************************************************************/
10 /* special.h */
11 
12 /*
13  * Author: Marty Kraimer
14  * Date: 6-1-90
15  */
16 
17 #ifndef INCspecialh
18 #define INCspecialh 1
19 
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23 
24 /*NOTE Do NOT add additional definitions with out modifying dbLexRoutines.c */
25 /* types 1-99 are global. Record specific must start with 100 */
26 #define SPC_NOMOD 1 /*Field must not be modified*/
27 #define SPC_DBADDR 2 /*db_name_to_addr must call cvt_dbaddr*/
28 #define SPC_SCAN 3 /*A scan related field is being changed*/
29 #define SPC_ALARMACK 5 /*Special Alarm Acknowledgement*/
30 #define SPC_AS 6 /* Access Security*/
31 #define SPC_ATTRIBUTE 7 /* pseudo field, i.e. attribute field*/
32 /* useful when record support must be notified of a field changing value*/
33 #define SPC_MOD 100
34 /* used by all records that support a reset field*/
35 #define SPC_RESET 101 /*The res field is being modified*/
36 /* Specific to conversion (Currently only ai */
37 #define SPC_LINCONV 102 /*A linear conversion field is being changed*/
38 /* Specific to calculation records */
39 #define SPC_CALC 103 /*The CALC field is being changed*/
40 
41 
42 #define SPC_NTYPES 9
43 typedef struct mapspcType{
44  char *strvalue;
45  int value;
46 }mapspcType;
47 
48 #ifndef SPECIAL_GBLSOURCE
49 extern mapspcType pamapspcType[];
50 #else
51 mapspcType pamapspcType[SPC_NTYPES] = {
52  {"SPC_NOMOD",SPC_NOMOD},
53  {"SPC_DBADDR",SPC_DBADDR},
54  {"SPC_SCAN",SPC_SCAN},
55  {"SPC_ALARMACK",SPC_ALARMACK},
56  {"SPC_AS",SPC_AS},
57  {"SPC_MOD",SPC_MOD},
58  {"SPC_RESET",SPC_RESET},
59  {"SPC_LINCONV",SPC_LINCONV},
60  {"SPC_CALC",SPC_CALC}
61 };
62 #endif /*SPECIAL_GBLSOURCE*/
63 
64 #ifdef __cplusplus
65 }
66 #endif
67 
68 #endif /*INCspecialh*/
Definition: link.h:175