Commit Graph

100 Commits

Author SHA1 Message Date
Michael Tatarinov
533531c631 netrigctl.c: Fill mode_list from rx_range_list/tx_range_list.
The 'NET rigctl' doesn't contain correct rig_caps and mode_list is
empty.
2016-10-26 10:59:44 +04:00
Bill Somerville
e44566e8a7 Release the serial port used for PTT when possible
When  using  separate  serial port  for  PTT  via  RTS  pr DTR  it  is
convienent to close  the port when the PTT line  is not asserted. This
allows other applications to share the PTT serial port.

This has been  achieved by ensuring that file descriptor  for the port
is set to -1 when the port  is closed, this then allows the invalid FD
to be used as a PTT surrogate for the rig_get_ptt API when the port is
only being used for PTT.
2016-08-31 22:34:09 +01:00
Bill Somerville
222ad74de7 Add RIG_PASSBAND_NOCHANGE as possible set_{split_,split_freq_,}mode argument
This change  allows the set_mode  functions to leave the  rig passband
unchanged  if required.  For the  few rigs  that do  not have  explcit
passband width control either current state is read and rewritten or a
"normal" width  is chosen e.g. select  a normal width when  there is a
choice like CW and CW-NARROW.
2016-04-19 21:27:52 +01:00
Bill Somerville
fde6174a6f Dummy get_ptt function needs to read RTS/DTR/PARALLEL
Because the dummy rig provides a  get_ptt function it must look at the
hardware PTT if that is being used  and or that state into its result.
This  issimilar to  a real  rig that  would be  in tx  because of  the
control line.
2015-04-25 13:24:22 +01:00
Nate Bargmann
1bac099494 Remove remaining references to rpc
As rpc backends were removed some time ago, remove all remaining
documentation and other references to rpc.
2013-09-19 15:24:52 -05:00
Ladislav Vaiz
f632695131 Android build updates for monolithic build
Android is now built as a static library.

Signed-off-by: Nate Bargmann <n0nb@n0nb.us>
2013-09-19 07:25:08 -05:00
Nate Bargmann
332a04b7cd Clean up backend Makefile.am files
Moved all backend *.h files into the SOURCES primary as Automake
documentation states all source file types should be listed.  This
causes Automake to include *.h files in rebuild rules for the targets.

Removed the '-DIN_HAMLIB' assignment from the CFLAGS primary in each
backend and assigned it to AM_CPPFLAGS in configure.ac.  The effect is
the same and it simplifies the backend Makefile.am files.

Removed all commented lines.
2013-09-16 21:51:39 -05:00
Remi Chateauneu
60019c9444 Monolitic libraries. 2013-09-08 14:56:28 +01:00
Ladislav Vaiz
6d4295af2c Add Android build support
Android makefile fragments are distributed as extra distribution files
by the GNU build system but are otherwise ignored.  The Android build
support is independent and does not rely on the GNU build system.

See android/README.android for more info.

Signed-off-by: Nate Bargmann <n0nb@n0nb.us>
2013-04-26 22:31:56 -05:00
Nate Bargmann
59160c5d03 dummy.c: Make all setting_t bitmasks unsigned long
To assure the correct types, the DUMMY_FUNC/LEVEL/PARM/VFO_OP/SCAN
bit mask macros are defined as unsigned long integers.
2013-01-31 18:03:50 -06:00
Nate Bargmann
f82184cbf5 Add RIT and XIT as rig_set/get_func() members
In response to a long standing request from Tor, N4OGW, and others, RIT
and XIT are added as members for the rig_set/get_func() members.
"RIT"/"XIT" have been added as tokens.  The dummy rig backend and
testrig.c have been updated for these new functions.

Applications should test a backend with the rig_has_set/get_func() and
test for RIG_FUNC_RIT or RIG_FUNC_XIT.  A non-zero result indicates
these functions are implemented by a given rig backend.  It will take
some time for all backends to migrate to this new implementation.  Once
implemented, RIT or XIT should be set to '0' to 'clear' the value
without deactivating the rig's RIT/XIT function.  The dummy/dummy.c file
can be used as a simple guide for backend authors implementing this
behavior.
2013-01-15 12:47:47 -06:00
Nate Bargmann
e942ab0a8e netrigctld.c: Add missing Set Split param--N2ADR
From the SourceForge tracker:

I am using version hamlib-1.2.15.2~rc3.  Start rigctl and specify rig 2
(rigctld). The command "s" (get_split_vfo) will return two parameters,
the spilt state (0 or 1) and the TX VFO name. The command "S"
(set_split_vfo) will send one parameter, the TX VFO name, but will not
send the split state (0 or 1).  This is incorrect. In the file
dummy/netrigctl.c change netrigctl_set_split_vfo() line 782:

len = sprintf(cmd, "S %s\n", rig_strvfo(tx_vfo));

to include the "split" paramater; perhaps:

len = sprintf(cmd, "S %d %s\n", split, rig_strvfo(tx_vfo));

Thanks to Jim, N2ADR for reporting this.
2012-10-27 08:56:15 -05:00
Nate Bargmann
a01d5986cf Remove set but unused variable errors in dummy. 2011-08-25 11:21:05 -05:00
Nate Bargmann
088edb3735 Update LGPL header in Dummy source files.
TNX to Lucian Laga, YO6PLB, for the notification.
2011-08-22 21:38:34 -05:00
Kamal Mostafa, KA6MAL
2567b93af7 Move backend libraries into /usr/lib/hamlib directory.
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2988 7ae35d74-ebe9-4afe-98af-79ac388436b8
2010-09-26 02:23:50 +00:00
Stéphane Fillod, F8CFE
62e7f69db7 status/version update
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2939 7ae35d74-ebe9-4afe-98af-79ac388436b8
2010-05-31 21:41:13 +00:00
Stéphane Fillod, F8CFE
20bfa6f080 ext_levels in get_channel(), and fix func list
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2934 7ae35d74-ebe9-4afe-98af-79ac388436b8
2010-05-31 08:42:01 +00:00
Stéphane Fillod, F8CFE
d06972c53f Wrap sscanf in order to workaround some locales where the decimal
separator (float format, ...) is not a dot.


git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2913 7ae35d74-ebe9-4afe-98af-79ac388436b8
2010-05-11 21:30:39 +00:00
Stéphane Fillod, F8CFE
05d191cc8b * fix mem leak/double free of ext_levels when copying channels
* fix bug in set/get_func
* better range checking of memory channel number
* implemented RIG_OP_TOGGLE
* frequency dependent LEVEL_STRENGTH
* some caps update


git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2911 7ae35d74-ebe9-4afe-98af-79ac388436b8
2010-05-10 20:25:47 +00:00
Stéphane Fillod, F8CFE
7a6aff96db fix level/func list in memcaps
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2850 7ae35d74-ebe9-4afe-98af-79ac388436b8
2010-03-06 17:31:19 +00:00
Nate Bargmann, N0NB
786e53ce50 Expanded ROT_TYPE definitions in rotator.h
Set dummy rotor to ROT_TYPE_AZEL
Set rotorez rotor type to ROT_TYPE_AZ and added get_info()



git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2830 7ae35d74-ebe9-4afe-98af-79ac388436b8
2010-02-14 22:06:40 +00:00
Nate Bargmann, N0NB
18c31c61ad Added backend functions for power2mW and mW2power frontend support.
Backend pretends to be a 100W radio.



git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2826 7ae35d74-ebe9-4afe-98af-79ac388436b8
2010-02-06 15:28:25 +00:00
Stéphane Fillod, F8CFE
30c54a0b51 example of backend specific conf
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2770 7ae35d74-ebe9-4afe-98af-79ac388436b8
2009-11-22 12:01:38 +00:00
Stéphane Fillod, F8CFE
f209f2757b emulate rotator slowly rotating
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2640 7ae35d74-ebe9-4afe-98af-79ac388436b8
2009-02-18 20:56:45 +00:00
Stéphane Fillod, F8CFE
53b4c788b0 fix stupid bug in netrotctl_open
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2639 7ae35d74-ebe9-4afe-98af-79ac388436b8
2009-02-17 23:01:11 +00:00
Stéphane Fillod, F8CFE
13f9300a69 new RIG_CONF_BUTTON example, renamed the other ext_levels
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2622 7ae35d74-ebe9-4afe-98af-79ac388436b8
2009-02-06 17:27:54 +00:00
Stéphane Fillod, F8CFE
65c49320ec * Extra levels and extra parms
* dummy backend now has 2 antennas


git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2599 7ae35d74-ebe9-4afe-98af-79ac388436b8
2009-01-28 22:53:18 +00:00
Stéphane Fillod, F8CFE
82e8e1bd4a clean signoff before closing socket
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2463 7ae35d74-ebe9-4afe-98af-79ac388436b8
2008-11-02 17:32:37 +00:00
Stéphane Fillod, F8CFE
f541b221fe new netrigctl/netrotctl protocol with return value
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2428 7ae35d74-ebe9-4afe-98af-79ac388436b8
2008-10-27 22:23:36 +00:00
Stéphane Fillod, F8CFE
b8fe3df910 new backend ala rpcrig/rpcrot, but using rigctld/rotctld and simpler protocol
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2396 7ae35d74-ebe9-4afe-98af-79ac388436b8
2008-09-21 19:34:16 +00:00
Stéphane Fillod, F8CFE
731eadc013 make S-Meter jiggle randomly
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2338 7ae35d74-ebe9-4afe-98af-79ac388436b8
2008-05-04 14:08:55 +00:00
Alexandru Csete OZ9AEC
740db1b127 Added RIT, XIT and IF shift ranges to dummy backend.
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2108 7ae35d74-ebe9-4afe-98af-79ac388436b8
2006-07-02 17:05:26 +00:00
Stéphane Fillod, F8CFE
66360b4f14 Prefixed misc str* and parse_* calls with rig_ to export them in rig.h
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1738 7ae35d74-ebe9-4afe-98af-79ac388436b8
2004-05-17 21:09:45 +00:00
Stéphane Fillod, F8CFE
64d539acd9 be freq_t and setting_t type agnostic
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1641 7ae35d74-ebe9-4afe-98af-79ac388436b8
2004-01-15 22:43:59 +00:00
Stéphane Fillod, F8CFE
02e5735c72 gcc-2.x fixes
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1630 7ae35d74-ebe9-4afe-98af-79ac388436b8
2003-12-08 08:46:11 +00:00
Stéphane Fillod, F8CFE
f5d709c6c5 gran fixes
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1585 7ae35d74-ebe9-4afe-98af-79ac388436b8
2003-11-16 17:20:35 +00:00
Stéphane Fillod, F8CFE
84ad9b827b include fixup, stdio.h is not included by rig.h anymore
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1551 7ae35d74-ebe9-4afe-98af-79ac388436b8
2003-10-01 19:32:04 +00:00
Stéphane Fillod, F8CFE
960c83c4c5 * added ABI VERSION to backend entry point symbol name
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1442 7ae35d74-ebe9-4afe-98af-79ac388436b8
2003-04-16 22:30:43 +00:00
Stéphane Fillod, F8CFE
e0b2a7b4ac fix headers
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1435 7ae35d74-ebe9-4afe-98af-79ac388436b8
2003-04-07 22:42:11 +00:00
Stéphane Fillod, F8CFE
a07a4a336e Adopt new split_vfo handling. Basically, rename set_split/get_split
to set_split_vfo/get_split_vfo, and take an extra transmit vfo arg.
Ascending compatibility is retained at the API frontend level.
NOTE: only function name has changed. The backends do not implement
necessarily the new semantic (the extra tx vfo is just ignored).


git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1425 7ae35d74-ebe9-4afe-98af-79ac388436b8
2003-04-06 18:40:36 +00:00
Stéphane Fillod, F8CFE
0a6040a75a make use of TS_ANY, added 2 new vfo_op: UP/DOWN
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1380 7ae35d74-ebe9-4afe-98af-79ac388436b8
2003-02-23 22:43:01 +00:00
Stéphane Fillod, F8CFE
3497d098a5 misc Makefile fixes
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1282 7ae35d74-ebe9-4afe-98af-79ac388436b8
2002-11-13 20:39:07 +00:00
Stéphane Fillod, F8CFE
376ab5a5c4 reflect rig.h changes
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1279 7ae35d74-ebe9-4afe-98af-79ac388436b8
2002-11-12 00:16:28 +00:00
Stéphane Fillod, F8CFE
56c527ddae added mem_cap, missing filters, and first dummy level_gran
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1249 7ae35d74-ebe9-4afe-98af-79ac388436b8
2002-11-04 22:36:57 +00:00
Stéphane Fillod, F8CFE
52e9a15924 libhamlib-backend.so.x.y.z -> hamlib-backend.so, avoid version info for modules
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1241 7ae35d74-ebe9-4afe-98af-79ac388436b8
2002-11-04 22:19:31 +00:00
Stéphane Fillod, F8CFE
1f3c7f9598 improved chan support
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1196 7ae35d74-ebe9-4afe-98af-79ac388436b8
2002-10-03 20:13:35 +00:00
Stéphane Fillod, F8CFE
27f6be0fd0 WARNING: renamed strmode to strrmode because the symbol is already in use on BSD systems
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1139 7ae35d74-ebe9-4afe-98af-79ac388436b8
2002-08-26 21:26:06 +00:00
Stéphane Fillod, F8CFE
41f5748be2 converted to C99 intialization style
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1132 7ae35d74-ebe9-4afe-98af-79ac388436b8
2002-08-16 17:43:02 +00:00
Stéphane Fillod, F8CFE
3a08190627 gcc3 fixes
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1109 7ae35d74-ebe9-4afe-98af-79ac388436b8
2002-07-08 22:53:27 +00:00
Stéphane Fillod, F8CFE
51ea94cdb5 removed autogenerated files, use autogen.sh instead
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1088 7ae35d74-ebe9-4afe-98af-79ac388436b8
2002-07-02 18:03:25 +00:00