Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
inexio.c File Reference
#include <linux/errno.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/input.h>
#include <linux/serio.h>
#include <linux/init.h>

Go to the source code of this file.

Data Structures

struct  inexio
 

Macros

#define DRIVER_DESC   "iNexio serial touchscreen driver"
 
#define INEXIO_FORMAT_TOUCH_BIT   0x01
 
#define INEXIO_FORMAT_LENGTH   5
 
#define INEXIO_RESPONSE_BEGIN_BYTE   0x80
 
#define INEXIO_MAX_LENGTH   16
 
#define INEXIO_MIN_XC   0
 
#define INEXIO_MAX_XC   0x3fff
 
#define INEXIO_MIN_YC   0
 
#define INEXIO_MAX_YC   0x3fff
 
#define INEXIO_GET_XC(data)   (((data[1])<<7) | data[2])
 
#define INEXIO_GET_YC(data)   (((data[3])<<7) | data[4])
 
#define INEXIO_GET_TOUCHED(data)   (INEXIO_FORMAT_TOUCH_BIT & data[0])
 

Functions

 MODULE_AUTHOR ("Richard Lemon <[email protected]>")
 
 MODULE_DESCRIPTION (DRIVER_DESC)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_DEVICE_TABLE (serio, inexio_serio_ids)
 
 module_serio_driver (inexio_drv)
 

Macro Definition Documentation

#define DRIVER_DESC   "iNexio serial touchscreen driver"

Definition at line 28 of file inexio.c.

#define INEXIO_FORMAT_LENGTH   5

Definition at line 39 of file inexio.c.

#define INEXIO_FORMAT_TOUCH_BIT   0x01

Definition at line 38 of file inexio.c.

#define INEXIO_GET_TOUCHED (   data)    (INEXIO_FORMAT_TOUCH_BIT & data[0])

Definition at line 52 of file inexio.c.

#define INEXIO_GET_XC (   data)    (((data[1])<<7) | data[2])

Definition at line 50 of file inexio.c.

#define INEXIO_GET_YC (   data)    (((data[3])<<7) | data[4])

Definition at line 51 of file inexio.c.

#define INEXIO_MAX_LENGTH   16

Definition at line 43 of file inexio.c.

#define INEXIO_MAX_XC   0x3fff

Definition at line 46 of file inexio.c.

#define INEXIO_MAX_YC   0x3fff

Definition at line 48 of file inexio.c.

#define INEXIO_MIN_XC   0

Definition at line 45 of file inexio.c.

#define INEXIO_MIN_YC   0

Definition at line 47 of file inexio.c.

#define INEXIO_RESPONSE_BEGIN_BYTE   0x80

Definition at line 40 of file inexio.c.

Function Documentation

MODULE_AUTHOR ( "Richard Lemon <[email protected]>"  )
MODULE_DESCRIPTION ( DRIVER_DESC  )
MODULE_DEVICE_TABLE ( serio  ,
inexio_serio_ids   
)
MODULE_LICENSE ( "GPL"  )
module_serio_driver ( inexio_drv  )