POC-300 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 ();
Содержание POC-300
Страница 1: ...Neousys Technology Inc POC 300 Series User Manual Revision 1 0 ...
Страница 4: ...Table of Contents 4 StopDICOS 108 DI COS Example 108 ...
Страница 20: ...POC 300 Series 20 1 5 Dimension 1 5 1 Superior View NOTE All measurements are in millimeters mm ...
Страница 21: ...POC 300 Series 21 1 5 2 Front Panel View NOTE All measurements are in millimeters mm ...
Страница 22: ...POC 300 Series 22 1 5 3 Bottom View NOTE All measurements are in millimeters mm ...
Страница 24: ...POC 300 Series 24 1 6 2 Wall Mount Bracket WM 300V NOTE All measurements are in millimeters mm ...
Страница 25: ...POC 300 Series 25 1 6 3 Wall Mount Bracket WM 300H NOTE All measurements are in millimeters mm ...
Страница 58: ...POC 300 Series 58 5 Reinstall the system enclosure ...
Страница 110: ...POC 300 Series 110 printf StopDICOS PASSED n printf npress any key to exit n system pause nul return 0 ...