Wykres commitów

73 Commity (16692258a1adab993308620dcf42d67643a39c1c)

Autor SHA1 Wiadomość Data
Michael Black 8c976ea10e
Fix cppcheck warnings in th.c 2019-12-18 22:54:30 -06:00
Michael Black 78f3fbdecd Fix arm compilation warnings 2019-12-09 17:33:54 -06:00
Michael Black fb73e5abd7
Fix some cppcheck warnings
Fix declarations after statements
Remove some !rig checks...we either don't need them or need them everywhere with a new error code
If you pass a NULL rig you get what you deserve :-)
2019-12-09 17:12:13 -06:00
Michael Black 3875e4db04
Fix some cppcheck warnings in th.c 2019-12-07 16:14:53 -06:00
Michael Black 6bf3b00c4f
astyle all files 2019-11-30 10:19:08 -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 73c1ecd165
Change freq & chan struct start/end to avoid colliding with LUA SWIG start/end 2019-08-17 23:20:48 -05:00
Michael Black b431b66ceb astyle for th.c and thd72.c 2019-04-16 09:42:56 -05:00
Michael Black 80a4087e0c Improved debug in th.c 2019-04-16 09:42:03 -05:00
Sebastian Denz f3741fdd19 revert changes on th.c 2018-05-17 13:11:11 +02:00
Sebastian Denz c907a512c8 Merge branch 'master' of github.com:denzs/Hamlib 2018-05-01 13:38:15 +02:00
Sebastian Denz 280d6b5b22 very first draft of Kenwood THD74 backend
mainly copy n paste art from thd72.c and th.c
plus information from https://github.com/LA3QMA/TH-D74-Kenwood
2018-05-01 13:36:22 +02:00
Michael Black W9MDB dcb8b3f91f Fix compile warnings for kenwood 2018-04-22 18:38:16 -05:00
c vw ed8a0fa5cd Get rid of compiler warnings, fix Kenwood RF get_level 2017-08-08 11:49:01 +02:00
c vw 555197a9a5 Getting rid of compiler warnings, especially
- using "abs" function for long or double arguments
 - passing data which is not initialized
2017-07-10 09:55:45 +02: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 aa9ad54b94 Remove kenwood_simple_cmd as kenwood_transaction has that functionality 2015-02-16 18:16:10 +00:00
Bill Somerville 143f305b49 Further clarification in the implementation of kenwood_transaction()
Buffer size is  now an input parameter only as  the return data length
is  implicit since  a null  terminated C  string is  returned.  Better
precondition checks are impelmented.
2015-02-16 12:46:35 +00:00
Bill Somerville 4a74db654a Clarify the handling of Kenwood CAT message terminators
There was an inconsistency in  whether the CAT terminator character is
included  in  returned  messages.   It  now  follows  the  comment  in
kenwood_transaction()  i.e. strips  of  the terminator  and returns  a
message length that reflects that.
2015-02-13 18:07:10 +00:00
Bill Somerville 64d080af2e Removed kenwood_cmd function and replaced uses of it
The function kenwood_cmd doesn't add value  and it uses a reply buffer
that is  not required.  Also  the use of  a reply buffer  disables the
verification  of commands  that  have no  reply feature.   Substituted
kenwood_simple_cmd calls  that do  the job  correctly without  a reply
buffer.

Added delay to busy retry loop when sending commands to rig.

Implemented retries on wrong length repies from rig also with a delay.
2015-01-24 14:59:55 +00:00
Nate Bargmann 250efe9605 Remove set but unused variable errors in kenwood. 2011-08-25 10:43:02 -05:00
Nate Bargmann 8d16bebf40 Update LGPL header in Kenwood source files.
TNX to Lucian Laga, YO6PLB, for the notification.
2011-08-22 21:38:35 -05:00
Stephane Fillod a94f6cfee2 Add skeleton for TH-D72A 2011-05-26 23:21:15 +02:00
Stéphane Fillod, F8CFE 090fe03b5d New Kenwood THF-6A backend
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2991 7ae35d74-ebe9-4afe-98af-79ac388436b8
2010-10-05 17:57:52 +00:00
Charles Suprin, AA1VS 7e96c876b2 Changed th_set_freq to round and select step size to use.
Allows 6.25kHz and 5kHz channelization.


git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2985 7ae35d74-ebe9-4afe-98af-79ac388436b8
2010-09-19 12:31:21 +00:00
Charles Suprin, AA1VS 1e34d99098 extend th_get_vfo_char to support D700
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2982 7ae35d74-ebe9-4afe-98af-79ac388436b8
2010-09-16 23:50:42 +00:00
Stéphane Fillod, F8CFE 0d1e396432 - add FUNC_MUTE, PARM_BEEP, th_scan(), th_[sg]et_dcs_sql()
- fix th_[sg]et_ctcss_tone(), let them handle the tone instead
  of the CTCSS, covered by th_[gs]et_ctcss_sql()
- new tm_set_vfo_bc2() capable of split handling along with th_[sg]et_split_vfo()
- customize TM-D700 channel caps and channel desc size
- set TM-D700's timeout to 1 second
- fix TM-D700's targetable_vfo


git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2979 7ae35d74-ebe9-4afe-98af-79ac388436b8
2010-09-13 21:25:46 +00:00
Stéphane Fillod, F8CFE 28844e674f TM-D700: fix set_vfo, plus some more caps
th_set_freq: finer freq setting
th_set_chan: allow inexact tuning_step


git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2975 7ae35d74-ebe9-4afe-98af-79ac388436b8
2010-09-08 08:28:39 +00:00
Stéphane Fillod, F8CFE b9b97a0f25 - added FIG_FUNC_BC, RIG_PARM_BEEP, RIG_PARM_APO, RIG_LEVEL_VOXGAIN, RIG_LEVEL_VOXDELAY (stub)
- misc: some rig_debug() are missing ending \n
- better 64 bit portability
- TH-F7E fixes (RIG_FUNC_TBURST, RIG_FUNC_TSQL, RIG_FUNC_TONE, *_ctcss_tone, ..)


git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2902 7ae35d74-ebe9-4afe-98af-79ac388436b8
2010-04-26 21:35:37 +00:00
Alessandro Zummo, IZ1PRB 0ce5807dbb th: fixed a missing newline
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2892 7ae35d74-ebe9-4afe-98af-79ac388436b8
2010-04-24 14:04:02 +00:00
Alessandro Zummo, IZ1PRB 94b9c531dd th: fixed stack corruption
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2891 7ae35d74-ebe9-4afe-98af-79ac388436b8
2010-04-24 14:03:04 +00:00
Alessandro Zummo, IZ1PRB 6b0d8185b0 th: fixed formatting issue
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2890 7ae35d74-ebe9-4afe-98af-79ac388436b8
2010-04-24 13:57:15 +00:00
Alessandro Zummo, IZ1PRB 2edfec12db - removed EOM, it's handled by kenwood_transaction
- fixed tabs and spaces
- added generic routine for vfo errors
- set_mem: do not switch vfo if already in mem mode
- simplified invocation of some commands
- buffer optimizations
- added PARM_BEEP and PARM_APO
- fixed getting of LEVEL_RFPOWER
- fixed get_ant



git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2886 7ae35d74-ebe9-4afe-98af-79ac388436b8
2010-04-24 13:51:34 +00:00
Stéphane Fillod, F8CFE 1413d79e5c 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@2711 7ae35d74-ebe9-4afe-98af-79ac388436b8
2009-06-23 21:00:14 +00:00
Alessandro Zummo, IZ1PRB f3c47c5864 style fixes
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2631 7ae35d74-ebe9-4afe-98af-79ac388436b8
2009-02-13 19:29:16 +00:00
Alessandro Zummo, IZ1PRB e1c03296a4 Replace __FUNCTION__, which is gcc specific and was deprecated
a long time ago, with __func__, which is at least defined in C99.


git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2617 7ae35d74-ebe9-4afe-98af-79ac388436b8
2009-02-03 23:22:58 +00:00
Alessandro Zummo, IZ1PRB c6cdfe91a8 Remove const from priv_caps to allow kenwood_init to initialize default values if they're missing
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2600 7ae35d74-ebe9-4afe-98af-79ac388436b8
2009-01-28 23:30:59 +00:00
Nate Bargmann, N0NB 30f66de479 Several Kenwood patches from Alessandro Zummo, azummo-lists@towertech.it
Among the changes:

 I finally had the time to build the CAT interface for my TS450 and
 discovered a couple of new commands.

 MX; MX0; MX1; is used to activate the AIP function
 FL; FLXXXYYY; is used to set the filters.

 I made a perl script to try every possible two-letters command. If
 amyone is interested, at their own risk, just ask.

 I've then modified and optimized the kenwood driver:

 - moved MD_ defined to .h
 - added init/cleanup
 - ts450_get_mode -> kenwood_get_mode_if
 - support reading memory channel freq within kenwood_get_freq
 - added kenwood_safe_transaction as an helper with result len check
 - added kenwood_get_if
 - added get_level for RIG_LEVEL_CWPITCH
 - set/get for RIG_FUNC_AIP
 - replaced ts140/680 get_mode and get_freq
 - removed the delay on the ts450. it works just fine without it.

=============================
 the attached patch requires the first one I sent and
 addresses a few remaining issues

 - converted 8 spaces to tabs
 - added kenwood_mode_table
 - added kenwood_simple_transaction helper func
 - use kenwood2rmode and rmode2kenwood where possible
 - some code cleanup
 - use kenwood_safe/simple_transaction where possible
 - added kenwood_get_mem_if (ts140,ts450,ts680,ts690,ts850)
 - added kenwood_get_channel (ts450,ts850)
 - added FUNC_FINE_STEP (commented out, we have no more func slots)
 - added LEVEL_CWPITCH (set)
 - no reason to have ts850_set_func, ts850_set_level
 - ... ts480_get/set_ant, ts480_set_func
 - ... ts570_set/get_ant, ts570_get_channel, ts570_get_rit
 - ... ts680_set_func
 - ... ts790_get_mode, ts790_get_vfo

 this patch is a bit more extensive and tested only on the TS450.
 feedback will be appreciated.

 where I removed code I took care to verify that the generic
 code in kenwood.c worked in the same way.


git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2591 7ae35d74-ebe9-4afe-98af-79ac388436b8
2009-01-23 03:24:42 +00:00
Stéphane Fillod, F8CFE 8c83b98465 fix warning
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2448 7ae35d74-ebe9-4afe-98af-79ac388436b8
2008-11-01 16:30:23 +00:00
Stéphane Fillod, F8CFE 13f6a16df1 fix warning
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2447 7ae35d74-ebe9-4afe-98af-79ac388436b8
2008-11-01 16:27:28 +00:00
Stéphane Fillod, F8CFE c3cd75472a fix warning
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2446 7ae35d74-ebe9-4afe-98af-79ac388436b8
2008-11-01 16:22:45 +00:00
Stéphane Fillod, F8CFE 8c527d60df * fix remaining places not knowing that tuning step is hexadecimal
* get ready for freqs higher than 31 bits
* on freq higher than 470MHz, tuning step of TH-F7 must be at least 10kHz
* fix flexible th_get_mode
* added RIG_LEVEL_BALANCE/RIG_LEVEL_ATT
* and yes, we do want to read the transaction's reply, to know if successful


git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2354 7ae35d74-ebe9-4afe-98af-79ac388436b8
2008-05-05 21:57:32 +00:00
Stéphane Fillod, F8CFE e5b52531fb * Added th_set_ant/th_get_ant
* Flexible rmode_t conversion
* Made th_get_channel/th_set_channel more generic, esp. to work with TH-F7E
* Major TH-F7E improvements


git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2348 7ae35d74-ebe9-4afe-98af-79ac388436b8
2008-05-04 21:27:26 +00:00
Joop Stakenborg, PG4I 28b2cbbfa0 long long really needed here? - patch by diane Bruce
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2105 7ae35d74-ebe9-4afe-98af-79ac388436b8
2006-04-13 19:43:49 +00:00
Joop Stakenborg, PG4I c2df1f92a8 make sure we use ack_len=0 for functions that return nothing (set functions)
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2093 7ae35d74-ebe9-4afe-98af-79ac388436b8
2006-03-14 20:06:46 +00:00
Joop Stakenborg, PG4I 28b6776472 fix more compilation warnings, int->size_t, unsigned char->char
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2090 7ae35d74-ebe9-4afe-98af-79ac388436b8
2006-03-09 20:12:25 +00:00
Stéphane Fillod, F8CFE cccf1318ce second pass at getting rid of "ll" immediate literal format (64bit int)
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1904 7ae35d74-ebe9-4afe-98af-79ac388436b8
2005-01-25 00:22:14 +00:00
Stéphane Fillod, F8CFE 23369a0c25 * abstract 64bit int format type to cope with portability issues.
introduce PRIll (printf format) and SCNll (scanf) in misc.h.
  This needs to have config.h included beforehand.
* do likewise with freq_t type (double) in rig.h
  FREQFMT is deprecated.


git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1903 7ae35d74-ebe9-4afe-98af-79ac388436b8
2005-01-24 23:04:35 +00:00
Thierry Leconte, F4DWV de7388d76a fix too optimistic comment
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1895 7ae35d74-ebe9-4afe-98af-79ac388436b8
2004-12-28 12:58:51 +00:00
Thierry Leconte, F4DWV d76339dce8 fix get_channel for split frequency
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1892 7ae35d74-ebe9-4afe-98af-79ac388436b8
2004-12-22 16:06:00 +00:00