Specifications
System Software Diagnostics Guide — September 2006 97
GCEV_TRACEDATA Reference
unsigned long Timestamp;
// read all the 'parts' from the file
// [Tried using a structure but always read the wrong size??]
if(fread(&LenChan, sizeof(unsigned short), 1, hInFile) != 1)
{
mdfReadError("CAS LenChan");
}
if(fread(&Label, sizeof(unsigned long), 1, hInFile) != 1)
{
mdfReadError("CAS Label");
}
if(fread(&PreCode, sizeof(unsigned char), 1, hInFile) != 1)
{
mdfReadError("CAS PreCode");
}
if(fread(&PostCode, sizeof(unsigned char), 1, hInFile) != 1)
{
mdfReadError("CAS PostCode");
}
if(fread(&Direction, sizeof(unsigned long), 1, hInFile) != 1)
{
mdfReadError("CAS Direction");
}
if(fread(&Timestamp, sizeof(unsigned long), 1, hInFile) != 1)
{
mdfReadError("CAS Timestamp");
}
// Timeslot is in Most Significant 5 bits
fprintf(hOutFile, "%02d ", (LenChan & 0xF800) >> 11);
fprintf(hOutFile, "%s", ((Direction & 0x00020000) >> 17) ? " " : " ");
fprintf(hOutFile, "%s", mdfLsNibble2Bin(PostCode));
fprintf(hOutFile, "\n");
}
void mdfProcessR2mf(void)
{
unsigned short LenChan;
unsigned char Trunk;
unsigned char Channel;
unsigned char ToneID;
if(fread(&LenChan, sizeof(unsigned short), 1, hInFile) != 1)
{
mdfReadError("R2MF LenChan");
}
if(fread(&Trunk, sizeof(unsigned char), 1, hInFile) != 1)
{
mdfReadError("R2MF Trunk");
}
if(fread(&Channel, sizeof(unsigned char), 1, hInFile) != 1)
{
mdfReadError("R2MF Channel");
}










