search for: usb_ups_device

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

2007 Feb 01
2
Re: [Nut-upsuser] Ablerex 625L USB version
...r_len,char > endchar,const char *ignchars); > + > + typedef struct > + { > + uint16_t vid; > + uint16_t pid; > + int (*get_data)(char *buffer,int buffer_size); > + int (*set_data)(const char *str); > + } usb_ups_t; > + > + usb_ups_t *usb_ups_device = NULL; > + > + /* > + All devices known to this driver go here > + along with their set/get routines > + */ > + > + static int get_data_agiler(char *buffer,int buffer_size); > + static int set_data_agiler(const char *str); > + static int get_data_ablerex(char *bu...
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
2006 Dec 05
3
megatec over USB - new driver patch
...iddevice; + +static int comm_usb_recv(char *buffer,size_t buffer_len,char endchar,const char *ignchars); + +typedef struct +{ + uint16_t vid; + uint16_t pid; + int (*get_data)(char *buffer,int buffer_size); + int (*set_data)(const char *str); +} usb_ups_t; + +usb_ups_t *usb_ups_device = NULL; + +/* + All devices known to this driver go here + along with their set/get routines +*/ + +static int get_data_agiler(char *buffer,int buffer_size); +static int set_data_agiler(const char *str); + +static usb_ups_t KnownDevices[]={ + { 0x05b8, 0x0000, get_data_agiler, set_data_agi...