|
EPICS Motor Module motor-R6-8-RC1_1-4
|
00001 /* 00002 FILENAME.. devSoft.h 00003 00004 USAGE... This file contains information that is common to 00005 all Soft channel device support modules. 00006 00007 Version: $Revision: 1.1.1.1 $ 00008 Modified By: $Author: ernesto $ 00009 Last Modified: $Date: 2011/05/11 14:57:33 $ 00010 HeadURL: $URL: https://subversion.xor.aps.anl.gov/synApps/motor/trunk/motorApp/SoftMotorSrc/devSoft.h $ 00011 */ 00012 00013 /* 00014 * Original Author: Ron Sluiter 00015 * Date: 03/25/99 00016 * 00017 * Experimental Physics and Industrial Control System (EPICS) 00018 * 00019 * Copyright 1991, the University of Chicago Board of Governors. 00020 * 00021 * This software was produced under U.S. Government contract 00022 * W-31-109-ENG-38 at Argonne National Laboratory. 00023 * 00024 * Beamline Controls & Data Acquisition Group 00025 * Experimental Facilities Division 00026 * Advanced Photon Source 00027 * Argonne National Laboratory 00028 * 00029 * Modification Log: 00030 * ----------------- 00031 * .01 06-16-03 rls Converted to R3.14.x. 00032 * .02 09-23-04 rls Increase the maximum number of Soft Channel motor records 00033 * from 20 to 50. 00034 * .03 2006-04-10 pnd Convert to linked lists to remove arbitrary maximum 00035 */ 00036 00037 #ifndef INCdevSofth 00038 #define INCdevSofth 1 00039 00040 #include <callback.h> 00041 #include <ellLib.h> 00042 00043 typedef enum DONE_STATES {SOFTMOVE = 0, HARDMOVE = 1, DONE = 2} DONE_STATES; 00044 00045 struct soft_private 00046 { 00047 CALLBACK callback; 00048 CALLBACK_VALUE callback_flag; 00049 DONE_STATES dinp_value; /* Value from DINP link. */ 00050 bool default_done_behavior; /* If the DINP is not programmed, exhibit 00051 * "immediate done" default behavior. */ 00052 bool initialized; /* 1st RDBL call after interruptAccept is TRUE 00053 * sets this ON. */ 00054 }; 00055 00056 struct motor_node { 00057 ELLNODE node; 00058 struct motorRecord *pmr; 00059 }; 00060 00061 extern long soft_init(void *); 00062 extern long soft_init_record(void *); 00063 extern void soft_dinp_func(struct motorRecord *, short); 00064 extern void soft_rdbl_func(struct motorRecord *, double); 00065 extern void soft_rinp_func(struct motorRecord *, long); 00066 extern void soft_motor_callback(CALLBACK *); 00067 00068 #endif /* INCdevSofth */
1.7.4