Wykres commitów

99 Commity (e2214fd2f18f326c0325f2e7abb7c892d13885aa)

Autor SHA1 Wiadomość Data
Daniele Forsi IU5HKX e2214fd2f1 Change .ptt_type to RIG_PTT_RIG for RIG_MODEL_DUMMY
With the old value of RIG_PTT_NONE, dummy_get_ptt() and dummy_set_ptt()
were never called because rig_get_ptt() and rig_set_ptt() do check
.ptt_type and return -RIG_ENAVAIL in that case.

Do not change .ptt_type for RIG_MODEL_DUMMY_NOVFO so that both cases
can be tested if needed.
2025-08-09 15:57:45 +02:00
Daniele Forsi IU5HKX 3bc1cc8744 Implement remaining event callbacks
Implements:
rig_set_dcd_callback(), rig_set_freq_callback(), rig_set_mode_callback(),
rig_pltune_callback(), rig_set_ptt_callback(), rig_set_spectrum_callback(),
rig_set_vfo_callback()
2025-08-09 10:33:51 +02:00
Daniele Forsi IU5HKX 8324c85487 Implement the Python callback for freq_event
Fixes #481.
2025-08-09 10:33:17 +02:00
Daniele Forsi IU5HKX 8d8d0328bf Fix typos 2025-08-03 10:49:23 +02:00
Daniele Forsi IU5HKX bc25855f48 Check split argument in dummy_get_split_mode() and fix the test 2025-07-26 19:59:36 +02:00
Daniele Forsi IU5HKX df6ddedf63 Use a define instead of a magic number 2025-07-25 23:52:02 +02:00
Daniele Forsi IU5HKX f0efc558f6 Make Dummy Rig handle also RIG_ANT_5 2025-07-25 23:47:35 +02:00
George Baltz N3GB 47dae3879d Fix compiler errors with strict C23 standards
Fix missing/misplaced '#include "config.h"' statements. Fixes missing
  function prototypes, unknown type definitions, etc. Allows configuration
  of GCC with CFLAGS="-std=c23" instead of using default -std=gnu23.

Don't know about CLANG, MSVC, MinGW, etc, but using
gwb@stitch:~> gcc --version
gcc (SUSE Linux) 15.1.1 20250714
Copyright (C) 2025 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Hamlib can compile in strict C23 mode, or previous standard levels.
2025-07-22 11:07:33 -04:00
George Baltz N3GB 8469ee1737 Fix incorrect fallthroughs
Found with -Wimplicit-fallthrough, but also many false positives
2025-07-21 23:07:56 -04:00
Mark J. Fine 096b6f0f4b Adds 'dummy' rig that talks to GQRX 2025-07-19 06:32:05 -04:00
George Baltz N3GB 07d0d91a44 Yet more cppcheck messages silenced. 2025-06-15 13:52:09 -04:00
George Baltz N3GB 7d28822273 Add '#include "cache.h"' to all files that reference cache structure.
Issue #1420
2025-06-03 12:07:27 -04:00
George Baltz N3GB b74bd31b40 Quiet a few more cppcheck gripes.
Making these functions static also reduces the possibilities of
 collisions with app names and may shorten load time.
And I can finally make meter_type1 and meter_type2 const, like I
 tried to do in the beginning.
2025-05-29 05:41:39 -04:00
Daniele Forsi IU5HKX 6adfce0305 Fix typos in messages 2024-11-24 19:24:35 +01:00
Mike Black W9MDB 5c269964c2 astyle files in preparation for release 4.6 2024-11-06 08:07:34 -06:00
Mike Black W9MDB fc27cc32ce Fix VFOC error in dummy.c 2024-07-09 09:43:05 -05:00
George Baltz N3GB 0790f4d72e Fix ENTERFUNC/RETURNFUNC imbalances found by repaired func_chk 2024-06-26 16:44:04 -04:00
George Baltz N3GB a63e518393 More state pointer changes
Also fix cache pointer regressions
Mostly done via `sed -i`
2024-06-01 16:59:17 -04:00
Mike Black W9MDB be0f7407f2 Fix RFMETER_POWER_WATTS in dummy.c 2024-05-29 06:12:00 -05:00
Mike Black W9MDB d9b57bc7a8 Align dummy rigs 2024-04-19 16:41:37 -05:00
George Baltz N3GB 609065775c Update some of rigs/* to use pointer to cache
Issue #536
2024-03-08 21:00:19 -05:00
George Baltz N3GB 1e552b557f Convert rigs/dummy/ 2024-02-05 11:28:31 -05: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
Mikael Nousiainen 2358cba6a4 Fix issues with Dummy rig VFOs. Fix Yaesu ST split command. 2024-01-04 10:13:43 +02:00
Mikael Nousiainen 1cc08d2f00 Merge upstream and fix conflicts 2023-12-19 18:03:12 +02:00
Mikael Nousiainen 93b61d2c5e Fix dummy rig bugs. Improve FTDX101/FTDX10 ST split command logic. 2023-12-19 00:08:35 +02:00
Mike Black W9MDB e267c62764 astyle files 2023-12-16 11:37:58 -06:00
Mikael Nousiainen 7d5f540b9c Fix bugs in dummy rig. Report errors (incl. timeouts) from icom_get_powerstat(), because the timeout reason is often something else than rig being powered off. Check for power status changes in rigctld/rigctl command loops. 2023-11-20 10:15:45 +02:00
Mikael Nousiainen 8ab8aafe48 Streamline VFO targeting and split functionality. Rewrite Icom backend routines to always avoid VFO swapping is the rig supports the 'targetable' commands 0x25 and 0x26. Work in progress. 2023-10-29 10:28:36 +02:00
Mike Black W9MDB 3b5f7a6dcf Add and fix some cppcheck suppress items
https://github.com/Hamlib/Hamlib/issues/1351
2023-10-03 17:11:09 -05:00
Mike Black W9MDB d7d450df49 Add parm BANDSELECT for Yaesu rigs
'p BANDSELECT' returns current band of VFOA
'P BANDSELECT BAND160M' example selects the 160M band
'P BANDSELECT ?' shows  bands available for the rig
Kenwood rigs will be next
Icom rigs TBD when Icom explains the return from 0x1a 0x01 -- no bandselect possible so manual setting of rig values
https://github.com/Hamlib/Hamlib/issues/1353
2023-08-11 10:40:42 -05:00
Mike Black W9MDB a9b3d62f41 Fix cppcheck warning 2023-08-02 22:58:22 -05:00
Mike Black W9MDB 6a4e31f890 Fix cppcheck warnings 2023-08-02 17:19:51 -05:00
Mike Black W9MDB 04c65d9d7e Add Quisk as a rig 2023-07-09 23:06:05 -05:00
Mike Black W9MDB d9b936618c Remove VFO_TX from dummy 2023-06-11 23:34:15 -05:00
Mikael Nousiainen 92215dfd2a Fix bugs in \send_raw command and add possibility to specify any command terminator character. Add \stop_morse to Dummy rig. 2023-05-12 10:01:32 +03:00
Mikael Nousiainen 4b8de5f96d Change float level granularity formatting to use %f to avoid E notation. Fix AGC_TIME level range for Icom rigs. Fix listing of AGC levels in \dump_caps. Add \stop_morse and \wait_morse in \dump_caps. Add simulation of responses in \send_cmd_rx and \send_raw for dummy rig (and if rig port type is NONE). Fix other minor issues. 2023-05-10 20:53:18 +03:00
Daniele Forsi IU5HKX 52be0797d8 [rigs/*] Fix includes 2023-02-16 19:08:24 +01:00
Daniele Forsi IU5HKX d09c048161 [rigs/*] Remove unused include of config.h 2023-02-14 19:57:48 +01:00
Mike Black W9MDB 41a8a50e65 Add SDR# rig for use with SDR#'s gpredict pluigin -- can only get/set freq 2023-01-27 17:31:24 -06:00
Mike Black W9MDB 50a14bb08f Add ACLog rig -- should work with WSJT_X and Fake It mode -- mode setting is a bit odd though might need None for mode in WSJT-X and manually set rig 2023-01-20 12:47:52 -06:00
Mike Black W9MDB 72e86bf18b Fix logic in dummy.c 2022-11-28 11:27:40 -06:00
Mike Black W9MDB 6c5e0e6974 Update astyle formatting 2022-11-16 15:30:36 -06:00
Mike Black W9MDB 454f640237 Fix dummy_set_split_freq 2022-11-06 15:58:30 -06:00
Mike Black W9MDB a83eb3bf42 astyle files for 4.5 release 2022-07-27 17:16:17 -05:00
Mike Black W9MDB 027b3ee0a5 Fix valgrind warning uninitialized value in dummy.c for priv->split 2022-07-27 10:03:20 -05:00
Mike Black W9MDB 0c89bcd89f Fix possible uninitialized access in dummy.c 2022-07-27 07:24:19 -05:00
Daniele Forsi IU5HKX 34018600ee Remove unused includes of math.h 2022-07-23 18:39:55 +02:00
Mike Black W9MDB d0c615ae43 Added EPOWER error return when rig is powered off
Only set_powerstat will be accepted and rig will be polled for powerstat
https://github.com/Hamlib/Hamlib/issues/1085
2022-07-15 15:41:23 -05:00
Mike Black W9MDB 6f9d057162 astyle files getting ready for release 2022-05-13 16:50:13 -05:00