Nuvo-3100 Series User’s Manual
Copyright © 2014 Neousys Technology Inc. All Right Reserved.
Page 92 of 99
DIO Function Reference
InitDIO
Description
Initialize the DIO function. You should always invoke InitDIO() before write/read any
DIO port/channel.
Parameter
None
Return Value
Returns TRUE if initialization successes, FALSE if initialization failed.
Usage
BOOL bRet = InitWDT()
DIReadLine
Description
Read a single channel of isolated digital input.
Parameter
ch
BYTE value specifies the DI channel to be read.
For Nuvo-3100 series, ch should be a value of 0 ~ 3.
Return Value
The status (TRUE or FALSE) of the specified DI channel.
Usage
BYTE
ch=3; //DI channel #3
BOOL DIChValue = DIReadLine(ch); //read DI channel #3
DIReadPort
Description
Read the entire isolated digital input port (4 channels).
Parameter
None
Return Value
A WORD value indicates the status of DI port (4 DI channels, 0x00 ~ 0x0F).