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

libhid.h File Reference


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.

#include "config.h"
#include <sys/types.h>
#include "hidtypes.h"
#include "timehead.h"
#include "libusb.h"

Go to the source code of this file.

Classes

struct  reportbuf_s
struct  usage_lkp_t

Defines

#define MAX_TS   2

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_t * usage_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 (hid_dev_handle_t udev, 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_t * HIDGetItemData (hid_dev_handle_t udev, 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_t * new_report_buffer (HIDDesc_t *pDesc)

Variables

communication_subdriver_t * comm_driver
usage_lkp_t hid_usage_lkp []
HIDDesc_t * pDesc
reportbuf_t * reportbuf


Generated by  Doxygen 1.6.0   Back to index