Instruction manual
AMPDIO DRIVERS
Page 173
PORTB = 1
PORTC_L = 2
PORTC_U = 3
isInput short: non-zero if port is to be set as input,
zero if port is to be set as output.
Returns short: OK
or ERRHANDLE
ERRCHAN
Prior Calls registerBoardEx
See Also DIOsetChanWidth
DIOsetData
DIOgetData
DIOgetMode
6.4.11.3 Check Digital I/O Port Direction — DIOgetMode
Indicates whether a digital I/O port is an input or an output.
SUPPORTED IN VERSION 4.40 ONWARDS.
i = DIOgetMode (h, chip, port, pIsInput)
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 within the chip. Port C is split
into two 4-bit nibbles, which can be
programmed independently. One of the
following pre-defined constants may be used:
PORTA = 0
PORTB = 1
PORTC_L = 2
PORTC_U = 3
pIsInput pointer to short: pointer to a variable into
which a port direction value will be placed. The
port direction value is as follows:
0: output
1: input
Returns short: OK
or ERRHANDLE