Instruction manual
AMPDIO DRIVERS
Page 177
SUPPORTED IN VERSION 4.40 ONWARDS.
Note: if this is used with a hardware device driver prior to version 4.40, the function will get the
last mode-setting command or single bit set/reset command sent to the digital I/O port's
control register. To be on the safe side, the application should check that bit 7 of the returned
data is set to 1 before interpreting it as a mode value.
i = DIOgetModeEx (h, chip, 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
pdata pointer to short: pointer to a short integer
variable into which the mode value will be
placed.
Returns short: OK
or ERRHANDLE
ERRCHAN
Prior Calls registerBoardEx
See Also DIOsetModeEx
6.4.11.9 Write to Digital Output Port — DIOsetDataEx
Writes a data value to a DIO port directly.
SUPPORTED IN VERSION 2.00 ONWARDS.
i = DIOsetDataEx (h, chip, port, data)
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.
data short: digital data value.
Returns short: OK