Wykres commitów

36 Commity (master)

Autor SHA1 Wiadomość Data
Mike Black W9MDB b358cdbd2e Fix usb_port.c to use new libusb format for pid:vid 2024-03-05 15:57:10 -06:00
Mike Black W9MDB 6844722faa Add libusb version info to find_and_open_device 2024-02-11 08:02:33 -06:00
Daniele Forsi IU5HKX f7fe2912ec Remove unused includes of errno.h 2022-12-09 12:32:54 +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
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
Michael Black W9MDB f2586d0acb Fix macro in usb_port.c 2021-03-06 16:56:22 -06:00
Daniele Forsi d7b332c3f7 Fix spelling errors
Fixed using the following command:
codespell --write-changes --summary --skip=*.m4 --ignore-words-list="develope,get's,quitt,setts,som,ue,vektor"
codespell --write-changes --summary --skip=aclocal.m4,lib --ignore-words-list="develope,get's,quitt,setts,som,ue,vektor"

Codespell home page: https://github.com/codespell-project/codespell
2020-07-24 09:02:48 +02:00
Michael Black f1f0d7f129 Fix some of the documentation 2020-04-09 17:56:19 -05:00
Michael Black ff8ddf018c astyle all C files 2020-02-23 11:26:09 -06:00
Michael Black 72e934b67e Fix mingw32 compilation of usb_port.c 2019-12-24 15:35:37 -06:00
Michael Black ed339b1c2b
Add sleep and usleep macros so all sleeps use nanosleep 2019-12-22 11:17:22 -06:00
Michael Black fb73e5abd7
Fix some cppcheck warnings
Fix declarations after statements
Remove some !rig checks...we either don't need them or need them everywhere with a new error code
If you pass a NULL rig you get what you deserve :-)
2019-12-09 17:12:13 -06:00
Michael Black bc94558fe3
Fix cppcheck warnings in usb_port.c 2019-12-08 22:48:02 -06:00
Michael Black 6bf3b00c4f
astyle all files 2019-11-30 10:19:08 -06:00
Michael Black 2f4d62709e
Added a dummy snprintf to rig_debug to allow gcc to check format strings
This found tons of errors in rig_debug statements
So this patch cleans up all the files that were producing warnings or errors
This should fix a few segfaults when running with debug turned on
2019-11-30 10:04:31 -06:00
Nate Bargmann ab3e6bb5a5 Formatted src/ to final coding guidelines 2017-10-04 21:32:08 -05:00
Nate Bargmann f76b354588 Reformatted src directory 2017-08-09 06:14:31 -05:00
Nate Bargmann 6a3214fd43 Apply Linux C style
Update files modified to support libusb-1.0.
2016-02-21 14:56:44 -06:00
Nate Bargmann 9ec98e0fe3 Check for libusb-1.0/libusb.h
Some distributions--Debian and Alpine tested--put libusb.h under the
libusb-1.0 directory.  Test for its presence and if found define
HAVE_LIBUSB_1_0_LIBUSB_H.  Also test for HAVE_LIBUSB or
HAVE_LIBUSB_1_0_LIBUSB_H and conditionally include the correct header
file in the sources.
2016-02-15 08:10:07 -06:00
Stephane Fillod 8d7697c3bd Migrating from libusb-0.1 to libusb-1.0 2016-02-14 18:02:26 +01:00
Nate Bargmann dad27d1f69 Update LGPL header in src source files.
TNX to Lucian Laga, YO6PLB, for the notification.
2011-08-22 21:38:37 -05:00
Nate Bargmann f500a67b49 Test product string with strncasecmp() now
Now testing with strncasecmp() for case insensitive match.  Updating
firmware on FUNcube Dongle to v18f resulted in product string changing
from "FunCube Dongle" to "FUNcube Dongle".  As new dongles are shipped
with older firmware, both product strings are valid.  Sigh...
2011-07-08 07:01:00 -05:00
Nate Bargmann ba5720d1a9 Fix test of strstr() for Vendor string match.
The sense of the test of strstr() return value was reversed.  Corrected
so Vendor string match would pass.  Tested with FUNcube.
2011-07-07 22:53:24 -05:00
Stephane Fillod 7b73db7c1f Make usb_set_configuration() optional upon backend choice, disable it for FUNcude dongle
The call to usb_set_configuration() looks troublesome for the setup
for the FUNcube dongle on Win32 target. In fact it appears not to be
necessary (TBC). Make that call optional per backend choice.
2011-04-11 23:24:44 +02:00
Nate Bargmann, N0NB d78648a170 Added partial match in USB product name
In case the usb device name is not found among the available devices, a
partial string comparison is performed.

Author: Stefano Speretta, Innovative Solutions In Space BV
<s.speretta@isispace.nl>
Signed-off-by: Stefano Speretta <s.speretta@isispace.nl>

git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@3054 7ae35d74-ebe9-4afe-98af-79ac388436b8
2011-02-17 12:22:48 +00:00
Stéphane Fillod, F8CFE 91deafbcb3 Allow USB device's VID/PID/Vendor/Product to be explicitly specified
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@3041 7ae35d74-ebe9-4afe-98af-79ac388436b8
2011-02-08 09:02:40 +00:00
Nate Bargmann, N0NB 53dad4d957 FUNcube interface added by Stefano Speretta
Added FUNcube interface to Hamlib.  This is a basic FUNcube interface:
at the moment only frequency set/readout is supported.  From Stefano
Speretta <s.speretta@isispace.nl>.

git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@3026 7ae35d74-ebe9-4afe-98af-79ac388436b8
2011-01-28 00:40:45 +00:00
Stéphane Fillod, F8CFE db563f7aaf Add support for USB device without usb_set_configuration() and
without usb_claim_interface(). Looks like needed on Windows 7.


git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2994 7ae35d74-ebe9-4afe-98af-79ac388436b8
2010-10-08 20:43:53 +00:00
Stéphane Fillod, F8CFE 886542c461 usb_set_configuration() is mandatory for the setup on Windows
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2987 7ae35d74-ebe9-4afe-98af-79ac388436b8
2010-09-22 19:54:12 +00:00
Stéphane Fillod, F8CFE 26f7a9e3c9 * do not check return value of usb_detach_kernel_driver_np(),
it's done as best effort, and access failure would be catched later.
* make failure of usb_claim_interface() fatal in usb_port_open()


git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2984 7ae35d74-ebe9-4afe-98af-79ac388436b8
2010-09-17 15:02:05 +00:00
Stéphane Fillod, F8CFE b636a3f6ac allow check of vendor name and product string when looking for USB device
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2727 7ae35d74-ebe9-4afe-98af-79ac388436b8
2009-09-14 07:32:36 +00:00
Stéphane Fillod, F8CFE 1b79a2a0ed * call missing usb_find_devices()
* disable usb_set_configuration/usb_set_altinterface since they seem to interfere


git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2219 7ae35d74-ebe9-4afe-98af-79ac388436b8
2007-10-07 20:12:36 +00:00
Martin Ewing, AA6E f6ddc3edad documentation
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2145 7ae35d74-ebe9-4afe-98af-79ac388436b8
2006-10-15 00:27:52 +00:00
Stéphane Fillod, F8CFE fd25cc7a83 misc comment fix
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2066 7ae35d74-ebe9-4afe-98af-79ac388436b8
2006-02-20 22:41:17 +00:00
Stéphane Fillod, F8CFE 07a8c95610 make libusb usage optional
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2053 7ae35d74-ebe9-4afe-98af-79ac388436b8
2005-11-19 14:41:37 +00:00
Stéphane Fillod, F8CFE 36c62542ae added usb port type support
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2046 7ae35d74-ebe9-4afe-98af-79ac388436b8
2005-11-01 23:02:02 +00:00