PCI-P16R16 Series Classic Driver
DLL Software Manual
User Manual, Ver. 1.3, Oct. 2015, Page: 23
P16R16_DI
This function is used to read 16 bits of data from the PCI-P16R16’s DI port.
Syntax:
WORD
P16R16_DI
(DWORD
BaseAddr
);
Parameters:
BaseAddr
[Input]
DO port base addresses.
Returns:
The 16-bit value read from DI port
Example:
The following is a source code sample:
/******************************************************/
/* This program is developed by Turbo C 2.0 */
/******************************************************/
/* Demo 1: One P16R16 card demo.
*/
/******************************************************/
#include "P16R16.H"
int main()
{
int i,j;
WORD nVal;
float fVal;
WORD wBoards,wRetVal,wVal;
WORD wInData;
WORD wTypeID;
WORD wAddress0, wAddress1, wAddress2;
WORD wAddress3, wAddress4, wAddress5;
WORD P16R16_BaseAddress, P8R8_BaseAddress;
WORD wP16R16No, wP8R8No;
clrscr();