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

Classes | Defines | Typedefs | Enumerations | Functions | Variables

libhid.h File Reference

HID Library - User API. More...

#include "config.h"
#include <sys/types.h>
#include "hidtypes.h"
#include "timehead.h"
#include "libusb.h"
Include dependency graph for libhid.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  reportbuf_s
struct  usage_lkp_t

Defines

#define MAX_TS   2
#define MODE_OPEN   0
#define MODE_REOPEN   1

Typedefs

typedef enum ebool bool_t
typedef
usb_communication_subdriver_t 
communication_subdriver_t
typedef usb_dev_handle * hid_dev_handle_t
typedef USBDevice_t HIDDevice_t
typedef USBDeviceMatcher_t HIDDeviceMatcher_t
typedef struct reportbuf_s reportbuf_t
typedef usage_lkp_tusage_tables_t

Enumerations

enum  ebool {
  FALSE, TRUE, FALSE = 0, TRUE,
  FALSE, TRUE
}

Functions

void free_report_buffer (reportbuf_t *rbuf)
const char * HIDDataType (const HIDData_t *hiddata)
void HIDDumpTree (hid_dev_handle_t udev, usage_tables_t *utab)
char * HIDGetDataItem (const HIDData_t *hiddata, usage_tables_t *utab)
int HIDGetDataValue (hid_dev_handle_t udev, HIDData_t *hiddata, double *Value, int age)
int HIDGetEvents (hid_dev_handle_t udev, HIDData_t **event, int eventlen)
char * HIDGetIndexString (hid_dev_handle_t udev, int Index, char *buf, size_t buflen)
HIDData_tHIDGetItemData (const char *hidpath, usage_tables_t *utab)
char * HIDGetItemString (hid_dev_handle_t udev, const char *hidpath, char *buf, size_t buflen, usage_tables_t *utab)
int HIDGetItemValue (hid_dev_handle_t udev, const char *hidpath, double *Value, usage_tables_t *utab)
int HIDSetDataValue (hid_dev_handle_t udev, HIDData_t *hiddata, double Value)
bool_t HIDSetItemValue (hid_dev_handle_t udev, const char *hidpath, double value, usage_tables_t *utab)
reportbuf_tnew_report_buffer (HIDDesc_t *pDesc)

Variables

communication_subdriver_tcomm_driver
usage_lkp_t hid_usage_lkp []
HIDDesc_tpDesc
reportbuf_treportbuf

Detailed Description

HID Library - User API.

Author:
Copyright (C) 2003 - 2007 Arnaud Quette <arnaud.quette@free.fr> && <arnaud.quette@mgeups.com> Charles Lepple <clepple@ghz.cc> Peter Selinger <selinger@users.sourceforge.net> Arjen de Korte <adkorte-guest@alioth.debian.org>

This program is sponsored by MGE UPS SYSTEMS - opensource.mgeups.com

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 libhid.h.


Generated by  Doxygen 1.6.0   Back to index