search for: usage_tables_t

Displaying 6 results from an estimated 6 matches for "usage_tables_t".

2006 Jun 03
1
RFC: allow HID subdriver's to register ups.conf settings
...the normal serial drivers. DESCRIPTION OF CHANGES: - In newhidups.h, add an extra line to the subdriver_s struct; void (*extendvartable)(void); so it becomes; struct subdriver_s { char *name; int (*claim)(HIDDevice *hd); usage_tables_t *utab; hid_info_t *hid2nut; int (*shutdown)(int ondelay, int offdelay); char *(*format_model)(HIDDevice *hd); char *(*format_mfr)(HIDDevice *hd); char *(*format_serial)(HIDDevice *hd); void (*extendvarta...
2018 Feb 04
0
[PATCH 1/3] Skip non-feature HID reports
...s may lead to undesirable results and errors. --- drivers/libhid.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/libhid.c b/drivers/libhid.c index f6ec644..1cec74a 100644 --- a/drivers/libhid.c +++ b/drivers/libhid.c @@ -301,6 +301,13 @@ void HIDDumpTree(hid_dev_handle_t udev, usage_tables_t *utab) continue; } #else + /* Skip non-feature reports, primarily for OpenUPS - but + * as HIDGetItemData() only cares about feature items, + * do it for all. + */ + if (pData->Type != ITEM_FEATURE) + continue; + if ((vendorID == 0x0463) || (vendorID == 0x047c)) { if ((p...
2006 Dec 30
3
Newpoint 200897 UPS
...ercomDesignCapacity", 0x00020083 }, { "PowercomSpecificationInfo", 0x00020084 }, { "PowercomManufacturerDate", 0x00020085 }, { "PowercomSerialNumber", 0x00020086 }, { "PowercomManufacturerName", 0x00020087 }, { "\0", 0x0 } }; static usage_tables_t powercom_utab[] = { powercom_usage_lkp, hid_usage_lkp, NULL, }; /* --------------------------------------------------------------- */ /* HID2NUT lookup table */ /* --------------------------------------------------------------- */ static hid_info_t po...
2012 Nov 20
2
[PATCH][RFC] OpenUPS driver
...}, /* Battery cell 5 on J6 pin 5 */ + {"Cell6", 0x00000006}, /* Battery cell 6 on J4 pin 1 */ + /* Usage table for windows monitoring app only updates when + * certain request codes are written to USB endpoint */ + /*{ "OpenUPSExtra", 0xff000001 }, */ + {NULL, 0} +}; + +static usage_tables_t openups_utab[] = { + openups_usage_lkp, + hid_usage_lkp, + NULL, +}; + +/* --------------------------------------------------------------- */ +/* HID2NUT lookup table */ +/* --------------------------------------------------------------- */ + +static hid_i...
2018 Feb 04
5
[PATCH 0/3] OpenUPS updates
Hi, I've been checking out NUT with an OpenUPS board over the last couple of weekends, and have noticed that it doesn't seem to report sensible values. This lead me to investigate usbhid-ups and delve into various issues. As mentioned in a github issue, one of the problems is with the report descriptor - dumping this from the usbhid-ups debug output and picking through it reveals that
2006 Nov 11
1
Help with newhidups subdriver for Dynex UPS
..._VENDORID 0x0764 /* --------------------------------------------------------------- */ /* Vendor-specific usage table */ /* --------------------------------------------------------------- */ /* DYNEX usage table */ static usage_lkp_t dynex_usage_lkp[] = { { "\0", 0x0 } }; static usage_tables_t dynex_utab[] = { dynex_usage_lkp, hid_usage_lkp, NULL, }; /* --------------------------------------------------------------- */ /* HID2NUT lookup table */ /* --------------------------------------------------------------- */ static hid_info_t dynex_hi...