
POC-500 Series
103
DIO Function Reference
InitDIO
Syntax
BOOL InitDIO(void);
Description:
Initialize the DIO function. You should always invoke InitDIO()
before write/read any DIO port/channel.
Parameter
None
Return Value
TRUE:
Successfully initialized
FALSE:
Failed to initialize
Usage
BOOL bRet = InitWDT()
DIReadLine
Syntax
BOOL DIReadLine(BYTE ch);
Description:
Read a single channel of isolated digital input.
Parameter
ch
BYTE value specifies the DI channel to be read.
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
Syntax
WORD DIReadPort(void);
Description:
Read the entire isolated digital input port (4 channels).
Parameter
None
Return Value
The status (TRUE or FALSE) of the specified DI channel.
Usage
WORD DIPortValue = DIReadPort ();
Summary of Contents for POC-500 Series
Page 1: ...Neousys Technology Inc POC 500 Series User Manual Revision 1 0...
Page 21: ...POC 500 Series 21 1 5 2 DIO Panel View 1 5 3 COM and Audio Port Panel View...
Page 22: ...POC 500 Series 22 1 5 4 Bottom View...
Page 24: ...POC 500 Series 24 1 6 2 DIO Panel View 1 6 3 COM and Audio Port Panel View...