aboutsummaryrefslogtreecommitdiff
path: root/sys/pmio/mioseti.x
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2015-07-08 20:46:52 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2015-07-08 20:46:52 -0400
commitfa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 (patch)
treebdda434976bc09c864f2e4fa6f16ba1952b1e555 /sys/pmio/mioseti.x
downloadiraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz
Initial commit
Diffstat (limited to 'sys/pmio/mioseti.x')
-rw-r--r--sys/pmio/mioseti.x30
1 files changed, 30 insertions, 0 deletions
diff --git a/sys/pmio/mioseti.x b/sys/pmio/mioseti.x
new file mode 100644
index 00000000..ef4fe116
--- /dev/null
+++ b/sys/pmio/mioseti.x
@@ -0,0 +1,30 @@
+# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.
+
+include <syserr.h>
+include <pmset.h>
+include "mio.h"
+
+# MIO_SETI -- Set an MIO parameter.
+
+procedure mio_seti (mp, param, value)
+
+pointer mp #I MIO descriptor
+int param #I parameter to be set
+int value #I new value
+
+begin
+ switch (param) {
+ case P_PMDES:
+ M_PM(mp) = value
+ M_ACTIVE(mp) = NO
+ case P_IMDES:
+ M_IM(mp) = value
+ M_ACTIVE(mp) = NO
+ case P_REGCOORDS:
+ M_REGCOORDS(mp) = value
+ case P_PMCLOSE:
+ M_PMCLOSE(mp) = value
+ default:
+ call syserr (SYS_PLINVPAR)
+ }
+end