G3 Memory File Format
---------------------

The memory file consists of sequence of entries for the stored frequencies:

Frequency 1
Frequency 2
Frequency 3
etc.

Individual frequency entries have the following format:

Offset	Bytes	Parameter
0	4	Memory number
4	8	Frequency
12	4	Groups (only bits 0-15 are used, bits 16-31 are reserved for future use)
16	4	BFO (not used)
20	4	Hot key (only values 2..12 are used now, meaning F2..F12)
24	4	Lockout (bit 0 - scan lockout, bit 1 - do not set mode, bit 2 - do not set squelch)
28	4	Squelch (signed value in dBm)
32	4	Mode
36	12	Callsign
48	32	Comment
80	4	Checksum
84	4	IFshift
88	4	Bandwidth

The Checksum is calculated as follows:

unsigned int ch=0,*p=(unsigned int*)this;
for (int i=0;i<20;i+=4) ch+= *(p++);
ch+=IFshift+Bandwidth;
return ch;

Explanation: Each memory is 92 bytes long (23 DWORD values).
Sum together 22 integers (skipping the checksum) as one 32-bit value, and this is the checksum.

