Displaying 8 results from an estimated 8 matches for "usb_device_id_t".
Did you mean:
usb_device_id
2008 Nov 19
1
usb_device_id_t structure
Arnaud,
I have a question regarding the below structure you've added:
> typedef struct usb_device_id_t {
> int vendorID;
> int productID;
> void*(*fun)(); /* handler for specific 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 co...
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
2010 Sep 11
1
TrippLite SMART1000LCD
These patches allow this device to function in nut..
diff --git a/trunk/drivers/tripplite-hid.c b/new/drivers/tripplite-hid.c
index c36da98..dddd13c 100644
--- a/trunk/drivers/tripplite-hid.c
+++ b/new/drivers/tripplite-hid.c
@@ -71,6 +71,8 @@ static usb_device_id_t tripplite_usb_device_table[] = {
{ USB_DEVICE(TRIPPLITE_VENDORID, 0x2005), battery_scale_0dot1 },
/* e.g. TrippLite OMNI900LCD */
{ USB_DEVICE(TRIPPLITE_VENDORID, 0x2007), battery_scale_0dot1 },
+ /* e.g. TrippLite Smart1000LCD */
+ { USB_DEVICE(TRIPPLITE_VENDORID,...
2014 Aug 11
1
Cyberpower Value1200E might not need 0.667 battery scaling
...gt; + */
> +static const double battery_voltage_sanity_check = 1.4;
>
> static void *cps_battery_scale(USBDevice_t *device)
> {
> - battery_scale = 0.667;
> + might_need_battery_scale = 1;
> return NULL;
> }
>
> /* USB IDs device table */
> static usb_device_id_t cps_usb_device_table[] = {
> - /* 900AVR/BC900D, CP1200AVR/BC1200D */
> + /* 900AVR/BC900D */
> { USB_DEVICE(CPS_VENDORID, 0x0005), NULL },
> - /* Dynex DX-800U? */
> + /* Dynex DX-800U?, CP1200AVR/BC1200D, CP825AVR-G, CP1000AVRLCD, CP1000PFCLCD, CP1500C, CP550HG, etc. */
>...
2014 Aug 09
0
Cyberpower Value1200E might not need 0.667 battery scaling
On Aug 8, 2014, at 9:15 AM, Charles Lepple <clepple at gmail.com> wrote:
> On Aug 7, 2014, at 10:52 PM, Charles Lepple <clepple at gmail.com> wrote:
>
>> On Aug 7, 2014, at 10:18 PM, Matthew Stapleton <matthew4196 at gmail.com> wrote:
>>
>>> I just got a Cyberpower SOHO Value 1200 ELCD UPS and even with nut 2.7.2, it appears to report battery voltage
2014 Aug 08
2
Cyberpower Value1200E might not need 0.667 battery scaling
On Aug 7, 2014, at 10:52 PM, Charles Lepple <clepple at gmail.com> wrote:
> On Aug 7, 2014, at 10:18 PM, Matthew Stapleton <matthew4196 at gmail.com> wrote:
>
>> I just got a Cyberpower SOHO Value 1200 ELCD UPS and even with nut 2.7.2, it appears to report battery voltage too low due to the battery scaling function (In drivers/cps-hid.c). Even though the ups has usb id:
2011 Sep 14
1
[nut-commits] svn commit r3226 - trunk/tools/nut-scanner
..._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.eaton.com
-----------...
2012 Nov 20
2
[PATCH][RFC] OpenUPS driver
...s.h"
+#include "openups-hid.h"
+#include "main.h" /* for getval() */
+#include "usb-common.h"
+
+#define OPENUPS_HID_VERSION "openUPS HID 0.1"
+#define OPENUPS_VENDORID 0x04d8
+
+static char openups_scratch_buf[20];
+
+/* USB IDs device table */
+static usb_device_id_t openups_usb_device_table[] = {
+ /* openUPS minimum required firmware 1.4 */
+ {USB_DEVICE(OPENUPS_VENDORID, 0xd004), NULL},
+
+ /* Terminating entry */
+ {-1, -1, NULL}
+};
+
+static const char *openups_charging_fun(double value);
+static const char *openups_discharging_fun(double value);
+static...