Wykres commitów

45 Commity (68e121d82c8000d60075c51a9e1f115772ad0620)

Autor SHA1 Wiadomość Data
Mike Black W9MDB 68e121d82c Change all to remove HAVE_CONFIG dependency and include <hamlib/config.h> by default
This is necessary to keep alignment between the client view of rig->state and the shared libarary view
Including PTHREAD functions in rig->state necessitated this as HAVE_PTHREAD only defined during hamlib compilation.
Clients including hamlib/rig.h did not pick up all the HAVE* config variable that control what gets included
https://github.com/Hamlib/Hamlib/issues/947
2022-02-04 07:41:36 -06:00
Mike Black W9MDB 7b4b7ee630 Add a depth count to debug statements to help understand calling sequences
First call into rig functions is level 1
Top level like rigctl, rigctld is level 0
Non-depth calls are internal debug statements -- which can be modified to also show levels but that's a whole lot of statements not really necessary
Normal calls from other clients will be level 1
2022-01-30 23:37:01 -06:00
Mike Black W9MDB 9646895258 Disable tci rig as it is not functional at all yet
https://github.com/Hamlib/Hamlib/issues/736
2022-01-26 08:25:46 -06:00
Mike Black W9MDB a277d7ab9b Changes changing hamlib_port_t to pointer are not backwards compatible 2022-01-25 17:41:26 -06:00
Mike Black W9MDB 9e86e62238 Enable async I/O by default
Change hamlib_port_t to a pointer in rig.state
Deprecate static hamlib_port_t structure
New hamlib_port_t structure at end of rig.state
Clients built with older hamlib will use old structure in DLL
Clients built with newer hamlib will use new structure in DLL
So we maintain backwards compatibility until Hamlib 5.0
https://github.com/Hamlib/Hamlib/issues/894
2022-01-25 07:59:47 -06:00
Mike Black W9MDB 8829a8011d Change sprintf to snprint in dummy directory
https://github.com/Hamlib/Hamlib/issues/857
2022-01-11 12:17:34 -06:00
Mike Black W9MDB 01b7f81119 Add a data tag to the caps structure and a test in rig_init to ensure the data tag is where it is expected
Modify testrigcaps.c to test new data tag
This should detect any changes which corrupt rig_caps from additons/subtractions/changes to the structure
2021-12-31 23:49:29 -06:00
Dawid SQ6EMM dfa6b730d9 Allow \send_voice_mem to be used over network and tested in dummy rig 2021-12-20 16:50:13 +01:00
Mike Black W9MDB 465d14ff30 Change dummy ptt_type to None
https://github.com/Hamlib/Hamlib/issues/888
2021-12-13 09:07:40 -06:00
Mike Black W9MDB a1c8493c62 First cut at clock setting for IC7300/7800/785x/9700
https://github.com/Hamlib/Hamlib/issues/851
2021-12-01 11:50:33 -06:00
Mike Black W9MDB 8a443a8667 First draft of TCI backend
https://github.com/Hamlib/Hamlib/issues/736
2021-11-25 15:47:45 -06:00
Mike Black W9MDB 283281c4cb astyle all files preparing for 4.3 release 2021-08-26 06:49:24 -05:00
Wouter van Gulik 9aec383329 Simplify get_ant by having setting to unknown by default.
Drop setting to default in rigs.
Add some more documentation on get_ant.
2021-08-25 22:13:21 +02: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 21ade6493a Add MainA/B and SubA/B to dummy rig for testing
Add debug cache display for same when applicable
https://github.com/Hamlib/Hamlib/issues/730
2021-07-05 11:24:07 -05:00
Mike Black W9MDB 716fbb7643 Fix MAIN_B pointing to priv->vfo_mainb in dummy.c 2021-07-02 16:23:30 -05:00
Mike Black W9MDB 4e0107e988 Make 100Hz freq truncation work on 32-bit compilers in dummy.c 2021-07-01 07:22:02 -05:00
Mike Black W9MDB 76527afba5 Block 100Hz resolution logic from dummy.c 2021-06-30 13:01:45 -05:00
Mike Black W9MDB ed09f54483 Fix dummy rig current_vfo where non vfo mode VFOB was not working
https://github.com/Hamlib/Hamlib/issues/721
2021-06-13 22:51:55 -05:00
Mikael Nousiainen 840333266f Add spectrum scope caps for dummy rig. Fix duplicate definition for IC-785x. 2021-06-05 21:48:10 +03:00
Mike Black W9MDB 7f60e1fcb0 Fix dummy rig to recognize Main/Sub VFOS -- this fixes "M CW 500"
Fix rig.c set_mode to recognize curr_vfo correctly
https://github.com/Hamlib/Hamlib/issues/689
2021-05-04 14:35:34 -05:00
Mike Black W9MDB 0b203c7e8f Add transceive ability to dummy rig 2021-04-28 17:38:54 -05:00
Mike Black W9MDB b0e006ce6c astyle files 2021-04-21 23:48:29 -05:00
Mike Black W9MDB 7d79b59bd7 When vfo twiddling is being done set_freq calls will be skipped
https://github.com/Hamlib/Hamlib/issues/664
2021-04-15 11:47:58 -05:00
Mike Black W9MDB c25e8f9e5b Add TX/RX VFOs to dummy.c 2021-04-06 07:22:19 -05:00
Michael Black W9MDB 3bc39aaec1 astyle files is preparation for 4.2 release 2021-03-15 17:51:22 -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 88318e19c9 Add additional VFOS to dummy.c for cache testing
https://github.com/Hamlib/Hamlib/issues/606
2021-03-13 15:32:26 -06:00
Michael Black W9MDB c3a1b489b7 Add return code to debug statements
Remove some RETURNFUNC that don't work with this change
2021-03-05 11:51:56 -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 ee60a68bec astyle files 2021-02-28 09:46:01 -06:00
Michael Black W9MDB 0f9a7fac07 Add -RIG_EINVAL when set_level > 1.0 2021-02-19 08:44:02 -06:00
Michael Black W9MDB 53b18d4ec4 Add Main/Sub vfos to dummy.c for testing 2021-02-18 23:45:14 -06:00
Michael Black W9MDB b35191d6ad Fix extra LF in rigerror output
ENTERFUNC/RETURNFUNC in dummy.c
https://github.com/Hamlib/Hamlib/issues/514
2021-02-10 22:58:45 -06:00
Michael Black W9MDB ca8ed30f8f astyle files 2021-01-09 10:13:17 -06:00
John Paul Adrian Glaubitz 5805de6e1e dummy/dummy.c: Fix unaligned access in dummy_get_level()
This fixes an unaligned access in dummy/dummy.c in the function
dummy_get_level() which resulted in crashes (Bus Error) on systems
with stricter alignment requirements such as SPARC.

On x86_64 (and any other architecture with less strict alignment
requirements), the compiler automatically optimizes the memcpy()
out if necessary such that there are no performance issues.
2021-01-08 21:14:35 +01: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 bb315270bf Merge branch 'master' into rotator-speed-control-and-status 2020-12-02 21:46:23 +02:00
Michael Black W9MDB 5fc36df249 astyle files 2020-11-30 14:53:55 -06: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
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 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 948e9d5f99 astyle files 2020-10-23 11:36:42 -05:00
Michael Black W9MDB 53c09369ea Add MAIN/SUB vfos to dummy for testing purposes
https://github.com/Hamlib/Hamlib/issues/404
2020-10-23 11:30:18 -05:00
Michael Black W9MDB 0e44e2f317 Move dummy to rigs directory
Remove unneeded references to dummy
2020-10-05 09:58:20 -05:00