Instruction manual
AMPDIO DRIVERS
Page 178
or ERRHANDLE
ERRCHAN
Prior Calls registerBoardEx
DIOsetMode
DIOsetModeEx
See Also DIOgetDataEx
6.4.11.10 Read Digital Input Data Port — DIOgetDataEx
Reads a data value from a DIO port.
SUPPORTED IN VERSION 2.00 ONWARDS.
i = DIOgetDataEx (h, chip, port, pdata)
where h short: board handle as issued by the
registerBoardEx function.
chip short: address offset of the DIO chip. One of
the following pre-defined constants may be
used:
PPIX = 0
PPIY = 8
PPIZ = 16
port short. DIO Port, 0,1 or 2.
pdata pointer to short: pointer to a short integer
variable which the digital data value will be
placed.
Returns short: OK
or ERRHANDLE
ERRCHAN
Prior Calls registerBoardEx
DIOsetMode
DIOsetModeEx
See Also DIOsetDataEx
6.4.12 Switch Scanner Matrix Functions
6.4.12.1 Set up a Switch Scanner Matrix — DIOsetSwitchMatrix
Sets up one, two or three 82C55 DIO chips as a switch matrix scanning device. The order of
the matrix specified can be 12 (for a 12 X 12 matrix scanning 144 switches, using PPIX), 24
(for a 24 X 24 matrix scanning 576 switches, using PPIX and PPIY), or 36 (for a 36 X 36
matrix scanning 1296 switches, using PPIX, PPIY and PPIZ). Group A (ports A and C-upper)
are set for output, to send test patterns to the matrix, and group B (port B and C-lower) are set
for input to read the switch status information back in. The user must ensure that th
e switch