Instruction manual

Table Of Contents
PC215E Page 100
6.6.10.2 Configure a Digital I/O Port for Input or Output - DIOsetMode
Sets up a digital I/O port for basic input or output.
i = DIOsetMode (h, chip, port, isInput)
where
h Integer. Board handle as issued by function
registerBoard.
chip Integer. Address offset of the DIO chip. Use
one of the following pre-defined constants:-
PPIX = 0
PPIY = 8
PPIZ = 16
port Integer. DIO port within the chip. Port C is split
into two 4-bit nibbles, which can be programmed
independently. Use one of the following pre-
defined constants:-
PORTA = 0
PORTB = 1
PORTC_L = 2
PORTC_U = 3
isInput Integer. Non-zero if port is to be set as input,
zero if port is to be set as output.
Returns Integer:
OK
or ERRHANDLE
ERRCHAN
Prior Calls registerBoard
See Also DIOsetChanWidth
DIOsetData
DIOgetData