&wAddress3,&wAddress4,&wAddress5);
if( !wRetVal )
{
switch( wTypeID )
{
case 0: printf("==> %02d Board Name:PCI-P16R16\n",i);
P16R16_BaseAddress=wAddress2;
wP16R16No++;
break;
case 1: printf("==> %02d Board Name:PCI-P8R8\n",i);
P8R8_BaseAddress=wAddress2;
wP8R8No++;
break;
case 2: printf("==> %02d Board Name:PCI-TMC12\n",i);
break;
case 3: printf("==> %02d Board Name:PCI-DA16\n",i);
break;
case 4: printf("==> %02d Board Name:PCI-DA8\n",i);
break;
}
printf(" --> Addr0:%04x | Addr1:%04x | Addr2:%0x\n",
wAddress0,wAddress1,wAddress2);
printf(" --> Addr3:%04x | Addr4:%04x | Addr5:%0x\n\n",
wAddress3,wAddress4,wAddress5);
}
}
/* Getting the Driver version */
wRetVal=PCI_GetDriverVersion(&wVal);
printf("Driver Version=%x\n",wVal);
/* call a function to test if exact calling LIB */
nVal=PCI_ShortSub2(1,2);
printf("P180X_ShortSub2(1,2) = %d\n",nVal);
/* call another function to test if exact calling LIB */
fVal=PCI_FloatSub2(1.0,2.0);
printf("P180X_FloatSub2(1.0,2.0) = %f\n",fVal);
PCI-P8R8/P16R16/P16C16/P16POR16 User’s Manual (Ver.2.2, 2005/5/5) …47