Omega Vehicle Security OME-PIO-D56 manual Printf\nThrer are %d Piopiso Cards in this PC,wBoards

Models: OME-PIO-D56

1 53
Download 53 pages 55.1 Kb
Page 30
Image 30

Sample program 2: find all OME-PIO/PISO in this PC (refer to Sec. 4.1 for more information)

wRetVal=PIO_DriverInit(&wBoards,0xff,0xff,0xff);

/*find all PIO_PISO*/

printf("\nThrer are %d 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-D56/PIO-D24 User Manual (Ver.2.1, Oct/2003, PPH-005-21)

---- 28

Page 30
Image 30
Omega Vehicle Security OME-PIO-D56 manual Printf\nThrer are %d Piopiso Cards in this PC,wBoards