ISIS Logo
SDTEST
EPICS Serial Device Test IOC
Functions
SDTEST-default.proto File Reference

Default device protocol file. More...

Go to the source code of this file.

Functions

 getValue ()
 The terminator for output and input is set in st.cmd via asynOctetSetOutputEos() using the IEOS and OEOS macros so do not set in this file, it defaults to CR LF if not specified. More...
 
 setValue ()
 send a value to the device, argument $1 is the EPICS DB record prefix, and the SETVAL:_OUT PV will contain the strings to prefix the value to send from the macro $2 is and $3 is to complete the output string $4 is the reply format These arguments need not be used in a custome device protocol file. More...
 
 initDev ()
 initialise device, argument $1 is the EPICS DB record prefix called when PV INIT is written to, but is also called if PINI=YES has been set by the macro INIT:_OUT PV used by the function containes the string to send which has been populated from the macro The format of the value returned is contained in $2 passed in via the macro More...
 

Detailed Description

Default device protocol file.

Make device specific versions based on this (but with a different filename) and place into /isis2/jenkins/instances/epics/jobs/EPICS_IOC_RHEL6_static_CLEAN/workspace/../epics-settings/config/SHADOW/configurations/ioc/SDTEST you must implement initDev(), getValue() and setValue() functions

See http://epics.web.psi.ch/software/streamdevice/doc/

Definition in file SDTEST-default.proto.

Function Documentation

getValue ( )

The terminator for output and input is set in st.cmd via asynOctetSetOutputEos() using the IEOS and OEOS macros so do not set in this file, it defaults to CR LF if not specified.

retrieve a value from the device. Argument $1 is the EPICS DB record prefix, and the GETVAL:_OUT PV used by the function containes the string to send which has been populated from the macro The format of the value returned is contained in $2 passed in via the macro, typically $2 would be f or similar $1 and $2 need not be used in a custom device protocol file.

Definition at line 18 of file SDTEST-default.proto.

initDev ( )

initialise device, argument $1 is the EPICS DB record prefix called when PV INIT is written to, but is also called if PINI=YES has been set by the macro INIT:_OUT PV used by the function containes the string to send which has been populated from the macro The format of the value returned is contained in $2 passed in via the macro

Definition at line 37 of file SDTEST-default.proto.

setValue ( )

send a value to the device, argument $1 is the EPICS DB record prefix, and the SETVAL:_OUT PV will contain the strings to prefix the value to send from the macro $2 is and $3 is to complete the output string $4 is the reply format These arguments need not be used in a custome device protocol file.

Definition at line 28 of file SDTEST-default.proto.

Copyright © 2013 Science and Technology Facilities Council | Generated by   doxygen 1.8.5