Wykres commitów

38 Commity (2c313c1f6968ccd8b3171e7df78a052cd549576c)

Autor SHA1 Wiadomość Data
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 fdc18a62de
Fix more cppcheck warnings in thg71.c 2019-12-07 23:07:07 -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
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
Bill Somerville 0ab6d99ef5 Attempt to restore AI status on exit
Kenwood,  modern Yaesu  rigs and  many  SDRs use  an auto  information
mechanism that  broadcasts unsolicited rig state  changes, Hamlib does
not support this and turns  off the function.  Because several passive
devices rely  on this information  to detect band changes  for example
this change adds code to save the AI state on start up and restores it
on  exit. These  devices  do  no need  the  broadcasts  since when  an
application using Hamlib is running  as necessary state polling by the
application provides continuous rig state updates.
2015-11-29 18:26:39 +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
Stephane Fillod e652819a52 Protocol documentation URL 2011-09-10 16:31:11 +02: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
Stéphane Fillod, F8CFE d812fdb6df fix old regression about mode handling on TH-D7, TH-G71, TM-V7, TM-D700
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2974 7ae35d74-ebe9-4afe-98af-79ac388436b8
2010-09-07 21:11:13 +00:00
Alessandro Zummo, IZ1PRB 8dc8917745 thg71: removed EOM
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2888 7ae35d74-ebe9-4afe-98af-79ac388436b8
2010-04-24 13:52:42 +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 b8da433c98 thg71,tmv7,ts450s,ts690: verify rig id at rig_open
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2613 7ae35d74-ebe9-4afe-98af-79ac388436b8
2009-02-03 22:42:44 +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 1f1a363dc6 new RIG_MTYPE_BAND
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2344 7ae35d74-ebe9-4afe-98af-79ac388436b8
2008-05-04 21:15:17 +00:00
Stéphane Fillod, F8CFE 95a679eb2e * Split edge range chan_list, change MTYPE of PRIO
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2332 7ae35d74-ebe9-4afe-98af-79ac388436b8
2008-04-27 09:53:40 +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 46cbe7d8ea use size_t
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2089 7ae35d74-ebe9-4afe-98af-79ac388436b8
2006-03-09 19:51:17 +00:00
Stéphane Fillod, F8CFE cb589fcd25 account for improvements
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1975 7ae35d74-ebe9-4afe-98af-79ac388436b8
2005-04-03 20:23:19 +00:00
Stéphane Fillod, F8CFE 3bfe70ab67 don't export local functions, make them static
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1927 7ae35d74-ebe9-4afe-98af-79ac388436b8
2005-02-24 22:35:24 +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 7ede07997d fix rig state vfo list
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1887 7ae35d74-ebe9-4afe-98af-79ac388436b8
2004-12-06 22:16:55 +00:00
Stéphane Fillod, F8CFE b5db6239bb * removed useless kenwood_init/kenwood_cleanup
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1752 7ae35d74-ebe9-4afe-98af-79ac388436b8
2004-06-13 12:35:30 +00:00
Thierry Leconte, F4DWV 47b20b7602 use level_gran to compute levels in get/set_level
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1710 7ae35d74-ebe9-4afe-98af-79ac388436b8
2004-03-21 18:25:54 +00:00
Thierry Leconte, F4DWV f0c75ca8fb generalize th_set_channel and th_get_channel to all th tm rigs
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1707 7ae35d74-ebe9-4afe-98af-79ac388436b8
2004-03-20 16:48:34 +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 8c2ac10274 mingw/win32 does not allow undefined ref
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1631 7ae35d74-ebe9-4afe-98af-79ac388436b8
2003-12-08 21:41:31 +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
Thierry Leconte, F4DWV 4c441258d8 add tx_freq to set/get channel capabilities
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1620 7ae35d74-ebe9-4afe-98af-79ac388436b8
2003-12-04 20:45:30 +00:00
Thierry Leconte, F4DWV cb557b446c fix set_channel ctcss_tone/sql
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1617 7ae35d74-ebe9-4afe-98af-79ac388436b8
2003-12-02 23:26:01 +00:00
Thierry Leconte, F4DWV 95a2ce97b2 add L/U , priority, call , band vfo to set/get_channel
add ctcss_tone and sql to set/get_channel
init str_cal and level_gran in rig cap


git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1616 7ae35d74-ebe9-4afe-98af-79ac388436b8
2003-12-02 22:47:56 +00:00
Thierry Leconte, F4DWV 34e816503b fix set_channel , imporve get_channel , change return error code
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1611 7ae35d74-ebe9-4afe-98af-79ac388436b8
2003-11-30 20:27:01 +00:00
Thierry Leconte, F4DWV 5a653c0df1 near full implementation of thg71 CAT protocol
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1609 7ae35d74-ebe9-4afe-98af-79ac388436b8
2003-11-29 13:36:30 +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 106dbb55e0 added initial support for the TH-G71
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1548 7ae35d74-ebe9-4afe-98af-79ac388436b8
2003-09-28 16:14:00 +00:00