POC-400 Series
89
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-400 Series
Page 1: ...Neousys Technology Inc POC 400 Series User Manual Revision 1 0...
Page 4: ...Table of Contents 4 GetStatusPoEPort 97 EnablePoEPort 98 DisablePoEPort 99...
Page 16: ...POC 400 Series 16 1 3 Dimension 1 3 1 Superior View 1 3 2 Front Panel View...
Page 17: ...POC 400 Series 17 1 3 3 Bottom View...