diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2015-07-08 20:46:52 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2015-07-08 20:46:52 -0400 |
commit | fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 (patch) | |
tree | bdda434976bc09c864f2e4fa6f16ba1952b1e555 /sys/pmio/mioseti.x | |
download | iraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz |
Initial commit
Diffstat (limited to 'sys/pmio/mioseti.x')
-rw-r--r-- | sys/pmio/mioseti.x | 30 |
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 |