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
Mike Black W9MDB
354606f46d
Comment out __TIMESIZE check as mingw64 thinks it is not 64 bits -- so we may not need this
...
https://github.com/Hamlib/Hamlib/issues/1478
2024-01-21 23:31:11 -06:00
Mike Black W9MDB
046f3b849c
Fix mingw build
...
https://github.com/Hamlib/Hamlib/issues/1478
2024-01-21 23:28:41 -06: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
67aee82133
Add compile-time warning if __TIMESIZE != 64
...
https://github.com/Hamlib/Hamlib/issues/1478
2024-01-21 22:39:57 -06:00
Mikael Nousiainen
4b3a7514ca
Merge upstream and fix conflicts
2024-01-20 13:08:29 +02:00
Mike Black W9MDB
48d3f3f750
Add RIG_FUNC_SYNC -- only for FTDX101D/MP right now.
2024-01-18 07:56:30 -06:00
Mike Black W9MDB
aec9348138
Add rig_band_changes to HAMLIB API
2024-01-18 07:39:56 -06:00
Mikael Nousiainen
eb7634abfb
Merge upstream changes and fix conflicts
2024-01-15 09:24:17 +02:00
George Baltz N3GB
7f67363687
Need more parens to work in expressions.
...
Clean up sticky note items.
2024-01-14 18:13:05 -05:00
George Baltz N3GB
2c85a96309
Add function to get rotator port address(es)
...
Add ROTPORT2 definitions.
Convert src/rotator.c to use new access.
2024-01-14 18:13:05 -05:00
George Baltz N3GB
cd1f4d3929
Implement function to get structure address
...
Add AMPPORT and ROTPORT macros
2024-01-14 18:13:05 -05:00
George Baltz N3GB
e178a984ca
Add cache to the MACRO/porting list
...
Update comments
And port my favorite PoC target, rigs/kenwood/kenwood.c
2024-01-14 18:13:05 -05:00
Mike Black W9MDB
34f953ba0b
Change debug statements to use spaces() function
2024-01-13 08:27:37 -06:00
Michael Black
2646f0fd3a
Merge pull request #1455 from GeoBaltz/rp
...
Basic definitions and first steps for making port tables addressed by pointers
2024-01-13 08:09:34 -06:00
Mikael Nousiainen
051e671bfa
Merge upstream changes and fix conflicts. Use snprintf() in most sprintflst.c functions to avoid buffer overflows.
2024-01-04 10:43:15 +02:00
Michael Black
74062c6aba
Merge branch 'master' into master
2023-12-21 07:53:27 -06:00
davidg
3061d5e208
Add number of CW and Voice memories to supporting Icom, Yaesu, Kenwood and Elecraft Radios. Added added .chanlist to TS890S
2023-12-20 21:26:57 +00:00
George Baltz N3GB
8dff750285
Define different (disambiguated) names for external use.
2023-12-20 14:49:35 -05:00
George Baltz N3GB
9c7a21282c
Add basic support for transparent access to port structures.
...
Define macros for internal access to port data.
Port rigs/kenwood/kenwood.c to use new access as PoC
Part 1 of issue #1445
2023-12-19 18:58:37 -05:00
Mikael Nousiainen
1cc08d2f00
Merge upstream and fix conflicts
2023-12-19 18:03:12 +02:00
Mike Black W9MDB
af5ea58350
Add -# --skip_init option to rigctl
2023-12-18 15:26:46 -06:00
Mike Black W9MDB
98edf92240
Update rig.h documentation a bit
2023-12-18 07:53:55 -06:00
George Baltz N3GB
f4d40e0d79
Restore shared library ABI compatibility with previous hamlibs
...
No need for post_ptt_delay to be in hamlib_port - move it to misc
rig_state data.
Update references to post_ptt_delay
Fix a couple of typos
Add code to actually set post_ptt_delay
Fixes issue #1412
2023-12-04 10:47:52 -05:00
Mike Black W9MDB
ed94193935
Add #define RIGCAPS_NOT_CONST
...
Allows clients to test for which declarations to use
https://github.com/Hamlib/Hamlib/issues/1436
2023-11-29 11:10:43 -06:00
Mike Black W9MDB
9841e500b9
Fix ptt_share segmentation fault
...
https://github.com/Hamlib/Hamlib/issues/1433
Fix ID5100 0x25 and simplex VFO actions
https://github.com/Hamlib/Hamlib/issues/1429
2023-11-23 15:00:05 -06:00
davidg
d0fd27afd6
added RIG_MTYPE_VOICE and RIG_MTYPE_MORSE to chan_type_t and IC 7300, 9700 and 703 radios.
2023-11-22 17:46:21 +00:00
Mikael Nousiainen
7b341a2ad6
Merge branch 'master' into streamline-vfo-targeting-and-split-functionality
2023-11-20 10:16:15 +02:00
Mike Black W9MDB
7d9ef323d7
Add some needed enums
2023-11-16 14:40:54 -06:00
Mike Black W9MDB
c1780b19f4
Add wireless detection for multicast address -- possible fix for UDP error messages by using 127.0.0.1 instead of IN_ADDR_ANY
...
https://github.com/Hamlib/Hamlib/issues/1409
2023-11-16 09:05:29 -06:00
Mikael Nousiainen
82f2b10275
Merge branch 'hamlib-multicast-4' into streamline-vfo-targeting-and-split-functionality
2023-11-09 09:59:48 +02:00
Mikael Nousiainen
c90c675add
Unify and streamline Icom backend logic for freq/mode and split commands. Allow use of targeted freq/mode whenever possible. Move certain Icom-specific caps to the icom_priv_caps struct to remove rig-specific conditions in generic backend code.
2023-11-09 09:57:23 +02:00
Mike Black W9MDB
f1a9823bdd
Move swr from rig_cache to priv value until we get rig_cache fixed to be expandable
...
https://github.com/Hamlib/Hamlib/issues/1419
2023-11-08 08:05:56 -06:00