Logo Search packages:      
Sourcecode: nut version File versions  Download package

libusb.h File Reference

Detailed Description

HID Library - Generic USB backend for Generic HID Access (using MGE HIDParser).

Copyright (C) 2003 - 2006 Arnaud Quette <aquette.dev@gmail.com> 2005 Peter Selinger <selinger@users.sourceforge.net>
This program is sponsored by MGE UPS SYSTEMS - opensource.mgeups.com

The logic of this file is ripped from mge-shut driver (also from Arnaud Quette), which is a "HID over serial link" UPS driver for Network UPS Tools <http://www.networkupstools.org/>

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.


Definition in file libusb.h.

#include <usb.h>
#include <regex.h>
#include "nut_stdint.h"

Go to the source code of this file.


struct  usb_communication_subdriver_s
struct  USBDevice_s
struct  USBDeviceMatcher_s

: can be either "shut" for Serial HID UPS Transfer (from MGE) or "usb"

usb_communication_subdriver_s: structure to describe the communication routines

typedef struct
usb_communication_subdriver_t usb_subdriver


typedef struct USBDevice_s USBDevice_t
typedef struct USBDeviceMatcher_s USBDeviceMatcher_t


static int matches (USBDeviceMatcher_t *matcher, USBDevice_t *device)
void USBFreeExactMatcher (USBDeviceMatcher_t *matcher)
void USBFreeRegexMatcher (USBDeviceMatcher_t *matcher)
int USBNewExactMatcher (USBDeviceMatcher_t **matcher, USBDevice_t *hd)
int USBNewRegexMatcher (USBDeviceMatcher_t **matcher, char **regex, int cflags)

Generated by  Doxygen 1.6.0   Back to index