Logo Search packages:      
Sourcecode: nut version File versions

libhid.h File Reference


Detailed Description

HID Library - User API.

Author:
Copyright (C) 2003 Arnaud Quette <arnaud.quette@free.fr> && <arnaud.quette@mgeups.com> Charles Lepple <clepple@ghz.cc>
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 <sys/types.h>
#include "timehead.h"
#include "hidtypes.h"

Go to the source code of this file.

Classes

struct  HIDDevice
struct  HIDItem
struct  MatchFlags

Defines

#define ANY   -1 /* 0xffff */
#define MAX_TS   2
#define MODE_OPEN   0
#define MODE_REOPEN   1

Typedefs

typedef enum ebool bool

Enumerations

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

Functions

int hid_lookup_usage (char *name)
void HIDCloseDevice (HIDDevice *dev)
void HIDDumpTree (HIDDevice *hd)
HIDItemHIDGetItem (const char *ItemPath)
char * HIDGetItemString (const char *path)
float HIDGetItemValue (const char *path, float *Value)
HIDItemHIDGetNextEvent (HIDDevice *dev)
HIDDeviceHIDOpenDevice (const char *port, MatchFlags *flg, int mode)
bool HIDSetItemValue (const char *path, float value)


Generated by  Doxygen 1.6.0   Back to index