DMC TSC-34/RU Especificaciones Pagina 97

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 179
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 96
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");
}
Vista de pagina 96
1 2 ... 92 93 94 95 96 97 98 99 100 101 102 ... 178 179

Comentarios a estos manuales

Sin comentarios