DMC TSC-34/RU Especificaciones Pagina 100

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 179
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 99
100 System Software Diagnostics Guide — September 2006
GCEV_TRACEDATA Reference
{
mdfReadError("ToneOff SigLabel");
}
if(fread(&LabelSize, sizeof(unsigned char), 1, hInFile) != 1)
{
mdfReadError("ToneOff LabelSize");
}
// Timeslot is in Most Significant 5 bits
fprintf(hOutFile, "%02d ", (LenChan & 0xF800) >> 11);
fprintf(hOutFile, "SIG_OFF");
// fprintf(hOutFile, " EvtLabel:0x%x", EvtLabel);
fprintf(hOutFile, " SigId:0x%08x", SigId);
// fprintf(hOutFile, " SigLabel[1]:0x%02x", SigLabel[1]);
// fprintf(hOutFile, " SigLabel[2]:0x%02x", SigLabel[2]);
// fprintf(hOutFile, " SigLabel[3]:0x%02x", SigLabel[3]);
// fprintf(hOutFile, " SigLabel[4]:0x%02x", SigLabel[4]);
fprintf(hOutFile, " SigLabel:0x%02x%02x%02x%02x", SigLabel[1], SigLabel[2], SigLabel[3],
SigLabel[4]);
fprintf(hOutFile, " LabelSize:%u", LabelSize);
fprintf(hOutFile, "\n");
}
void mdfProcessTimestamp(void)
{
unsigned long iTicks;
unsigned long iTemp;
unsigned long iHours;
unsigned long iMins;
unsigned long iSecs;
unsigned long imSecs;
// get timestamp
if(fread(&iTicks, sizeof(unsigned long), 1, hInFile) != 1)
{
mdfReadError("ProcessTimestamp iTicks");
}
// convert ticks to mSecs
iTemp = 4 * iTicks;
// get the 'odd' mSecs
imSecs = iTemp % 1000;
// reduce to Secs
iTemp = iTemp / 1000;
// get the 'odd' Secs
iSecs = iTemp % 60;
// reduce to Mins
iTemp = iTemp / 60;
// get the 'odd' Mins
iMins = iTemp % 60;
// get the Hours
iHours = iTemp / 60;
fprintf(hOutFile, "%2d:%02d:%02d.%03d ",
iHours,
iMins,
iSecs,
imSecs);
}
Vista de pagina 99
1 2 ... 95 96 97 98 99 100 101 102 103 104 105 ... 178 179

Comentarios a estos manuales

Sin comentarios