#include <stdlib.h>#include <stdio.h>#include <time.h>#include <ctype.h>#include <math.h>#include <errno.h>#include <unistd.h>#include <string.h>#include <sys/types.h>#include <sys/stat.h>#include <fcntl.h>#include <dirent.h>#include <assert.h>#include <signal.h>#include "common.h"
Go to the source code of this file.
Functions | |
| FILE * | OpenTitBinFile (void) |
| open a tit file for output | |
| void | AbortTitBinFile (void) |
| close and remove the file | |
| void | AddTitFrame (const unsigned char *frame) |
| process one channel | |
| void | CloseTitFile (void) |
| end a tit file | |
Variables | |
| unsigned char | synchro = 0x50 |
| int | firstFrame = 1 |
| FILE * | titBinFile = NULL |
| char | titBinFileName [255] |
| void AbortTitBinFile | ( | void | ) |
close and remove the file
Definition at line 76 of file tit.c.
References titBinFile, and titBinFileName.
| void AddTitFrame | ( | const unsigned char * | frame | ) |
process one channel
| frame | the frame to dump |
Definition at line 88 of file tit.c.
References firstFrame, GPST_FRAME, OpenTitBinFile(), synchro, TIME_FRAME, and titBinFile.
| void CloseTitFile | ( | void | ) |
end a tit file
Definition at line 120 of file tit.c.
References ADD_CHANNEL_CODE, FileName(), fileNameOptions, firstFrame, infoHeader, MAX_CHANNEL, PrintLog, Rename(), titBinFile, titBinFileName, InfoHeaderType::uncorrected, UpdateInfoHeader(), and Titan2TimeType::usecond.
Referenced by FlushDataFiles().
| FILE* OpenTitBinFile | ( | void | ) |
open a tit file for output
Definition at line 48 of file tit.c.
References currentTime, FILE_BUFFER_SIZE, infoHeader, InitInfoHeader(), MAX_CHANNEL, OpenTempFile(), titBinFile, titBinFileName, and Titan2TimeType::usecond.
Referenced by AddTitFrame().
| int firstFrame = 1 |
| unsigned char synchro = 0x50 |
| FILE* titBinFile = NULL |
Definition at line 43 of file tit.c.
Referenced by AbortTitBinFile(), AddTitFrame(), CloseTitFile(), and OpenTitBinFile().
| char titBinFileName[255] |
Definition at line 44 of file tit.c.
Referenced by AbortTitBinFile(), CloseTitFile(), and OpenTitBinFile().
1.5.6