EasyManua.ls Logo

Svantek SVAN 977A - Structure of the SETUP File; Date and Time

Svantek SVAN 977A
302 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
199
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:
b15
b14
b13
b12
b11
b10
b9
b8
b7
b6
b5
b4
b3
b2
b1
b0
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)
B.4. DATE AND TIME
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 */
}

Table of Contents

Related product manuals