SVAN 977A User Manual - Appendixes
HS starting header (1 word)
D The full name of the comment file (e.g. “REC62.WAV”).
HE ending header (1 word), which differs from the HS only on b11 bit (thanks to it, it is possible
to analyse the recorded file starting from its end)
The HEADER format is as follows:
where:
b15 - 1
b14 - 1
b13 - 0
b12 - 0,
b11 - header type:
0 - HS
1 - HE
b10 - 1
b9 - 0
b8 - 0
b15÷b8 – HS (0xC4), HE (0xCC)
b7÷b0 – length of the block
B.3. STRUCTURE OF THE SETUP FILE
SvanPC file header (cf. Table B.1.1)
File header (cf. Table B.1.2)
Unit and software specification (cf. Table B.1.3)
SETUP DATA (cf. Table B.1.34)
File-end-marker (cf. Table B.1.35)
Following function written in C explain how the date and time are coded:
void ExtractDateTime(int date, unsigned int time, int dt[])
{
dt[0] = (time % 30)*2; /* sec */
dt[1] = (time/30) % 60; /* min */
dt[2] = time/1800; /* hour */
dt[3] = date & 0x001F; /* day */
dt[4] = (date>>5) & 0x000F; /* month */
dt[5] = ((date>>9) & 0x007F) + 2000; /* year */
}