3.1.3Show_PIO_PISO

Show_PIO_PISO(wSubVendor, wSubDevice, wSubAux)

wSubVendor Æ subVendor ID of board to find

wSubDevice Æ subDevice ID of board to find

wSubAux Æ subAux ID of board to find

This function will output a text string for the special subIDs. This text string is the same as that defined in PIO.H

The demo program is given as follows:

wRetVal=PIO_DriverInit(&wBoards,0xff,0xff,0xff); /* find all PIO_PISO series card*/ printf("\nThrer are %d OME-PIO_PISO Cards in this PC",wBoards);

if (wBoards==0 ) exit(0);

printf("\n-----------------------------------------------------

");

for(i=0; i<wBoards; i++)

 

{

PIO_GetConfigAddressSpace(i,&wBase,&wIrq,&wSubVendor, &wSubDevice,&wSubAux,&wSlotBus,&wSlotDevice);

printf("\nCard_%d:wBase=%x,wIrq=%x,subID=[%x,%x,%x], SlotID=[%x,%x]",i,wBase,wIrq,wSubVendor,wSubDevice, wSubAux,wSlotBus,wSlotDevice);

printf(" --> "); ShowPioPiso(wSubVendor,wSubDevice,wSubAux);

}

OME-PIO-D144 User’s Manual (Ver.2.1, Sep/2001)

----- 25

Page 27
Image 27
Omega OME-PIO-D144 manual ShowPIOPISOwSubVendor, wSubDevice, wSubAux