Wykres commitów

79 Commity (4150f12f362bac20a33f5c61c7b659034ffe94af)

Autor SHA1 Wiadomość Data
Michael Black d856248178 Add RIG_MODEL macro and change all rigs to support it 2020-03-05 08:44:18 -06:00
Michael Black ff8ddf018c astyle all C files 2020-02-23 11:26:09 -06:00
Michael Black 849bc5412b Add ANT3&4 to dummy rig and promote to stable 2020-02-17 23:13:22 -06:00
Michael Black 164c2d3798 Add range labels to dummy 2020-02-17 06:44:24 -06:00
Michael Black feba5ac89a Change rigctl Y and y commands to be 1-based
Added simulation of 4 antennas to dummy device
Examples testing 4 antennas with option value=ant#
Rig command: y 0
Antenna: 1
Option: 0

Rig command: Y 1 1

Rig command: Y 2 2

Rig command: Y 3 3

Rig command: Y 4 4

Rig command: Y 5 5
set_ant: error = Invalid parameter

Rig command: y 0
Antenna: 4
Option: 4

Rig command: Y 1 1

Rig command: y 0
Antenna: 1
Option: 1

Rig command: y 1
Antenna: 1
Option: 1

Rig command: y 2
Antenna: 2
Option: 2
2020-02-10 12:17:30 -06:00
Michael Black 7e8938ae65 Changed y command to now use mandatory antenna argument
Put a looplimit on icom_get_ant_count trying to get autodetect to work
Changes to icom_get_ant_count to try and get this working
Added dummy antenna # args to rigs that don't care i.e. only have 1 antenna
2020-02-02 08:38:10 -06:00
Bill Somerville caed2d73a1
Improved get PTT state handling in dummy backend 2020-01-26 14:53:04 +00:00
Michael Black d853c36fb3
Change get_ant to add another option for icom rigs (and others if needed) 2020-01-21 17:53:12 -06:00
Michael Black a43193c6a4
Fix cppcheck warning in dummy.c 2020-01-13 22:57:59 -06:00
Michael Black 444fcfa575 Replace XOPEN with AC_USE_SYSTEM_EXTENSIONS 2019-12-10 15:54:12 -06:00
Michael Black 3220c37ff2
Change XOPEN to 600 2019-12-10 14:50:24 -06:00
Michael Black 3a3d66d52d Now compiles with -std=c99 and no c99 warnings 2019-12-09 22:45:37 -06:00
Michael Black 5414d18a57
Clean up cppcheck warnings in dummy 2019-12-06 16:25:49 -06:00
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