G305 receiver memory file format (*.15m files)
----------------------------------------------

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
92	4	SecSquelch;
96	4	SecSquelchValue;


The Checksum is calculated as follows:
DWORD ch=0,*p=(DWORD*)this;
for (int i=0;i<80;i+=4) ch+= *(p++);
ch+=IFshift+Bandwidth+SecSquelch+SecSquelchValue;

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

