Instruction manual

AMPDIO DRIVERS
Page 176
pdata pointer to long: pointer to a long integer
variable into which the digital data word will be
placed.
Returns short: OK
or ERRHANDLE
ERRCHAN
ERRDATA
Prior Calls registerBoardEx
DIOsetMode
DIOsetChanWidth
See Also DIOsetData
6.4.11.7 Configure a Digital I/O Port Mode — DIOsetModeEx
Writes directly to the digital I/O port control register. The value written may be a mode-setting
command (bit 7 = 1) or a single bit set/reset command (bit 7 = 0).
SUPPORTED IN VERSION 2.00 ONWARDS.
Note that writing a mode-setting command (bit 7 = 1) causes all output ports on the chip to be
set to logic level 0 (except for certain PORT C bits in modes 1 and 2). This is a feature of the
82C55 chip.
i = DIOsetModeEx (h, chip, ctrl)
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
ctrl short: value to write to PPI control port.
Returns short: OK
or ERRHANDLE
ERRCHAN
Prior Calls registerBoardEx
See Also DIOsetDataEx
DIOgetDataEx
DIOgetModeEx
6.4.11.8 Check a Digital I/O Port's Mode DIOgetModeEx
Checks the last mode-setting command written to a digital I/O port's control register.