Wykres commitów

646 Commity (f3e9a859ed22c7e5362eccb4fe93ef971ea15a02)

Autor SHA1 Wiadomość Data
George Baltz N3GB f3e9a859ed Move ???PORT() macro definitions back to rig.h
Many (most?) of the uses of the port structures in Hamlib are to pass through
  to the basic I/O routines (rig_flush(), write_block(), read_string()),
  without referencing any of the structure data.  Don't bother including
  port.h if it won't be used.

The ???PORT macros are independent of actual hamlib_port_t data use.
2025-07-10 09:54:03 -04:00
George Baltz N3GB 9991f46e58 Move rotator state definition to include/hamlib/rot_state.h 2025-07-10 09:54:03 -04:00
George Baltz N3GB cc4b1ce7db Move amp_state definition to include/hamlib/amp_state.h 2025-07-10 09:54:03 -04:00
George Baltz N3GB f03fefe1cd Move rig_state definition(s) from rig.h to include/hamlib/rig_state.h
Compiling with NO_OLD_INCLUDES still won't work until the state
  structure(s) are moved out of rig_struct, but at least I get the
  right compiler errors.
2025-07-10 09:54:03 -04:00
George Baltz N3GB 1efaacb5ab Move port definition(s) to include/hamlib/port.h
Add some ghost structs and typedefs
Make example.c compile on gcc15 and with new includes
2025-07-10 09:54:03 -04:00
Daniele Forsi IU5HKX 407d3f669b Revert "Fix debug messages shown even from disabled levels"
This reverts commit ae9556462a.
2025-07-06 14:58:41 +02:00
George Baltz N3GB 55b0599b75 Stop the blithering 2025-06-25 10:41:55 -04:00
Nate Bargmann 7b60cb586d
Merge GitHub PR #1751 2025-06-07 07:56:07 -05:00
Daniele Forsi IU5HKX 72bde6e131 Fix sign of error return values
All RIG_E* constants should be negated when returned or compared.
Change the usages of RIG_IS_SOFT_ERRCODE() for consistency.
2025-06-07 10:54:34 +02:00
Daniele Forsi IU5HKX ae9556462a Fix debug messages shown even from disabled levels
Messages from ENTERFUNC and RETURNFUNC where stored in an internal buffer
even whe debug_level wasn't TRACE and were returned when calling rigerror().
2025-06-07 09:14:32 +02:00
George Baltz N3GB 1532432236 Move more rig_cache infrastructure to cache.[ch]
Macros from rig.h, routines from misc.c
Add some error checks and comments
2025-06-03 12:07:27 -04:00
George Baltz N3GB 1fca93a5a2 Deprecate rig_cache definition in rig.h
Add new rig_cache definition in cache.h
2025-06-03 12:07:27 -04:00
George Baltz N3GB 6f8bf81514 Allocate separate storage for cache buffer
Add address to rig_struct, change CACHE() macro to use it.
Free it when done.
Issue #1420
2025-06-03 12:07:27 -04:00
George Baltz N3GB cccee9b791 Still more cppcheck complaints dealt with. 2025-05-29 05:41:39 -04:00
Daniele Forsi IU5HKX dcf4b7a4e0 Fix syntax of #define
It was invalid C syntax, but it is currently unused.
2025-05-08 23:11:29 +02:00
Daniele Forsi IU5HKX dda30532b5 Add cross references hash mark for Doxygen 2025-04-30 19:36:20 +02:00
Daniele Forsi IU5HKX bd5ed18bdd Add documentation for RIG_CONF_END
Fixes:
warning: explicit link request to 'RIG_CONF_END' could not be resolved
2025-04-30 19:36:20 +02:00
Daniele Forsi IU5HKX 56b075ab45 Fix Doxygen comment
It is about the tpyedef, not the defines.
2025-04-30 19:36:07 +02:00
Daniele Forsi IU5HKX 8feb174711 Fix typos 2025-04-30 19:34:47 +02:00
Daniele Forsi IU5HKX 535fb6e2bd Fix typos 2025-04-26 20:50:14 +02:00
Daniele Forsi IU5HKX cd092fc654 Fix list of parameters for get_func/set_func
Fixes: OVF_STATUS was spelled wrong, SYNC was missing, SLICE is
not available. Uses the list returned by \get_func ? sorted
alphabetically to be more user friendly and to easily spot any
missing item in future.
2025-04-21 20:25:09 +02:00
George Baltz N3GB 0147da5a3c Replace rs->multicast->mutex with a dedicated mutex for the API.
Use PTHREAD_MUTEX_RECURSIVE and change LOCK() to always call rig_lock().
Still needs a reliable way to determine availability.
2025-02-28 05:29:44 -05:00
Michael Black W9MDB bedbfff8c4 Remove unnecessary include 2025-01-18 15:55:54 -06:00
Michael Black W9MDB 24d67437b7 Remove include of sys/socket.h from rig.h -- doesn't seem we need it and breaks grig build
https://github.com/Hamlib/Hamlib/issues/1655
2025-01-12 12:43:39 -06:00
Michael Black W9MDB b3ef41354d Remove RIGCAPS_NOT_CONST
Hopefully this doesn't break any other builds
2025-01-03 07:37:10 -06:00
Michael Black W9MDB f2a9f091d0 Change rig_list_foreach back to using const argument -- was breaking many C++ application builds
https://github.com/Hamlib/Hamlib/issues/1647
2024-12-29 08:42:24 -06:00
Michael Black W9MDB 028e8f38cd Improve error message when windows serial port is already in use 2024-12-28 15:59:43 -06:00
Michael Black W9MDB eb7a828f5e Add stdarg.c as va_list requires
https://github.com/Hamlib/Hamlib/issues/1644
2024-12-26 07:57:46 -06:00
Daniele Forsi IU5HKX 6036a65d2e Fix typos in comments 2024-11-24 19:24:35 +01:00
Mike Black W9MDB f9d60d6b25 Remove duplicate parm 2024-10-22 10:30:30 -05:00
Mike Black W9MDB 87531d273d Fix KEYERTYPE 2024-10-21 22:31:42 -05:00
Mike Black W9MDB f33aa9a712 Fix IC707 tuning steps and memory items
Add MEM_SPLIT
2024-10-01 22:31:16 -05:00
Mike Black W9MDB 31b625df2b Fix winsock2 warning 2024-09-18 08:01:17 -05:00
Mike Black W9MDB 2b3000c21d Suppress warnings when include winsock2 that windows.h must be included first 2024-09-12 17:52:46 -05:00
George Baltz N3GB 67c62e9b2a Make SNPRINTF do something useful for Hamlib
Current SNPRINTF only triggers if there is a message too long in
Hamlib AND there's a corresponding error in snprintf - not too likely.
Make SNPRINTF diagnose any Hamlib errors, and eliminate a useless strlen().

FWIW, this shrinks libhamlib.so by about 45kB.
2024-09-01 04:22:44 -04:00
Mike Black W9MDB d4480045f3 Improve Flex error message
Add rig_debug_clear -- can make for shorter/better messages in WSJT-X and such
Add conf item "client" so WSJTX and GPREDICT can tell us who they are and we can do special things for them.  Other clients TBD.
2024-07-02 11:58:28 -05:00
George Baltz N3GB 86a7a0636c Definitions, storage and infrastructure for queuing config commands 2024-06-14 16:23:36 -04:00
George Baltz N3GB ce25f63843 Convert macros in rig.h to use STATE()
Note that the other pointer macros are NOT converted - they should be changed
one-by-one as any are moved.
2024-06-01 16:59:17 -04:00
Mike Black W9MDB c730e445a1 Add new error ELIMIT for things like rot_move that exceed set limits 2024-05-28 22:35:46 -05:00
George Baltz N3GB f53dc99057 Normalize some debug/trace output.
Make spaces(len) actually return a string of length 'len', not len + 1.
Eliminate static writable memory and a 256 byte write on each debug/trace
 call.
Make the depth stars line up.
2024-05-27 20:31:46 -04:00
Michael Black efbe365701
Revert "Refactoring GPIO push-to-talk logic to use libgpiod rather than the d…" 2024-05-12 14:37:23 -05:00
Addison Schuhardt cf91e96333 Refactoring GPIO push-to-talk logic to use libgpiod rather than the deprecated/broken sysfs method.
TODO: I'm not familiar with autoconf to set up linking to libgpiod correctly, so I'd like to ask someone else to do that.
Fixes #1538
2024-04-11 00:17:15 -07:00
Mike Black W9MDB 63fa818fd7 Add PARM_AFIF_LAN and PARM_AFIF_ACC for IC-9700
Add PARM_WLAN for IC-705
Fix parm selection/printout for the AFIF labels
2024-04-04 08:21:23 -05:00
George Baltz N3GB 295ad74757 Add macros for amplifier and rotator state pointers. 2024-03-26 02:08:33 -04:00
Mike Black W9MDB 5ab1122139 Add freq_skip for use with rigs that do not have targetable VFO
Hopefully this allows them to work with gpredict.
However...setting frequency on TX/RX transition could take up to 1 second depending on gpredict polling rate.
https://github.com/Hamlib/Hamlib/issues/1493
2024-03-08 17:09:47 -06:00
Mike Black W9MDB dc38d19449 Slow freq events to 4 per second 2024-03-03 12:23:33 -06:00
George Baltz N3GB 55db73894f Add STATE to the list of pointers
Definitely a long term item.
2024-03-01 12:27:26 -05:00
Mike Black W9MDB 1b2f6a84f7 Add USB-D1/D2/D3 LSB-D1/D2/D3 to new modes and Flrig
https://github.com/Hamlib/Hamlib/issues/1502
2024-02-23 12:27:55 -06:00
Mike Black W9MDB 0adaebd100 Update comment in rig.h 2024-02-03 12:44:48 -06:00
Mike Black W9MDB a52d0c5931 map token_t to hamlib_token_t for API backwards compatility
https://github.com/Hamlib/Hamlib/issues/1469
2024-01-22 11:48:06 -06:00