Daniele Forsi IU5HKX
0267068220
Fix ambiguity between system includes and Hamlib includes
2025-07-22 23:33:57 +02:00
Daniele Forsi IU5HKX
974e619dd2
Replace #include serial.h with iofunc.h
...
According to iwyu, to avoid unecessary rebuilds and to reduce the
chances of breakages of the build if includes are rearranged, the
code that uses serial_open() and ser_close() should include
serial.h while the code that uses read_block() write_block() and
similar should include iofunc.h, code that uses all of them should
include both files.
Found with iwyu.
2025-07-22 23:33:56 +02:00
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
213e7751bf
Add needed includes of new files to rotators/*/*
2025-07-10 09:54:03 -04:00
George Baltz N3GB
c28caa7a9c
Use macros/pointers for rot->state references
2024-07-14 01:17:28 -04:00
George Baltz N3GB
f247ee2088
Convert first part of rotators/
2024-02-19 13:06:53 -05:00
Mike Black W9MDB
534fe449a2
Fix more cppcheck items
2023-10-13 17:36:29 -05:00
Daniele Forsi IU5HKX
cdb3a60f02
[rotators] Fix includes
2023-02-16 19:08:24 +01:00
Daniele Forsi IU5HKX
b6ec70fcb2
[rotators] Remove unused include of config.h
2023-02-14 19:57:06 +01:00
Daniele Forsi IU5HKX
7a132e2703
Remove unused includes
...
Removes includes of stdio.h stdlib.h string.h unistd.h
2022-07-24 17:08:57 +02:00
Daniele Forsi IU5HKX
34018600ee
Remove unused includes of math.h
2022-07-23 18:39:55 +02:00
Daniele Forsi IU5HKX
4dfe46edbb
Remove unused includes related to times and dates
...
Removes includes of time.h sys/time.h hamlibdatetime.h
2022-07-23 18:12:10 +02:00
Mike Black W9MDB
8c34ce1a2d
astyle source code
2022-02-05 15:27:43 -06:00
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
bff29003ea
Change snprintf to SNPRINTF in rotators
...
https://github.com/Hamlib/Hamlib/issues/857
2022-01-22 22:28:32 -06:00
Mike Black W9MDB
405040b375
Change sprintf to snprint in ether6.c
...
https://github.com/Hamlib/Hamlib/issues/857
2022-01-09 09:35:35 -06:00
Mikael Nousiainen
c764336e73
Fix build warnings caused by changes to I/O function signatures
2021-12-18 23:49:45 +02:00
Mike Black W9MDB
d820ee9dbf
Add expected_len to read_string function for potential serial I/O speedup
...
https://github.com/Hamlib/Hamlib/issues/850
2021-11-24 13:02:39 -06:00
Mike Black W9MDB
8fe190d622
Reduce error messages about RIG_VFO_OTHER which only applies to some rigs like Icom rigs with the 0x25 command
...
Add a flush_flag to read_string so that the new serial_flush will not produce a timeout value when flushing
https://github.com/Hamlib/Hamlib/issues/835
2021-11-01 23:43:45 -05:00
Mike Black W9MDB
388294c3d6
Fix RIG_STATUS_STABLE misspelling
2021-09-15 13:50:31 -05:00
Mike Black W9MDB
8cc59cca3b
Rigs have been at BETA status forever so promoting all to STABLE
2021-09-15 13:44:42 -05:00
Michael Black W9MDB
263f1cde72
astyle files
2020-12-17 15:07:04 -06:00
Mikael Nousiainen
81a0c521e7
Add support for ROT_LEVEL_SPEED level in rotator backends that support setting the rotator speed via the move command. Add azimuth-only and elevation-only versions of generic GS-232A and GS-232B backends.
2020-12-03 23:07:08 +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
Michael Black W9MDB
b239e227bd
Change rotators to standard version format and promote a few to stable
2020-06-08 16:13:08 -05:00
Michael Black
d0f114b178
Add macro_name to caps structures for rig, rot, and amp devices
2020-03-05 23:48:14 -06:00
Michael Black
8d6e2fc781
Directory migration to new layout
2020-01-17 09:22:44 -06:00