search for: param_arg

Displaying 3 results from an estimated 3 matches for "param_arg".

Did you mean: param_a_b
2007 Jan 23
2
Voltage override in megatec and megatec-over-usb [was: Re: nut-2.0.5 megatec + Online Xanto]
On 1/23/07, Henning Brauer <hb-nut@bsws.de> wrote: > good new first: the megatec driverin 2.0.5 now works with the Online > Xanto S3000R here - well, for the very basics. > > the UPS has NO way ofidentifying itself. It also does not respond to > the power ratings query ("F"). I previously used a hacked up fentonups > driver. This means the driver cannot figure out
2007 Feb 01
2
Re: [Nut-upsuser] Ablerex 625L USB version
...roductID) ) > + { > + usb_ups_device = p; > + return 1; > + } > + } > + > + return 0; > + } > + > + static int comm_usb_open(const char *param) > + { > + HIDDeviceMatcher_t match; > + static usb_ups_t param_arg; > + const char* p; > + int ret,i; > + union _u { > + unsigned char report_desc[4096]; > + char flush_buf[256]; > + } u; > + upsdebugx(4, "comm_usb_open"); > + memset(&match,0,sizeof(matc...
2006 Dec 05
3
megatec over USB - new driver patch
...{ + if ( (p->vid==d->VendorID) && (p->pid==d->ProductID) ) + { + usb_ups_device = p; + return 1; + } + } + + return 0; +} + +static int comm_usb_open(const char *param) +{ + HIDDeviceMatcher_t match; + static usb_ups_t param_arg; + const char* p; + int ret,i; + union _u { + unsigned char report_desc[4096]; + char flush_buf[256]; + } u; + + memset(&match,0,sizeof(match)); + match.match_function = &comm_usb_match; + + if (0!=strcmp(param,"a...