3.4 The DIO Functions
3.4.1 P1602_Di
z
Description :
This function will read the 16 bit data from the digital input (D/I) port.
This function will refer to the current active OME-PCI-1602. Use the
P1602_ActiveBoard(….) to select the active board.
z
Syntax :
WORD P1602_Di(WORD *wDi);
z
Input Parameter :
*wDi : address of
wDi
which contains the 16 bits of D/I data
z
Return Value :
NoError : OK
FindBoardError : cannot find the OME-PCI-1602 board
ExceedBoardNumber: invalid board number
z
Demo Program : DEMO1.C
3.4.2 P1602_Do
z
Description :
This function will write the 16 bit data to the digital output(D/O) port.
This function will refer to the current active OME-PCI-1602 board. Use the
P1602_ActiveBoard(….) to select the active board.
z
Syntax :
WORD P1602_Do(WORD wDo);
z
Input Parameter :
wDo : the 16 bits of data sent to the D/O port
z
Return Value :
NoError : OK
ExceedBoardNumber: invalid board number
FindBoardError : cannot find the OME-PCI-1602 board
z
Demo Program : DEMO1.C
38
Содержание OME-PCI-1602
Страница 37: ... Demo Program DEMO9 C 37 ...