Specifications

96 System Software Diagnostics Guide — September 2006
GCEV_TRACEDATA Reference
return;
}
printf("Seq# Bytes\n");
// get seq
while(fread(&iSeq, sizeof(unsigned long), 1, hInFile) == 1)
{
// get size of payload
if(fread(&iSize, sizeof(unsigned short), 1, hInFile) != 1)
{
mdfReadError("Payload Size");
}
printf("%3u %4u\n", iSeq, iSize);
fprintf(hOutFile, "# Timestamp Chan TxABCD RxABCD TxR2 RxR2 Sequence No.
%u #\n", iSeq);
fgetpos(hInFile, &iPos);
iPayloadEnd = iPos + iSize;
// process payload
while(iPos < iPayloadEnd)
{
// get data type label
if(fread(&iType, sizeof(unsigned char), 1, hInFile) != 1)
{
mdfReadError("Type Label");
}
// process timestamp
mdfProcessTimestamp();
// process data based on type
switch(iType)
{
case CAS_DATA:
mdfProcessCas();
break;
case R2MF_TONE:
mdfProcessR2mf();
break;
case SIGDET_ON:
mdfProcessToneOn();
break;
case SIGDET_OFF:
mdfProcessToneOff();
break;
default:
break;
}
fgetpos(hInFile, &iPos);
}
}
mdfReadError("Normal Exit");
}
void mdfProcessCas(void)
{
unsigned short LenChan;
unsigned long Label;
unsigned char PreCode;
unsigned char PostCode;
unsigned long Direction;