From fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Wed, 8 Jul 2015 20:46:52 -0400 Subject: Initial commit --- sys/qpoe/qpiosetr.x | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 sys/qpoe/qpiosetr.x (limited to 'sys/qpoe/qpiosetr.x') 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 +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 -- cgit