PCI-P16R16 Series Classic Driver
DLL Software Manual
User Manual, Ver. 1.3, Oct. 2015, Page: 28
P8R8_DI
This function is used to read 8 bits of data from the PCI-P8R8’s DI port.
Syntax:
WORD
P8R8_DI
(DWORD
BaseAddr
);
Parameters:
BaseAddr
[Input]
DO port base addresses.
Returns:
The 8-bit value read from DI port
Example:
The following is a source code sample:
/************************************************/
/* This program is developed by Turbo C 2.0 */
/***********************************************/
/* Demo 2: One P8R8 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();