aboutsummaryrefslogtreecommitdiff
path: root/sys/qpoe/qpiosetr.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/qpoe/qpiosetr.x
downloadiraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz
Initial commit
Diffstat (limited to 'sys/qpoe/qpiosetr.x')
-rw-r--r--sys/qpoe/qpiosetr.x30
1 files changed, 30 insertions, 0 deletions
diff --git a/sys/qpoe/qpiosetr.x b/sys/qpoe/qpiosetr.x
new file mode 100644
index 00000000..768e1b82
--- /dev/null
+++ b/sys/qpoe/qpiosetr.x
@@ -0,0 +1,30 @@
+# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.
+
+include <qpioset.h>
+include "qpio.h"
+
+# QPIO_SETR -- Set a QPIO interface real valued parameter. This procedure
+# represents the lowest level interface by which an applications program can
+# control QPIO.
+
+procedure qpio_setr (io, param, value)
+
+pointer io #I QPIO descriptor
+int param #I parameter code
+real value #I new parameter value
+
+begin
+ # Almost everything here cancels any active i/o.
+ IO_ACTIVE(io) = NO
+
+ # Set the named parameter.
+ switch (param) {
+ case QPIO_BLOCKFACTOR:
+ IO_XBLOCK(io) = value
+ IO_YBLOCK(io) = value
+ case QPIO_XBLOCKFACTOR:
+ IO_XBLOCK(io) = value
+ case QPIO_YBLOCKFACTOR:
+ IO_YBLOCK(io) = value
+ }
+end