search for: is_usb_device_support

Displaying 8 results from an estimated 8 matches for "is_usb_device_support".

2008 Nov 19
1
usb_device_id_t structure
...ecific processing */ > } usb_device_id; I don't understand the last element in this structure. While there can be plenty of reasons for functions returning (void *), I can't figure out what use this could possibly have here. Since this structure is supposed to be used as input to is_usb_device_supported() and that function returns an (int), what can we possibly do with the return value of (void *)(*fun)()? Using that, would require casting the (void *) pointer to something useful, but how would we tell this to is_usb_device_supported()? Could it be you actually meant (void)(*fun)(), ie a...
2008 Nov 24
1
[nut-commits] svn commit r1578 - in trunk: . drivers
Citeren Arjen de Korte <adkorte-guest at alioth.debian.org>: > Author: adkorte-guest > Date: Mon Nov 24 13:13:44 2008 > New Revision: 1578 > > Log: > Use new usb_device_id_t and is_usb_device_supported() > for selection of the subdriver. Alexander, It would be nice if you could double check that I didn't horribly break something here. I don't expect any surprises here, but one never knows. Best regards, Arjen -- Please keep list traffic on the list
2024 Nov 02
1
Driver with calls to USB functions not linking
Hello again all. I am trying to use USB functions (non-HID) and I get a linker error for functions that are in the included usb-common.h file. Specifically, at the start, these functions: - warn_if_bad_usb_port_filename - nutusb_open - is_usb_device_supported Clearly the headers are there or I don't think the driver would compile. Can someone point me in the right direction please? Thank you, Bill Not sure if these USB related lines from the configuration run are relevant or not: checking for libregex version via pkg-config... none found ch...
2024 Nov 02
1
Driver with calls to USB functions not linking
...oc.com> wrote: > Hello again all. > > I am trying to use USB functions (non-HID) and I get a linker error > for functions that are in the included usb-common.h file. > > Specifically, at the start, these functions: > - warn_if_bad_usb_port_filename > - nutusb_open > - is_usb_device_supported > > Clearly the headers are there or I don't think the driver would > compile. Can someone point me in the right direction please? > > Thank you, > > Bill > > Not sure if these USB related lines from the configuration run are > relevant or not: > > checking...
2014 Mar 14
2
Creating a new NUT USB HID subdriver
...ions on the web....I used the script to generate the usbhid subdriver, feeding it the output of the usbhid-ups driver from reading my UPS. All that worked pretty well. I copied it in the right dir, and made the changes to usbhid-ups.c and Makefile.am. Upon compile, my subdriver failed due to the is_usb_device_supported(). I guess it used to take the vendor and product ID separately, but now just takes a pointer to the USB device. So, remove everything after the first "hd" (so it passes in just the HIDDevice_t hd instead). It works pretty good after that. However, if I'm going to tailor my hid2...
2011 Sep 14
1
[nut-commits] svn commit r3226 - trunk/tools/nut-scanner
...k/tools/nut-scanner/scan_usb.c Wed Sep 14 12:25:03 2011 (r3226) > @@ -22,6 +22,7 @@ > #include "upsclient.h" > #include "nutscan-usb.h" > #include <stdio.h> > +#include <string.h> > #include "nutscan-device.h" > > static char* is_usb_device_supported(usb_device_id_t *usb_device_id_list, > > _______________________________________________ > nut-commits mailing list > nut-commits at lists.alioth.debian.org > http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-commits -- Team Open Source Eaton - http://powerquality.eato...
2012 Nov 19
2
Riello patch
Hi Arnaud, hi developers, attach there is the patch for riello drivers. Can you tell me if there is other to change in order to accomplish your rules and if the steps I have followed to create the patch are all rights? Cheers, Elio Parisi. Elio Parisi Centro Ricerche RPS SpA Viale Europa, 7 37045 Legnago VR Tel. +39 0442 635811 Fax. +39 0442 635934 Skype Id: - Voip: E-mail: E.Parisi
2012 Nov 20
2
[PATCH][RFC] OpenUPS driver
...+} + +static const char *openups_format_serial(HIDDevice_t * hd) +{ + return hd->Serial; +} + +/* this function allows the subdriver to "claim" a device: return 1 if + * the device is supported by this subdriver, else 0. */ +static int openups_claim(HIDDevice_t * hd) +{ + int status = is_usb_device_supported(openups_usb_device_table, hd); + + switch (status) { + case POSSIBLY_SUPPORTED: + /* by default, reject, unless the productid option is given */ + if (getval("productid")) { + return 1; + } + possibly_supported("openUPS", hd); + return 0; + + case SUPPORTED: + return 1...