5. Using the Memory Address Map
58
ADI16-4(FIT)GY
/* Read 'Error Status'
*/
dwVaBase = FIT_IO_DEVICE_INFOR;
wStatus = FIT_Read(hHandle, dw dwVa FIT_ERROR_STATUS, 1,
&byErrorStatus);
if (wStatus != 0) {
printf("Error! FIT_Read = %04X(H)\n", wStatus);
}
if (byErrorStatus != 0x00) {
printf("Error! Error Status = %02X(H)\n", byErrorStatus);
}
/* Close */
FIT_Close(hHandle);
return 0;
}