Commit graph

27 commits

Author SHA1 Message Date
George Baltz N3GB
7fadc49ef7 Fix some straggling state references
Add includes to the bindings skeleton
  and repair a cut&paste error
2026-02-23 11:12:15 -05:00
George Baltz N3GB
11ca438222 Deprecate rig_get_trn() and rig_set_trn()
They have been marked as deprecated in doxygen for years.
They both do nothing but return -RIG_EDEPRECATED.

Remove them from the bindings.
AFAICT adding them to bindings/ignore.swg has no effect.
2025-09-13 21:37:25 -04:00
George Baltz N3GB
20eeb96787 Deprecate rig_get_conf()
Define macro to set attribute, if compiler is capable
Add macro to rig_get_conf(), Rig::getConf() declarations
Fix internal uses of rig_get_conf()
2025-07-27 11:31:18 -04:00
Mike Black W9MDB
05033171c3 Change token_t to hamlib_token_t to avoid collsions with libbsm and others
https://github.com/Hamlib/Hamlib/issues/1469
2024-01-21 23:11:55 -06:00
Mike Black W9MDB
68e121d82c Change all to remove HAVE_CONFIG dependency and include <hamlib/config.h> by default
This is necessary to keep alignment between the client view of rig->state and the shared libarary view
Including PTHREAD functions in rig->state necessitated this as HAVE_PTHREAD only defined during hamlib compilation.
Clients including hamlib/rig.h did not pick up all the HAVE* config variable that control what gets included
https://github.com/Hamlib/Hamlib/issues/947
2022-02-04 07:41:36 -06:00
Michael Black W9MDB
3d613519d5 Rename macros to avoid collisions with other software 2021-03-06 12:37:53 -06:00
Michael Black W9MDB
c70d841b83 Add NOCHANGE_PASSBAND to icom...cascading effect on adding vfo elsewhere...which is needed anyways
https://github.com/Hamlib/Hamlib/issues/448
2020-11-29 23:32:14 -06:00
mdblack98
5eb5b6f3d8 https://github.com/Hamlib/Hamlib/issues/227
Added read_only flag everywhere
2020-04-26 14:37:03 -05:00
Michael Black
679db60483 Fix some more cppcheck warnings 2020-03-19 12:10:20 -05:00
Michael Black
e315f5e3ac Added skeleton for new get_ant function that will return ant_tx and ant_rx if known
Every rig will need to be reviewed to fill these in as appropriate
2020-02-18 23:10:14 -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
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
9e3f29447d
Clean up cppcheck warnings in c++ 2019-12-06 16:22:16 -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
Bill Somerville
21c346453a Implement combined split VFO frequency and mode setting.
CAT protocols that don't allow  direct addressing of VFOs require that
the  "other" VFO  be queried  or set  via a  select then  get/set then
select back  to original or  swap then  get/set then swap  again. When
both frequncy and  mode need to be set the  sequences can be optimized
if a single funciton is avaiable.

This enhancement adds those single functions rig_set_split_freq_mode()
and  rig_get_split_freq_mode()  with  a default  impelementation  that
calls the individual rig_{get,set}_split_{freq,mode}() functions. Back
ends  can choose  to  implement  an optimized  version  which is  used
instead of the default if present.

Using these  functions when  an optimized implementation  is available
allows the TX VFO's frequency and mode to be set in a single operation
with  only  one   VFO  exchange  or  selection  either   side  of  the
operation.  Many CAT  protocols  are very  efficient  when getting  or
setting both  frequency and mode  and some even  combine the two  in a
single command.

The letters 'K' and 'k' are used for the rigctl short command name for
these functions.
2016-03-23 17:09:26 +00:00
Nate Bargmann
13ca0caff3 Update LGPL header in c++ source files.
TNX to Lucian Laga, YO6PLB, for the notification.
2011-08-22 21:38:34 -05: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
48730cb9f7 misc fix for picky compilers
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1187 7ae35d74-ebe9-4afe-98af-79ac388436b8
2002-09-22 11:41:49 +00:00
Stéphane Fillod, F8CFE
7bf3972b30 - removed rig_save_channel and rig_restore_channel from API
- rig_set_channel and rig_get_channel can now target VFO, besides memories
- emulation of set_channel and get_channel has been kept in generic routines.
  Added in these routines the support for ext_levels.


git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1113 7ae35d74-ebe9-4afe-98af-79ac388436b8
2002-07-09 22:17:14 +00:00
Stéphane Fillod, F8CFE
2fd1486135 added a private data pointer argument to event callbacks
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@977 7ae35d74-ebe9-4afe-98af-79ac388436b8
2002-02-27 23:25:42 +00:00
Stéphane Fillod, F8CFE
dcf4cb10ba augmented C++ API
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@813 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-12-27 21:50:14 +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
cf3f159b4d static/dynamic build fixes and added split wrappers
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@747 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-12-16 11:18:40 +00:00
Stéphane Fillod, F8CFE
3c0bc9a18c added 2 news calls
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@703 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-11-08 07:38:38 +00:00
Stéphane Fillod, F8CFE
48bc28ecf5 converted to LGPL
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@583 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-07-13 19:16:58 +00:00
Stéphane Fillod, F8CFE
cfdf0276ae more work on C++ bindings
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@560 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-06-18 20:17:20 +00:00
Stéphane Fillod, F8CFE
398c0d580a Initial release
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@550 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-06-15 06:58:12 +00:00