Wouter van Gulik
95a10624c1
src/misc.c: Constify some tables
2021-08-21 22:48:02 +02:00
Mike Black W9MDB
0a0873252e
Fix CodeQL warnings
2021-08-13 12:28:58 -05:00
Mike Black W9MDB
f8974c1e86
Implment FTDX101D/MP FTDX9000 METER_TEMP
...
https://github.com/Hamlib/Hamlib/issues/755
2021-08-02 23:55:24 -05:00
Mike Black W9MDB
4bfd71f91f
Fix Icom split and implement reverse split
...
These should work now from rigctl and via the API
S VFOB 1 VFOA
S Sub 1 Main
https://github.com/Hamlib/Hamlib/issues/754
2021-08-02 23:37:31 -05:00
Mike Black W9MDB
592ca86fc6
Allow Main/Sub to be returned from vfo_fixup
2021-08-01 12:11:46 -05:00
Mike Black W9MDB
cb892602b4
Do not change TX_VFO when VFO_B is passed to vfo_fixup and split is off
...
https://github.com/Hamlib/Hamlib/issues/741
2021-07-15 15:59:28 -05:00
Mike Black W9MDB
26dffeef4d
Fix misc.c vfo_fixup to not change VFOB when VFOB requested
...
https://github.com/Hamlib/Hamlib/issues/741
2021-07-15 15:50:22 -05:00
Mike Black W9MDB
a6d91eb8a8
Change vfo_fixup to default to VFO_A when not in split mode
...
Was staying on VFO_B when VFO_B was requested
https://github.com/Hamlib/Hamlib/issues/741
2021-07-15 15:32:32 -05:00
Mike Black W9MDB
b340d594f0
Re-enable rig_flush due to command stacking occurring on K3 (and probably others)
...
https://github.com/Hamlib/Hamlib/issues/728
2021-06-22 10:53:28 -05:00
Mikael Nousiainen
263c16984a
Attempt to handle asynchronously pushed Icom CI-V frames (transceive and spectrum data) as these frame will get interleaved with command responses
2021-05-30 01:36:49 +03:00
Mike Black W9MDB
903df5cb95
Fix RIG_FLUSH_REMOVE #ifdef -- duh....
...
https://github.com/Hamlib/Hamlib/pull/712
2021-05-27 09:01:48 -05:00
Mike Black W9MDB
3c50d53273
Merge branch 'master' of https://github.com/Hamlib/Hamlib
2021-05-27 07:55:59 -05:00
Mike Black W9MDB
7913de79e1
Allow testing removal of rig_flush()
...
https://github.com/Hamlib/Hamlib/pull/712
2021-05-27 07:35:46 -05:00
Mikael Nousiainen
12527581b0
Add SPECTRUM_ATT level (also supported by Kenwood rigs). Get VFO frequency for Icom spectrum edge ranges (if not cached). Fix preamp levels based on docs. Add supported AGC levels to recent Icom rigs.
2021-05-27 10:12:01 +03:00
Mikael Nousiainen
a7de662937
Merge branch 'master' into initial-spectrum-scope-support
2021-05-26 23:41:38 +03:00
Mikael Nousiainen
b4ba22d369
Implemented initial abstraction for spectrum scope data and support for Icom spectrum data output. The abstraction is based on common features of both Icom and Kenwood rigs. Added TRANSCEIVE func and enumeration of supported AGC levels. Work in progress.
2021-05-26 23:40:53 +03:00
Mike Black W9MDB
bcfd59f3af
Move date_strget to misc.c
2021-05-21 12:33:42 -05:00
Mike Black W9MDB
1cfa4c205c
Remove SQLSTAT deprecated level
2021-04-24 09:17:53 -05:00
Mike Black W9MDB
b74bf05541
astyle misc.c and add CRC function for future use
2021-04-17 22:47:14 -05:00
Mike Black W9MDB
0f692f514d
FIx vfo_fixup to keep map VFOB request to Sub when appropriate
...
https://github.com/Hamlib/Hamlib/issues/665
2021-04-16 23:18:13 -05:00
Mike Black W9MDB
a1f5d4f5e3
Fix sprint_freq to show appropriate # of decimal places to get to 0.1Hz on all scales
2021-04-15 12:24:29 -05:00
Mike Black W9MDB
cec6216388
Fix vfo_fixup
...
https://github.com/Hamlib/Hamlib/issues/663
2021-04-14 16:56:38 -05:00
Mike Black W9MDB
fa582b17c1
Update vfo_fixup to change VFO_A to Main and VFO_B to Sub as appropriate
...
https://github.com/Hamlib/Hamlib/issues/654
2021-04-13 08:19:48 -05:00
Bill Somerville
9d38e9a726
Add missing shared library API exports
2021-04-11 20:56:38 +01:00
Michael Black W9MDB
3b84802846
Fix MainB in misc.c
2021-03-22 15:35:12 -05:00
Michael Black W9MDB
1ba72fa725
Improve caching
...
https://github.com/Hamlib/Hamlib/issues/280
https://github.com/Hamlib/Hamlib/issues/606
2021-03-15 11:16:11 -05:00
Michael Black W9MDB
8e20613771
Fix mingw bogus compiler warning
2021-03-11 13:14:42 -06:00
Michael Black W9MDB
2f40735ed7
Merge branch 'master' of https://github.com/Hamlib/Hamlib
2021-03-11 13:12:47 -06:00
Michael Black W9MDB
0f82f0d1a8
Fix for mingw compiler bogus warning message
2021-03-11 13:12:17 -06:00
Michael Black W9MDB
3f83cb6b6d
Reduce debug in misc.c cache info
2021-03-11 08:44:29 -06:00
Michael Black W9MDB
82126a4f09
Phase 1 of changing sprintflst functions to use buffer length
...
https://github.com/Hamlib/Hamlib/issues/580
2021-03-03 08:03:18 -06:00
Michael Black W9MDB
7326f16291
Fix misc.c compile warning
2021-02-28 09:47:37 -06:00
Michael Black W9MDB
abd8829df1
Revert rig_get_caps_int -- did not need this change and don't want to break
...
shared library compatiblity
2021-02-28 08:59:57 -06:00
Michael Black W9MDB
8ccc9f0737
Fix rig_caps_get_int to use long long instead of enum
...
enum was coming out as 32-bit instead of 64-bit
https://github.com/Hamlib/Hamlib/issues/562
2021-02-26 15:00:15 -06:00
Michael Black W9MDB
dc5e1bf6ed
Fix rig_get_caps_int to return long long for cross platform compatibility
...
https://github.com/Hamlib/Hamlib/issues/562
2021-02-25 11:55:57 -06:00
Michael Black W9MDB
418e963c86
Add \get_vfo_info to rigctl and rigctld to allow geting freq/mode/width by vfo in one call
...
Overcomes limitation of f command where vfo swapping is needed if not in --vfo mode
rig_get_vfo_info function added
Log4OM should be able to get VFOB frequency on most rigs
https://github.com/Hamlib/Hamlib/issues/530
2021-02-07 12:45:59 -06:00
Michael Black W9MDB
8e313ecc3d
Add RIG_CAPS_HAS_GET_LEVEL
2021-02-07 06:56:48 -06:00
Michael Black W9MDB
f2b7893a2b
Another attempt to get clock_gettime compiling for all Mac flavors
2021-01-27 11:00:58 -06:00
Michael Black W9MDB
30eca94210
Change MacOS detection logic for clock_gettime to hopefully cover all flavors
2021-01-26 15:05:43 -06:00
Michael Black W9MDB
a81b4db9be
Fix clock_gettime for Big Sur and hopefully older MacOS too
2021-01-26 07:28:55 -06:00
Michael Black W9MDB
54fc0e10f6
Add clock change to misc.c to allow building hamlib on some mac platforms
2021-01-25 12:23:05 -06:00
Michael Black W9MDB
e7b6e61ed0
astyle files prepping for 4.1 release
2021-01-22 10:41:30 -06:00
Michael Black W9MDB
a8d841182b
Improve comments in misc.c
2021-01-17 08:22:07 -06:00
Michael Black W9MDB
70f27a0a03
Improve comment in misc.c
2021-01-17 08:09:06 -06:00
Michael Black W9MDB
c5c60f0f43
First phase of improving debug messages
2021-01-17 07:25:28 -06:00
Michael Black W9MDB
598b105e79
astyle files prepping for 4.1 release
2021-01-15 16:48:32 -06:00
Michael Black W9MDB
0ebdaee747
Change rig_init logic to allow first char of '/' to mean a pathname and not a hostname
...
https://github.com/Hamlib/Hamlib/issues/492
2021-01-11 14:43:08 -06:00
Michael Black W9MDB
4571dcb2a5
Fix rig_get_function_ptr return value
...
https://github.com/Hamlib/Hamlib/issues/502
2021-01-10 14:39:39 -06:00
Michael Black W9MDB
ca8ed30f8f
astyle files
2021-01-09 10:13:17 -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
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
325dc8497b
Rename RIG_FUNCTION in misc.c
...
https://github.com/Hamlib/Hamlib/issues/484
2020-12-31 23:39:05 -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
41f5e8d24a
Add RIG_MODE_SPEC to misc.c
2020-12-27 15:33:21 -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
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
Mikael Nousiainen
7cbe39d5ab
Add routines to convert between morse code dot duration and milliseconds. Implement Yaesu break-in delay level correctly using these conversion routines.
2020-11-07 15:03:54 +02:00
Mikael Nousiainen
68aaa426bb
Fix modes for FTDX101
2020-10-23 09:32:37 +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
fade1681fa
Fix cppcheck errors and warnings
2020-09-02 16:56:11 -05:00
Michael Black W9MDB
5e801fd2b5
astyle files
2020-07-07 11:39:26 -05:00
Michael Black W9MDB
5007765d10
Make the escaped com port really work
...
https://github.com/Hamlib/Hamlib/issues/337
2020-07-04 12:43:46 -05:00
Michael Black W9MDB
65eab6c430
Allow for escaped COM ports like \\.\COM3
...
https://github.com/Hamlib/Hamlib/issues/337
2020-07-04 12:37:26 -05:00
Michael Black W9MDB
2e0c5f5687
Fix cppcheck warnings
2020-07-03 16:20:23 -05:00
Michael Black W9MDB
0c2b39c2e0
small change to debug statement
2020-07-03 08:38:33 -05:00
Michael Black W9MDB
4bd024c238
Fix come valgrind errors
2020-07-03 08:05:13 -05:00
Michael Black W9MDB
d42d837162
Normalize cache namespaces to hamlib_ and HAMLIB_
2020-07-01 22:33:32 -05:00
Michael Black W9MDB
923700ea2f
Add logic for port only call like rigctl -m 2 -r :4532
...
https://github.com/Hamlib/Hamlib/issues/331
2020-06-28 12:17:24 -05:00
Michael Black W9MDB
b6a960d48e
All conversions to rig_flush now done
...
https://github.com/Hamlib/Hamlib/issues/307
2020-06-23 09:01:46 -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
fd1e72f009
Fix com port device opening
...
https://github.com/Hamlib/Hamlib/issues/298
2020-06-22 07:48:09 -05:00
Michael Black W9MDB
f7f9653b97
Fix rig_open with device names
2020-06-22 07:10:43 -05:00
Michael Black W9MDB
bc77820fe2
Add parsing for full 8 byte IPV6 address
...
https://github.com/Hamlib/Hamlib/issues/298
2020-06-21 23:16:05 -05:00
Michael Black W9MDB
a3c4eb9ee0
Fix cppcheck warnings
2020-06-21 22:31:31 -05:00
Michael Black W9MDB
e092a4a0a4
rigctld -T ::1 now works with rigctl -r ::1
...
More IPV6 testing needed on Windows and MacOS
Still not binding to link local addresses to be addressed next
https://github.com/Hamlib/Hamlib/issues/29
2020-06-21 17:47:04 -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
9898ea9522
Fix ms timer reference in debug in misc.c
2020-05-27 23:38:29 -05:00
Michael Black W9MDB
8e2eba0a6d
Fix elapsed_ms INVALIDATE
2020-05-16 21:32:34 +02:00
mdblack98
bf1a05084d
astyle files
2020-05-03 17:24:42 -05:00
mdblack98
d75272ddac
Fix caching math and clean up cachetest.c
...
https://github.com/Hamlib/Hamlib/issues/228
2020-05-02 23:10:55 -05:00
mdblack98
b244fe234c
Fix caching math...helps when you get the units right...nanoseconds...not microseconds
...
https://github.com/Hamlib/Hamlib/issues/228
2020-05-02 17:32:37 -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
54fd75ffe8
Reduce verbosity on rig_strvfo
2020-05-02 07:57:16 -05:00
mdblack98
d5d6c55439
Fix JTDSK compilation warnings
...
https://github.com/Hamlib/Hamlib/issues/233
2020-05-01 14:33:35 -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
eb7829bd06
Add caching for the Yaesu IF command
...
It should speed up the WSJT-X/JTDX sequence of v,f,m,t by a fair bit removing two unnecessary IF commands that should get cached
2020-04-26 15:44:38 -05:00
Michael Black
f1f0d7f129
Fix some of the documentation
2020-04-09 17:56:19 -05:00
Michael Black
b04d49eca5
reduce some debub verbosity
2020-04-03 15:22:07 -05:00
Michael Black
9ad4f2638a
Remove some verbosity from rig_strscan
2020-03-31 16:10:43 -05:00
Michael Black
b83ecd9a5c
Reduce verbosity for rig_strvfop
2020-03-31 15:40:54 -05:00
Michael Black
8fd5e16363
astyle files
2020-03-26 11:11:46 -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
48a584cca4
Fix vfo_str[] to terminate correctly
2020-03-25 16:33:33 -05:00
Michael Black
ab77eea8b6
Fix cppcheck warnings in misc.c
2020-03-24 09:59:18 -05:00
Michael Black
8eb09c2a38
More cppcheck fixes
2020-03-23 07:52:01 -05:00