Nuvo-3000 Series User’s Manual
Copyright © 2013 Neousys Technology Inc. All Right Reserved.
Page 94 of
101
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-1000/2000+/1300af/3000,
ch
should be a value of 0 ~ 7. For Nuvo-2000,
ch
should be a value of 0 ~ 11.
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 (8 channels).
Parameter
None