Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
hid-example.c File Reference
#include <linux/types.h>
#include <linux/input.h>
#include <linux/hidraw.h>
#include <sys/ioctl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <errno.h>

Go to the source code of this file.

Macros

#define HIDIOCSFEATURE(len)   _IOC(_IOC_WRITE|_IOC_READ, 'H', 0x06, len)
 
#define HIDIOCGFEATURE(len)   _IOC(_IOC_WRITE|_IOC_READ, 'H', 0x07, len)
 

Functions

const charbus_str (int bus)
 
int main (int argc, char **argv)
 

Macro Definition Documentation

#define HIDIOCGFEATURE (   len)    _IOC(_IOC_WRITE|_IOC_READ, 'H', 0x07, len)

Definition at line 25 of file hid-example.c.

#define HIDIOCSFEATURE (   len)    _IOC(_IOC_WRITE|_IOC_READ, 'H', 0x06, len)

Definition at line 24 of file hid-example.c.

Function Documentation

const char * bus_str ( int  bus)

Definition at line 159 of file hid-example.c.

int main ( int  argc,
char **  argv 
)

Definition at line 43 of file hid-example.c.