Wykres commitów

474 Commity (08c06aea147efe28d56baaf308b03d8463c9600e)

Autor SHA1 Wiadomość Data
Michael Black W9MDB 9d30205174 Fix linking error for w32-build.sh script 2021-01-31 12:20:44 -06:00
Michael Black W9MDB d8492c6602 Increase debugmsgsave size to avoid compiler warning about not big enough 2021-01-30 11:03:08 -06:00
Michael Black W9MDB 8e70763619 Add debug msg to rig_error 2021-01-29 09:35:46 -06:00
Michael Black W9MDB 7838539a3b Add __FILENAME__ macro 2021-01-28 14:25:26 -06:00
Michael Black W9MDB 5fec08b262 Add disable_yaesu_bandselect option 2021-01-20 11:34:30 -06:00
Michael Black W9MDB 60279707e2 Fix VFOB caching 2021-01-18 08:28:20 -06:00
Michael Black W9MDB 7615f85012 Fix hamlib_port structure alignment
Should fix the shared libary problem with WSJTX getting incorrect vfo_list
https://github.com/Hamlib/Hamlib/issues/500
2021-01-10 07:46:07 -06:00
Michael Black W9MDB 19e819948f Add RIG_TARGETABLE_ANT and fix Yaesu rigs -- Yaesu are only ones needing this right now
https://github.com/Hamlib/Hamlib/pull/495
2021-01-08 07:16:45 -06:00
Michael Black W9MDB 54ab3b951d Add RIG_CAPS_STATUS_CPTR
WSJT-X HamlibTransceiver.cpp now has no dependencies on structure offsets
https://github.com/Hamlib/Hamlib/issues/484
2021-01-03 09:16:20 -06:00
Michael Black W9MDB cf44a1a4e5 Change all rig_level_e enums to 64BIT
Some compilers couldnt' figure out the correct size
https://github.com/Hamlib/Hamlib/issues/486
2021-01-03 08:19:16 -06:00
Michael Black W9MDB 90bdf5248c Add rig_list_foreach_model
https://github.com/Hamlib/Hamlib/issues/484
2021-01-02 23:37:54 -06:00
Michael Black W9MDB 9726e07db6 Change rig_get_function_ptr, rig_get_caps_intg, and rig_get_caps_cptr to use rig_model_t instead of RIG*
https://github.com/Hamlib/Hamlib/issues/484
2021-01-02 09:22:02 -06:00
Michael Black W9MDB a59bdad6f5 https://github.com/Hamlib/Hamlib/issues/484 2021-01-01 15:13:17 -06:00
Michael Black W9MDB aafaafd473 Added rig_get_caps_int and rig_get_caps_cptr functions to replace using caps-> values
https://github.com/Hamlib/Hamlib/issues/484
2021-01-01 10:59:36 -06:00
Michael Black W9MDB 671f2070eb Rename RIG_FUNCTION enums to shorten them up a bit
https://github.com/Hamlib/Hamlib/issues/484
2020-12-31 23:31:27 -06:00
Michael Black W9MDB f7ff96fec8 Adding rig_get_function to replace use of rig->caps->set_vfo and such
https://github.com/Hamlib/Hamlib/issues/484
2020-12-31 23:05:54 -06:00
Michael Black W9MDB 82958c957c Add RIG_MODE_SPEC for PowerSDR and perhaps others to come 2020-12-27 14:53:39 -06:00
Michael Black W9MDB 2a0deb3415 Add RIG_LEVEL_RFPOWER_METER_WATTS
Old level of 0-1 just doesn't work well with the varying power levels in rigs now
2020-12-16 17:47:49 -06:00
Mikael Nousiainen 457211a7e3 Add get_status command for rotator status flags. Add missing rotator caps in dumpcaps output. 2020-12-03 21:40:34 +02:00
Mikael Nousiainen bb315270bf Merge branch 'master' into rotator-speed-control-and-status 2020-12-02 21:46:23 +02: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
Michael Black W9MDB 8827f081dd Add flushx option for MicroHam devices to allow flushing by read instead of tcflush.
The special name of uh-rig only works on Linux and has other purposes apparently for ptt use
https://github.com/Hamlib/Hamlib/issues/446
2020-11-25 08:40:24 -06:00
Mikael Nousiainen a48f149955 Implement funcs, levels and parms + the ext variants for rotators. Add option to not change rotator speed when using the move command. Add rotator status flags. Work in progress. 2020-11-24 21:51:10 +02:00
Michael Black W9MDB 6ecaed955f Add RIG_METER_TEMP for FTDX101D and other newcat.c rigs
Update documentation on TONE and TSQL to make it clear
2020-11-11 08:21:38 -06:00
Michael Black W9MDB 056e0b2359 Chance TSQL in newcat.c to allow more than 2 states
FTDX101D has state=2 for encode-only
2020-11-11 07:06:51 -06:00
Mikael Nousiainen 81d02e22f1 Remove RIG_PASSBAND_ROOF as it was not necessary to use it 2020-11-10 22:17:15 +02:00
Mikael Nousiainen 526fb21852 Add RX filter choices for FTDX 5000 and FTDX 3000. Go through the rest of the filter definitions and try to unify and fix any bugs. Add roofing filter support for FT-950 and FT-2000. 2020-11-06 10:35:21 +02:00
Michael Black W9MDB 335a75518c Add TARGETABLE_COMMON to rig.h 2020-11-01 17:00:44 -06:00
Michael Black W9MDB 5721db70be Added two more targetable flags for MEM and BANK to avoid VFO swapping
https://github.com/Hamlib/Hamlib/issues/430
https://github.com/Hamlib/Hamlib/issues/414
2020-11-01 07:48:52 -06:00
Michael Black W9MDB 74356b3a99 Add RIG_TARGETABLE_PTT and RIG_TARGETABLE_RITXIT
For most rigs these are non-vfo specific commands so we can avoid doing VFO switching
Add flags to all Yaesu, Icom, and Kenwood in rig_open
Some rigs do have VFO specific but it's already in the backend
More rigs can use these flags..TBD...
https://github.com/Hamlib/Hamlib/issues/430
2020-10-31 17:19:08 -05:00
Michael Black W9MDB 07447c881d remove some cppcheck statements not needed anymore 2020-10-29 12:54:35 -05:00
Michael Black W9MDB 4e748df12b Add -x/--uplink switch for GPredict. Will avoid reading freq from the uplink VFO 1=Sub, 2=Main
This will likely deprecate the twiddle option
https://github.com/Hamlib/Hamlib/issues/404
2020-10-23 11:34:42 -05:00
Michael Black W9MDB 8a769c7011 Add VFO_CURR to set_cache_freq and get_cache_freq
https://github.com/Hamlib/Hamlib/issues/300
2020-10-19 22:22:59 -05:00
Michael Black W9MDB 0443afc794 Add wait_morse command with generit wait_morse_ptt function
This should work for any send_morse with full breakin
https://github.com/Hamlib/Hamlib/issues/422
2020-10-18 12:34:36 -05:00
Michael Black W9MDB a815179c68 https://github.com/Hamlib/Hamlib/issues/300 2020-10-18 12:06:27 -05:00
Michael Black W9MDB cd220db7c7 More changes for future 4.1 caching
https://github.com/Hamlib/Hamlib/issues/280
2020-10-17 23:42:57 -05:00
Michael Black W9MDB 7a45f018ec Add caching info for VFO_C
https://github.com/Hamlib/Hamlib/issues/280
2020-10-17 23:04:53 -05:00
Michael Black W9MDB 8127391623 Notation on caching future change
https://github.com/Hamlib/Hamlib/issues/280
2020-10-17 22:47:57 -05:00
Michael Black W9MDB 5add4b343d Add rig_stop_morse to API and stop_morse command for rigctl
No rigs implemented yet
https://github.com/Hamlib/Hamlib/issues/240
2020-10-16 08:41:57 -05:00
Michael Black W9MDB 4faad82da7 Change get_ptt RTS/DTR to keep serial port open
New option --set-conf=ptt_share=1 to revert to old behavior where serial port is opened/closed every get_ptt
https://github.com/Hamlib/Hamlib/issues/383
2020-10-12 23:27:13 -05:00
Michael Black W9MDB 45edda6a16 Add RIG_TARGETABLE_LEVEL to rig.h 2020-10-12 09:41:12 -05:00
Michael Black W9MDB d6cad85cf2 kenwood.c don't ask for power min/max when PTT is on 2020-10-07 12:40:59 -05:00
Michael Black W9MDB 50b394098e Fix RIG_PASSBAND
Add RIG_PASSBAND_ROOF macro
2020-10-07 07:32:05 -05:00
Michael Black W9MDB 86417420b4 Change PASSBAND_NORMAL back to zero to keep backwards compatiblity
This will change in 5.0
2020-10-06 23:10:45 -05:00
Michael Black W9MDB b7f73a3b46 Change RIG_PASSBAND_NORMAL to -2 to avoid colliding with Yaesu 0 bandwidth
https://github.com/Hamlib/Hamlib/issues/396
2020-10-05 14:53:40 -05:00
Michael Black W9MDB 9b26a4e957 Add PKTFMN mode for FTDX101D
Finish mods to newcat get_rx_bandwidth
https://github.com/Hamlib/Hamlib/issues/391
2020-10-05 12:53:56 -05:00
Mikael Nousiainen 23971f8e75 Fix issues with Icom extcmds definitions, some ext_tokens missing. Refactor custom level implementations to use extcmds definitions. Print out extfuncs in caps dump. 2020-09-16 18:10:35 +03:00
Michael Black W9MDB 2020f29185 Remove redundant RIG_LEVEL_BRIGHT 2020-09-10 10:07:11 -05:00
Michael Black W9MDB 24fb47cbe0 Added IC-705
Added RIG_LEVEL_BRIGHT -- IC705 has this level
Fixed range printout
https://github.com/Hamlib/Hamlib/issues/364
2020-09-06 12:28:35 -05:00
Michael Black W9MDB 31115b6a16 deprecate itu_region 2020-07-24 14:23:38 -05:00
Daniele Forsi d7b332c3f7 Fix spelling errors
Fixed using the following command:
codespell --write-changes --summary --skip=*.m4 --ignore-words-list="develope,get's,quitt,setts,som,ue,vektor"
codespell --write-changes --summary --skip=aclocal.m4,lib --ignore-words-list="develope,get's,quitt,setts,som,ue,vektor"

Codespell home page: https://github.com/codespell-project/codespell
2020-07-24 09:02:48 +02:00
Bill Somerville 281febec62
New power on option rather than power on/off
Also fixes incorrect token name usage in token definition
2020-07-04 23:23:39 +01:00
Bill Somerville 3f40029720
Add missing config parameters for rig power on/off and screen-saver
Defaults set to by compatible with prior released versions to avoid
regressive behaviour.
2020-07-04 19:42:37 +01:00
Michael Black W9MDB fa08887471 Change hamlib_cache_t enums to HAMLIB namespace 2020-07-02 10:23:41 -05:00
Michael Black W9MDB d42d837162 Normalize cache namespaces to hamlib_ and HAMLIB_ 2020-07-01 22:33:32 -05:00
Michael Black W9MDB 2c64ba9bba First round of rigs switched over to new rig_flush function
When done this will allow all rigs to use network connections and stil flush properly
https://github.com/Hamlib/Hamlib/issues/307
2020-06-23 08:27:45 -05:00
Michael Black W9MDB 835caf34f9 Add rig_flush function
https://github.com/Hamlib/Hamlib/issues/307
2020-06-22 23:54:11 -05:00
Michael Black W9MDB 815db24852 Fix MSVC compile by removing unistd.h and defining our own rig_useconds_t
https://github.com/Hamlib/Hamlib/issues/301
2020-06-13 17:40:47 -05:00
Michael Black W9MDB 1317bb8034 Fix vfo_fixup link error
Make vfo_fixup a HAMLIB function so it can be used elsewhere
https://github.com/Hamlib/Hamlib/issues/299
2020-06-12 08:28:05 -05:00
Michael Black W9MDB 92cbaf620e Precursor to implementing more caching
No effect yet
https://github.com/Hamlib/Hamlib/issues/280
2020-06-04 10:58:22 -05:00
Michael Black W9MDB ae24d50901 add numbers to rig_errcode_e documentation 2020-06-02 22:29:25 -05:00
Michael Black W9MDB 87a83ffbb1 rigctld now works with rigctl in vfo mode
https://github.com/Hamlib/Hamlib/issues/259
set_vfo_opt can now dynamically change vfo mode on rigctld
So this example now works...does some non-vfo stuff then switches to vfo mode
rigctl -m 2 F 14074000 V VFOB F 14076000 V VFOA f V VFOB f set_vfo_opt 1 f VFOA
rigctl commands v,V and S have been changed to not require VFO arguments
New API function rig_set_vfo_opt -- only implemented for Net rigctl as it doesn't apply to any other rigs
2020-05-27 12:21:41 -05:00
Michael Black W9MDB 1add89bd71 Add rules for setting VFO_RX and VFO_TX for different rig types
https://github.com/Hamlib/Hamlib/issues/261
2020-05-24 23:42:35 -05:00
Michael Black W9MDB 0cd1bb198b Revert rig_debug to use 16384 buffer to avoid compilation warnings 2020-05-21 10:27:51 -05:00
Michael Black W9MDB a77a57ff38 Disallow requesting a vfo that the rig doesn't have.
This could be changed to automatically selecting a valid VFO so
VFOA=Main or Main=VFOA for example but not sure if we want to do this.
This is already being done for the IC-9700 for example since satmode
only has Main/Sub where non-satmode has MainA/MainB/SubA/SubB
So the question is do we emulate VFOA/B and Main/Sub for all rigs?
2020-05-21 15:51:41 +02:00
mdblack98 f8321a36f4 Fix cppcheck warnings and fill out unused RIG_LEVEL items 2020-05-05 23:33:40 -05:00
mdblack98 3794bc5a0a Fix cppcheck warnings 2020-05-05 09:38:36 -05:00
mdblack98 baa3787bc5 Add ELAPSED_INVALIDATE for caching use
Change rig_get_vfo to use ELAPSED_INVALIDATE
Change elapsed_ms code to make a little more sense
https://github.com/Hamlib/Hamlib/issues/231
2020-05-02 11:19:44 -05:00
mdblack98 9e710156e3 Add ability for rigctld client to turn vfo mode on/off with (,)
https://github.com/Hamlib/Hamlib/issues/232
Add caching of some limited rig information
Can be adjusted or turned off with rig_cache_set_timeout_ms or in rigctl with \set_cache_timeout
https://github.com/Hamlib/Hamlib/issues/228
2020-05-01 12:03:54 -05: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 bc33e3ea43 Fix gcc 10 warning 2020-04-10 08:36:01 -05:00
Michael Black f1f0d7f129 Fix some of the documentation 2020-04-09 17:56:19 -05:00
Michael Black 9e89c4455a Add VFO & ANT definitions to rigs that were missing them 2020-03-25 23:07:42 -05:00
Michael Black 9d8ddd4582 Replace RIG_LEVEL_VOX with RIG_LEVEL_VOXDELAY 2020-03-24 10:02:17 -05:00
Michael Black bda5feb1bd More cppcheck changes 2020-03-23 10:13:02 -05:00
Michael Black c489f97624 More cppcheck changes 2020-03-20 07:51:32 -05:00
Michael Black a60d1c315d Rename struct rig so s_rig and struct rot to s_rot
This avoids name collision with swig bindings for Rig and Rot classes
This is a harmless change as these are use as RIG and ROT anyways
2020-03-13 23:55:44 -05:00
Michael Black 8e66304860 Move macro_name to end of rig_caps to maintain shared libarary compatibility 2020-03-08 08:39:11 -05:00
Michael Black 3a43815d71 Move macro_name later in structure for better compatibility 2020-03-06 09:44:29 -06:00
Michael Black d0f114b178 Add macro_name to caps structures for rig, rot, and amp devices 2020-03-05 23:48:14 -06:00
Michael Black d856248178 Add RIG_MODEL macro and change all rigs to support it 2020-03-05 08:44:18 -06:00
Michael Black 8b462a0242 Add set_twiddle and get_twiddle functions
Add -W switch to rigctld to set twiddle timeout..don't need switch for rigctl since it can set from there with \set_twiddle
2020-02-24 09:34:02 -06:00
Michael Black f4c1143959 Add SCREENSAVER parm...implemented for 9700 for now 2020-02-23 09:48:21 -06:00
Michael Black 95986b9685 Add detection of VFO twiddling
In the case of gpredict there are times when one has to adjust the
VFO to dial in a frequency while gpredict is tracking.
We now detect this situation and have a 3-second delay every time
VFO twiddling is detected.  set_freq and set_vfo calls will be
ignored during this delay.
May make this a settable value if needed.
2020-02-23 08:28:19 -06:00
Michael Black b961ff0566 Fix rig.h description of new frequency ranges 2020-02-18 06:31:18 -06:00
Michael Black b443794897 Add new 5-range frequency definitions 2020-02-17 06:45:10 -06:00
Michael Black 2161667428 Fix range_list in ft991
Add explanation of RIG_ANT_CURR for channel.ant entry.  It's to be used when rigs have multiple antenna ports for dedicated band ranges and the rig does not have a set_ant command
2020-02-12 15:00:10 -06:00
Michael Black 49aa7d00a7 Fix get_ant RIG_ANT_CURR logic 2020-02-12 07:20:34 -06:00
Malcolm Herring e3cef196f7 add g/set_ext_func to API 2020-02-11 09:48:13 +00:00
Michael Black fdef21f068
Merge pull request #193 from mdblack98/master
2020-02-05 Patches
2020-02-05 23:24:48 -06:00
Dawid Szymanski c6e06bfb01 ICOM Voice Keyer implemented. 2020-02-06 01:00:34 +01: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
Nate Bargmann 04ba2f9806
Merge branch 'mdblack98-master' 2020-01-20 19:27:17 -06:00
Michael Black 09b5d87449
Fix lua bindings for 64-bit compilation
Tested on swig 4.0.1 and lua 5.3.5
2020-01-19 11:15:44 -06:00
Malcolm Herring 85541cc257 Merge remote-tracking branch 'Hamlib/master' 2020-01-18 05:59:49 +00:00
Malcolm Herring f6b39c1161 update rigs for new functions 2020-01-18 05:59:22 +00:00
Michael Black a1ec13fc14
Add C4FM mode for Yaesu FT-991 2020-01-15 08:15:29 -06:00
Malcolm Herring 27edb089c7 Merge remote-tracking branch 'Hamlib/master' 2020-01-11 06:54:30 +00:00
Michael Black b7e8f01701 Fix mingw32 DLL linkage of hl_sleep 2020-01-10 15:58:16 -06:00
Malcolm Herring a4295a224e Merge remote-tracking branch 'mdblack/master' 2020-01-09 07:54:15 +00:00
Michael Black 5ae03f0eed
Possible fix for mingw Win32 dll linking of nanosleep 2020-01-08 22:50:37 -06:00
Michael Black 138787f44c
Hopefully fixed dll build and usleep linking 2020-01-08 14:34:14 -06:00
Michael Black 7ee3a702f5
Replace all usleep with hl_usleep
Several places where usleep max value could be overflowed
New hl_usleep can take values > 1000000
2020-01-07 23:18:56 -06:00
Malcolm Herring 4d822d5983 Merge remote-tracking branch 'mdblack/master' 2020-01-06 19:54:54 +00:00
Malcolm Herring c4e0696ee1 add token list for ext operations 2020-01-06 19:54:09 +00:00
Michael Black 836e5f5c17
Move time.h include to sleep.c 2020-01-06 07:25:38 -06:00
Malcolm Herring c897ce9084 Merge remote-tracking branch 'mdblack/master'
merge mdblack master
2020-01-06 07:06:09 +00:00
Michael Black 70115f7efd
Replace sleep macros with hamlib custom functions 2020-01-05 15:37:33 -06:00
Malcolm Herring 4975150611 Merge remote-tracking branch 'Hamlib/master'
merge latest upstream
2020-01-04 06:00:03 +00:00
Malcolm Herring fcde35815b more extended operations 2020-01-04 05:59:44 +00:00
Michael Black 24eaeecfdf
Fix sleep macros and newcat.c set_powerstat 2019-12-24 15:01:08 -06:00
Michael Black b07833c889 Pretty up sleep macros 2019-12-22 11:30:30 -06:00
Michael Black ed339b1c2b
Add sleep and usleep macros so all sleeps use nanosleep 2019-12-22 11:17:22 -06:00
Michael Black b3c6b9d707
Add rig_strrmodes function and fix flrig to print mode list correctly 2019-12-12 09:13:30 -06:00
Malcolm Herring 5f6e0641ad Prepare for D-STAR implementation
Add 3 new rigs: ID-31, ID-51 & ID-4100
Update other D-STAR rigs: IC-R30, IC-R8600 & IC-7100
2019-12-09 05:33:20 +00:00
Michael Black 72565fe621
Fix ic7300 VFOs and sprintflst to be more generic 2019-12-02 14:46:41 -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 58763c96ae
Reorder RIG_VFO entries and add RIG_VFO_MAIN_A and RIG_VFO_MAIN_B in preparation for other changes 2019-11-28 09:57:49 -06:00
Michael Black 707d60b123
Fix another mistake...arrghhh 2019-10-15 09:47:45 -05:00
Michael Black 6ab855fcb6
Fix mistaken commit 2019-10-15 09:46:26 -05:00
Michael Black f0a6fa7ff9
Merge 2019-10-13 23:01:15 -05:00
Bill Somerville d931bd4e18
Move unnecessary global and file static variables to the stack 2019-08-29 00:39:39 +01:00
Michael Black 52c084195f
Add note for LUA UUL changes 2019-08-18 08:21:14 -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
Michael Black 1b5f59577f
Add warning in rig.h for thread_local missing 2019-08-01 22:41:56 -05:00
Michael Black 6d28b6b1b1
Adding thread_local definition to rig.h 2019-07-31 15:48:35 -05:00
Michael Black 9bbbfa953e
Fix rig.h for merge 2019-06-12 16:23:15 -05:00
Michael Black b23734fb5b
Fix rig.h for merge 2019-06-12 16:13:56 -05:00
Michael Black 7e9c566944
Add first cut at amplifier control 2019-06-12 15:52:35 -05:00
Mikael Nousiainen 45a8c5c575 More fixes to many Icom HF rig backends: tuner function, VFO tune op, rig-specific AGC levels, basic set of filters where missing, get/set split, get/set powerstat, make get/set RIT/XIT commands shared functions, add new level for Noise Blanker level, fix RIG_MODE_PKTAM and add missing PKT modes for many rigs, add dual-watch function. Add RIT/XIT functions for TS-480 and TS-890. 2019-06-01 09:51:17 +03: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 e2f6c7d092 Add icom get_vfo introduced on IC-9700
Add DD mode for IC-9700
Numerous IC-9700 updates
2019-04-07 09:03:55 -05:00
root 296ef58598 Add export definition for netrigctl_get_mode for DLL building 2019-02-08 07:28:50 -06:00
Michael Black 8b695bcc03 Add BC2 and NB2 functions for newer kenwoods
Change RIG_SETTING_MAX for 64-bit compatibility
2019-01-01 12:33:22 -06:00
Michael Black 772b1ba2c1 Fix rig_idx2settings for 64-bit sprintf_list functions 2018-12-31 15:39:49 -06:00
Bill Somerville df4ec51909 Simplify SWIG interface definition and hide 64-bit values from Lua binding
By  including the  stdint  SWIG  typemaps we  can  directly use  types
derived from [u]int64_t etc.

Because Lua numbers are  implemented using a double-precision floating
point type and  also because SWIG when generating a  Lua wrappings can
only define  constants from #define and  enum values that fit  into an
'int' type we  must hide any constants that require  more than 32-bits
to represent themselves,  as they cannot be represented  in Lua.  This
applies  to  rmode_t  and  the  RIG_FUNC... defines  at  the  time  of
writing. By  hiding them from  the Lua binding  they will get  a 'nil'
value in Lua i.e. undefined so clients using the Lua binding will know
they are  not there.  This is  a nasty hack  but without  major design
changes to the Hamlib API it is do this or drop the Lua binding.
2018-12-28 20:33:30 +00:00
Malcolm Herring 2ccf99da04 icr30 updates 2018-12-26 08:25:38 +00:00
Malcolm Herring 1747595f10 ICR6 new functions 2018-12-24 11:00:12 +00:00
Michael Black 4b69188f67 Fix some 64bit items and add RIG_FUNC_NB2 for TS-890S 2018-12-23 17:41:10 -05:00
Michael Black 7123bb4403 Change rmode_t to uint64_t and remove unneeded casts 2018-12-22 23:56:30 -05:00
Michael Black 005fb29cf7 Add TS-890S as derivative of TS-480 plus new modes 2018-12-22 12:03:41 -05:00
Michael Black cd0a9aebb6 Merge hamlib head 2018-12-21 12:54:47 -05:00
Michael Black 422b266b9b Change RIG_MODE and RIG_FUNC to 64-bit values 2018-12-21 12:39:20 -05:00
Malcolm Herring 31cc85bf57 Add IC-R30 2018-12-21 07:07:41 +00:00
Ekki Plicht (DF4OR) 82e0ee8364 New model Icom IC-R8600
So here is the first release of the new IC-R8600 rig backend.

Implemented functions so far:
set/get freq
set/get mode
functions: NB TSQL ANF NR AIP MN LOCK VSC RESUME
level: PREAMP ATT AF RF SQL NR PBT_IN PBT_OUT CWPITCH AGC RAWSTR STRENGTH
extra levels (params): ANN BACKLIGHT KEYLIGHT
Mode list: AM CW USB LSB RTTY FM WFM CWR RTTYR SAM SAL SAH

Next up:
* correct filter settings
* new digital modes
* memory store/retrieve
* correct CTCSS, DTCS handling
* correct BEEP handling (broken)

73,
Ekki, DF4OR
2018-12-17 12:37:17 -06:00
C-Elegans d8f010cfa3
Add ability to have rigctld display transverter frequency
Use -C lo_freq=xxxxx to have rigctld add x to your vfo frequency
internally
2018-11-07 11:49:06 -05:00
Jeroen Vreeken 9c7ce6eacb Merge branch 'master' of github.com:Hamlib/Hamlib 2018-05-06 00:12:23 +02:00
Michael Black W9MDB 04af1b0553 Add PKTAM PKTFM modes to ic7300 2018-05-01 08:12:05 -05:00
Mikael Nousiainen b19a9138a6 Set FILPATHLEN to 512 instead of 100 to support longer device file names -- especially ones generated by udev 2018-04-22 19:53:50 -05:00
Michael Black W9MDB 6c369109e6 Add debug time stamps via -Z and --debug-time-stamps 2018-04-15 15:06:52 -05:00
Jeroen Vreeken bfa948ebc5 Add GPIO and GPION options for DCD.
Also bump abi version since the config params struct needed resizing.
2018-03-29 23:55:25 +02:00
Bill Somerville 80a4097aba Add best guess transmit status to rig state structure
This flag can  be used by back  ends that need to  take special action
while the  rig is transmitting e.g.  the FT-747GX and similar  that do
not process CAT commands while transmitting.

The flag  is also used as  a default answer to  rig_get_ptt if nothing
better is available.

Deal with inaccurate CAT query for Rx/Tx on the Yaesu FT-847

This rig  doesn't set the Rx/Tx  status flag when PTT  is asserted via
the PTT pin on the rear PACKET  socket so we need to override which we
can do if we known we have asserted PTT via rig_set_ptt().

Adjust style and fix set PTT defects

Fix a warning from a declaration of a deleted function definition
2017-08-09 21:54:50 -05:00
Nate Bargmann cedd914e68 Apply formatting to 'include/' directory.
Format public and private header files per new formatting guide.
2017-08-09 06:14:31 -05:00
Michael Black da40941d7f Merge branch 'master' of https://github.com/N0NB/hamlib 2016-08-31 09:22:13 -05:00
Michael Black b5f53519bc Remove define 2016-08-31 09:11:14 -05:00
Michael Black 15b3e73e7f Exposed constants via function calls 2016-08-31 09:05:47 -05:00
Nate Bargmann bf2b5c80ba Merge branch 'master' of http://video.vreeken.net/~pe1rxq/hamlib-code 2016-06-05 11:43:53 -05:00
Michael Black W9MDB\n d5b3c049af Fixed SCAN_STOP for all rigs and implmented it plus SCOPE for ic7300 2016-06-02 23:08:22 -05:00
Jeroen Vreeken 1bf736d650 Add support for GPIO PTT. 2016-05-28 16:00:03 +02: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 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
Bill Somerville aebe52a45e Add a new command line option '--no-restore-ai' ('-n') to rigctl
As Hamlib now restores the rig auto information state (AI) on exit
there is now a need to disable that functionality so that rigctl can
be used to set/reset AI mode on the rig explicitly.

A new  public API  function 'rig_no_restore_ai()'  is also  added that
allows any  client to  disable this auto  AI restore  functionality if
required. Most  clients should do nothing  as restoring AI state  is a
good thing.
2015-12-04 00:22:01 +00:00
Bill Somerville 542585029d Initial back end implementation for the Kenwood TS-990s 2015-04-14 10:04:59 +01:00
Bill Somerville 19f131b1b8 Remove redundant RIG_PTT_SERIAL_CAT enum from ptt_t
The Icom IC-7100 back end added this enum instead of using the extant
RIG_PTT_RIG enum.  Also the rig_get_ptt() implementation didn't handle
it and errored out.

Note: RIG_PTT_SERIAL_CAT was added in commit
e9ee671149  - N0NB
2014-10-09 10:25:38 -05:00
Ricky Elrod 0f600af80a Add a tag name to hamlib_port_t.
I am making a Haskell binding to hamlib and this anonymous struct was
creating some issues for me. I am not a C-coder by day, but I think this
is harmless to add here.

Signed-off-by: Ricky Elrod <ricky@elrod.me>
2014-08-14 11:22:39 -04:00
mvcstroomer e9ee671149 Add Icom IC-7100 support.
From Martin, CT1IQI:

"Several programs under Linux rely on Hamlib for control. I wanted to
try WSJT-X (digital modes like JT65) and found that my new IC-7100 was
not yet supported, also after having compiled the current git version of
Hamlib and having compiled WSJT-X against that.

So I added a IC-7100 by taking the ic-7200 and 7420 rig files as
example, be it without going (yet) through all of the very many commands
the ic-7100 supports.

This produced the situation where there was communication, e.g. setting
and reading frequencies, but the PTT control did not work.  I debugged
that to actually the lack of a PTT mode in Hamlib that uses serial and
CAT at the same time; currently PTT per 'serial' seems equivalent to
toggling certain RS232 pins but not to any serial command level. So I
added a RIG_PTT_SERIAL_CAT mode for PTT control. Now the wsjt-x program
works nicely with the ic-7100 and controls both frequency and PTT via
the single USB cable."

Signed-off-by: Nate Bargmann <n0nb@n0nb.us>
2013-10-25 08:40:36 -05:00
Nate Bargmann 36f5f4cf6a Revert to previous handling of getaddrinfo()
Use the system gettaddrinfo function when possible as before.  Tested on
GNU, Cygwin, MinGW on Linux, and MinGW on Windows.  Under MinGW the
replacement getaddrinfo is used.  Perhaps this is an area for
investigation to be certain MinGW really doesn't supply getaddrinfo.
This reverts some of the patches from Remi Chateauneu in commit
60019c9.  This fixes build issues encountered building the Windows
binary daily snapshots.

Enabled static library build by default at configure time.

Fixed pthread library linking for the ars backend on MinGW.
2013-09-15 19:47:49 -05:00
Remi Chateauneu 60019c9444 Monolitic libraries. 2013-09-08 14:56:28 +01:00
Nate Bargmann 8c2eee91cc rig.h: Replace rig_func_e with CPP macros
The C standard dictates that an enum constant is a 32 bit signed
integer.  Setting a constant's bit 31 created a negative value that on
amd64 had the upper 32 bits set as well when assigned to the
misc.c:func_str structure.  This caused misc.c:rig_strfunc() to fail its
comparison for RIG_FUNC_XIT on amd64 (x86_64).  To use bit 31 as an
unsigned long, preprocessor macros have been used instead as a 'const
unsigned long' which cannot be used to initialize the func_str.func
members.  TNX KA6MAL, AC6SL.  - N0NB

Other minor formatting edits.
2013-01-31 18:00: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
Kamal Mostafa 3466512dbd Fix spelling errors 2012-08-21 19:54:50 -07:00
Stephane Fillod 46033db165 CM108 GPIO PTT: do not break ABI
Move around the ptt_bitnum field in the union of hamlib_port_t.
Increase Hamlib frontend revision.
2012-01-11 23:28:01 +01:00
Andrew Errington 1a77ef9eb9 Initial support for CM108 GPIO contorl of PTT
Signed-off-by: Nate Bargmann <n0nb@n0nb.us>
2012-01-11 06:16:51 -06:00
Stephane Fillod da80137819 Add support for RIG_PORT_UDP_NETWORK
Also some copyright year update,
and default serial device on MacOSX
2012-01-06 09:28:24 +01:00
Nate Bargmann 2fd02a9ade Update LGPL header in include header files.
TNX to Lucian Laga, YO6PLB, for the notification.
2011-08-22 21:38:35 -05:00
Stephane Fillod 421909bad2 Let set_ptt() select source, either TX mic or TX data 2011-07-20 00:09:50 +02:00
Stéphane Fillod, F8CFE 01e2396ead - revert creation of RIG_MODE_WAM and RIG_MODE_SFM
- sr2200:
  - fix filter width of WFM
  - prevent symbol littering


git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@3044 7ae35d74-ebe9-4afe-98af-79ac388436b8
2011-02-08 22:21:11 +00:00
Nate Bargmann, N0NB bd20ccd356 AOR SR2200 backend added by Stefano Speretta
New backend, SR2200, heavily derived from AR8200 backend. From Stefano
Speretta <s.speretta@isispace.nl>.

git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@3025 7ae35d74-ebe9-4afe-98af-79ac388436b8
2011-01-28 00:32:55 +00:00
Stéphane Fillod, F8CFE 9de8e3f1d2 Add Mark/Space serial parity
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2996 7ae35d74-ebe9-4afe-98af-79ac388436b8
2010-10-26 19:31:09 +00:00
Stéphane Fillod, F8CFE 453995e7c0 fix segfault and allow mode listing in rigctl
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2865 7ae35d74-ebe9-4afe-98af-79ac388436b8
2010-04-05 10:01:09 +00:00
Stéphane Fillod, F8CFE f411c3fae0 allow tones and func calls to be targetable
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2845 7ae35d74-ebe9-4afe-98af-79ac388436b8
2010-03-05 18:48:40 +00:00
Stéphane Fillod, F8CFE b636a3f6ac allow check of vendor name and product string when looking for USB device
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2727 7ae35d74-ebe9-4afe-98af-79ac388436b8
2009-09-14 07:32:36 +00:00
Stéphane Fillod, F8CFE 976540de77 set/get_split_{freq,mode} assisted by frontend
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2655 7ae35d74-ebe9-4afe-98af-79ac388436b8
2009-02-20 14:14:31 +00:00
Alessandro Zummo, IZ1PRB bb6cf68ad2 implemented set/get_ext_param (voice, fine, xit, rit). enabled on ts450 and
ts850


git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2620 7ae35d74-ebe9-4afe-98af-79ac388436b8
2009-02-06 14:15:12 +00:00
Stéphane Fillod, F8CFE 3419987f6b better documentation of enum rig_errcode_e
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2596 7ae35d74-ebe9-4afe-98af-79ac388436b8
2009-01-25 16:23:06 +00:00
Terry Embry, KJ4EED 19da025135 removed NFM NFM
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2579 7ae35d74-ebe9-4afe-98af-79ac388436b8
2009-01-11 17:42:29 +00:00
Nate Bargmann, N0NB 86badd1aaf Documentation updates.
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2571 7ae35d74-ebe9-4afe-98af-79ac388436b8
2009-01-09 23:03:37 +00:00
Terry Embry, KJ4EED 76b48e3d9f Added RIG_MODE_NFM, RIG_MODE_NAM
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2547 7ae35d74-ebe9-4afe-98af-79ac388436b8
2009-01-03 14:08:00 +00:00
Diane Bruce, VA3DB e9aa6fe546 - Extra comma on RIG_STATUS_BUGGY can cause a compiler error.
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2540 7ae35d74-ebe9-4afe-98af-79ac388436b8
2009-01-01 17:07:09 +00:00
Terry Embry, KJ4EED 9746bdd342 Added RIG_LEVEL_BKIN_DLYMS - CW Breakin delay in milliseconds to rig_level_e enum
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2530 7ae35d74-ebe9-4afe-98af-79ac388436b8
2008-12-26 23:57:15 +00:00
Terry Embry, KJ4EED 6e47295527 Added RIG_METER_VDD
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2522 7ae35d74-ebe9-4afe-98af-79ac388436b8
2008-12-24 20:12:11 +00:00
Stéphane Fillod, F8CFE c62b141599 RIG_ANT_5
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2504 7ae35d74-ebe9-4afe-98af-79ac388436b8
2008-12-14 19:26:35 +00:00
Terry Embry, KJ4EED 8f350baa93 Added RIG_AGC_AUTO enum
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2478 7ae35d74-ebe9-4afe-98af-79ac388436b8
2008-11-26 16:20:20 +00:00
Stéphane Fillod, F8CFE 883193fe12 added RIG_METER_PO
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2452 7ae35d74-ebe9-4afe-98af-79ac388436b8
2008-11-01 20:35:16 +00:00
Stéphane Fillod, F8CFE f541b221fe new netrigctl/netrotctl protocol with return value
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2428 7ae35d74-ebe9-4afe-98af-79ac388436b8
2008-10-27 22:23:36 +00:00
Thomas Beierlein, DL1JBE cdab2cce53 Dropped RIG_STATUS_NEW from enum of possible backend states in rig.h.
Mapped all RIG_STATUS_NEW requests from existing applications to RIG_STATUS_UNTESTED for backward compatibility.


git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2418 7ae35d74-ebe9-4afe-98af-79ac388436b8
2008-10-25 11:36:02 +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 6e4ed42cca allow rig_lookup_mem_caps() to retrieve a union of all the mem_caps sets
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2336 7ae35d74-ebe9-4afe-98af-79ac388436b8
2008-05-01 12:32:43 +00:00
Stéphane Fillod, F8CFE a0635dd7b2 * added RIG_MTYPE_PRIO
* added rig_lookup_mem_caps/rig_mem_count and rig_strmtype/rig_parse_mtype
* misc change to RIG_VFO* for Swig to make them available in the bindings


git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2329 7ae35d74-ebe9-4afe-98af-79ac388436b8
2008-04-27 09:46:35 +00:00