ICP DAS USA PCI-P16R16 Manuale Utente

Pagina di 48
 
4.9    PCI_GetCongfigAddressSpace 
 
 
Description:  Reads configuration space for P16R16 and P8R8 
board, then gets the content of Base Address0, Base Address1, 
Base Address2, Base Address3, Base Address4 and Base 
Address5. 
 
 
Syntax: 
WORD PCI_GetConfigAddressSpace (WORD wBoadNo, WORD 
*wTypeID,WORD*wAddress0,WORD*wAddress1,WORD*wAdd-
ress2, WORD*wAddress3, WORD*wAddress4,WORD*wAddress5) 
 
 
Input Parameters: 
wBoardNo: The Board number for P16R16/P8R8 board. 
 
*wTypeID: Address of wType 
0: this board is PCI_P16R16 
1:this board is PCI_P8R8 
2:this board is PCI_TMC12 
3:this board is PIO_DA16 
4:this board is PIO_DA8 
 
*wAddress0, *wAddress1, *wAddress2, *wAddress3, *wAddress4, 
*wAddress5:  the six base address of a PCI device will be stored in 
these variables. 
 
 
Return Value: 
NoError: OK 
FindBoardError: can’t detect the existence of P16R16/P8R8 
ExceedBoardError: can’t open the NAPPCI.VXD in Windows 95/98 
 
 
 
 
 
 
 
PCI-P8R8/P16R16/P16C16/P16POR16 User’s Manual  (Ver.2.2, 2005/5/5) …
40