PISO-P8R8U/P16R16U/PEX-P8R8i/P16R16i User Manual (Ver.1.6,Mar/2010, PMH-021-16) -
34
-
DWORD TestDIO(WORD wCardAddress)
{
int i = 0;
iCounts = iErrors = 0;
//while ( !kbhit() )
while ( i < 100 )
{
DIO1(wCardAddress,
0x0000);
if (kbhit()) break;
DIO1(wCardAddress,
0xFFFF);
if (kbhit()) break;
DIO1(wCardAddress,
0x0000);
if (kbhit()) break;
DIO1(wCardAddress,
0xAAAA);
if (kbhit()) break;
DIO1(wCardAddress,
0x0000);
if (kbhit()) break;
DIO1(wCardAddress,
0x5555);
if (kbhit()) break;
i += 3;
//printf("TotalCounts=%ld,
ErrorCounts=%ld\n\n", iCounts, iErrors);
}
DIO1(wCardAddress,
0x0000);
printf("TotalCounts=%ld, ErrorCounts=%ld\n", iCounts, iErrors);
return
iErrors;
}