Michael Black
6bf3b00c4f
astyle all files
2019-11-30 10:19:08 -06:00
Michael Black
72087f1b10
Change all __FUNCTION__ to __func__
2019-11-30 10:16:28 -06:00
Michael Black
2f4d62709e
Added a dummy snprintf to rig_debug to allow gcc to check format strings
...
This found tons of errors in rig_debug statements
So this patch cleans up all the files that were producing warnings or errors
This should fix a few segfaults when running with debug turned on
2019-11-30 10:04:31 -06:00
Michael Black
777eb94825
astyle dummy.c
2019-10-29 22:27:12 -05:00
Michael Black
de418729cf
Typical sequence
...
RX/TX will show correct answers at startup based on rig current status
This sequence is for the dummy device
Rig command: F RX
Frequency: 14500000
Rig command: F TX
Frequency: 14500000
Rig command: V VFOB
Rig command: F 16000000
Rig command: V VFOA
Rig command: S 1 VFOB
Rig command: V TX
Rig command: f
Frequency: 16000000
Rig command: S 0 VFOA
Rig command: f
Frequency: 145000000
What should this behavior be? Return VFOA or VFOB or error?
Rig command: S 0 VFOB
Rig command: f
Frequency: 16000000
2019-10-29 08:03:03 -05:00
Michael Black
73c1ecd165
Change freq & chan struct start/end to avoid colliding with LUA SWIG start/end
2019-08-17 23:20:48 -05:00
Mikael Nousiainen
3dbbe02b78
Add new levels: RFPOWER_METER, COMP_METER, VD_METER and ID_METER, supported at least by most of recent Icom rigs. Add level NOTCHF_RAW for manual notch frequency without specified unit for Icom rigs. Add level MONITOR_GAIN. Add functions DUAL_WATCH and DIVERSITY, supported now by K3/K3S. Fix VOXDELAY level commands for many Icom rigs. Add MONITOR_GAIN level for Icom rigs. Fix and add many K3 commands and add specific rig models for K3S, KX2 and KX3 -- they are very similar to K3, but have slight differences. Extend dump_caps output for rigctl: add complete details of ext levels and frequency ranges. Tests have been performed on IC-7000, IC-756ProIII, IC-7300, IC-7600 and K3.
2019-05-30 09:37:49 +03:00
Michael Black W9MDB
776f9ea2f6
Added TRXManager backend
2018-05-08 06:42:40 -05:00
Mikael Nousiainen
d88881fecd
Add an option to output static values for RIG_LEVEL_STRENGTH and RIG_LEVEL_RAWSTR for integration testing purposes
2018-01-21 16:00:37 +02:00
Michael Black W9MDB
8978d0ab9b
Add FLRig backend
2017-07-06 22:53:58 +01:00
Michael Black W9MDB
0b1a58d308
Fixed indentation warnings detected by newer gcc
...
Fixed one error discovered by these warnings in easycomm.c
2017-06-28 18:00:20 +01: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
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
088edb3735
Update LGPL header in Dummy source files.
...
TNX to Lucian Laga, YO6PLB, for the notification.
2011-08-22 21:38:34 -05: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
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
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
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
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
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
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
4476081add
fix in get_level/get_level and get_parm/get_parm, added support for VFOA/VFOB, memory channel and vfo_ops
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@959 7ae35d74-ebe9-4afe-98af-79ac388436b8
2002-02-15 00:12:44 +00:00
Stéphane Fillod, F8CFE
cd808f596e
renamed freq_sprintf to sprintf_freq
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@929 7ae35d74-ebe9-4afe-98af-79ac388436b8
2002-01-27 23:49:12 +00:00
Stéphane Fillod, F8CFE
8e41b09fdd
be more capable and more verbose, and use channel_t to store current parameters
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@889 7ae35d74-ebe9-4afe-98af-79ac388436b8
2002-01-22 00:43:05 +00:00
Stéphane Fillod, F8CFE
303861e483
warning: backend module breakage: symbol changed: init_ -> initrigs_
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@821 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-12-28 20:28:04 +00:00
Stéphane Fillod, F8CFE
b3ef7f9f0f
let the dummy backend think it can do more
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@797 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-12-26 23:37:46 +00:00
Stéphane Fillod, F8CFE
170644f6e5
removed useless vfo arg to set_trn/get_trn funcs
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@780 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-12-20 07:46:13 +00:00
Stéphane Fillod, F8CFE
d515f58b7c
static/dynamic build fixes and make use of str functions
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@750 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-12-16 11:24:56 +00:00
Stéphane Fillod, F8CFE
6bdc7d0f39
return last set freq/mode/width
...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@723 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-11-18 14:16:57 +00:00