users_hwaredef.h

8 views
Skip to first unread message

Leif Asbrink

unread,
Feb 8, 2012, 3:20:56 PM2/8/12
to lin...@googlegroups.com
Hi all,

Linrad has explicit support for just a couple of hardwares.
When you add something else you might want to add your own
(w)users_hwaredriver.c and/or (w)users_hwaredef.h and complie
from source. There are prototype routines in users.c and users.h

In case you want to use a FunCube on 1296 MHz the default
frequency control window would show 296 rather than 1296
because only 3 digits are reserved for MHz.

In hwaredef.h there is this define:
#define FREQ_MHZ_DIGITS 3

You can change it from 3 to 4, but you can also add a
users_hwaredef.h where you set the same define to 4.

(You might want to change other things also.)

There is a prototype routine users.h which you can rename
and place your own defines in. It is possible to write
direct support for FunCube or whatever in (w)users_hwaredriver.c
(prototypes in users.c)

The users* files (or wusers* files for Windows) can be copied from
one Linrad version to another to give the desired changes.

Then compile Linrad from source.

73

Leif / SM5BSZ

PS. Recent Linrad versions have an error in users.h:
#define FG_VSIZ (2*text_height+5)
This define should be:
#define FG_VSIZ (3*text_height)
which is what you would find in hwaredef.h DS.

Reply all
Reply to author
Forward
0 new messages