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

Go to the source code of this file.

Data Structures

struct  qt2160_data
 

Macros

#define QT2160_VALID_CHIPID   0x11
 
#define QT2160_CMD_CHIPID   0
 
#define QT2160_CMD_CODEVER   1
 
#define QT2160_CMD_GSTAT   2
 
#define QT2160_CMD_KEYS3   3
 
#define QT2160_CMD_KEYS4   4
 
#define QT2160_CMD_SLIDE   5
 
#define QT2160_CMD_GPIOS   6
 
#define QT2160_CMD_SUBVER   7
 
#define QT2160_CMD_CALIBRATE   10
 
#define QT2160_CYCLE_INTERVAL   (2*HZ)
 

Functions

 MODULE_DEVICE_TABLE (i2c, qt2160_idtable)
 
 module_i2c_driver (qt2160_driver)
 
 MODULE_AUTHOR ("Raphael Derosso Pereira <[email protected]>")
 
 MODULE_DESCRIPTION ("Driver for AT42QT2160 Touch Sensor")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define QT2160_CMD_CALIBRATE   10

Definition at line 41 of file qt2160.c.

#define QT2160_CMD_CHIPID   0

Definition at line 33 of file qt2160.c.

#define QT2160_CMD_CODEVER   1

Definition at line 34 of file qt2160.c.

#define QT2160_CMD_GPIOS   6

Definition at line 39 of file qt2160.c.

#define QT2160_CMD_GSTAT   2

Definition at line 35 of file qt2160.c.

#define QT2160_CMD_KEYS3   3

Definition at line 36 of file qt2160.c.

#define QT2160_CMD_KEYS4   4

Definition at line 37 of file qt2160.c.

#define QT2160_CMD_SLIDE   5

Definition at line 38 of file qt2160.c.

#define QT2160_CMD_SUBVER   7

Definition at line 40 of file qt2160.c.

#define QT2160_CYCLE_INTERVAL   (2*HZ)

Definition at line 43 of file qt2160.c.

#define QT2160_VALID_CHIPID   0x11

Definition at line 31 of file qt2160.c.

Function Documentation

MODULE_AUTHOR ( "Raphael Derosso Pereira <[email protected]>"  )
MODULE_DESCRIPTION ( "Driver for AT42QT2160 Touch Sensor"  )
MODULE_DEVICE_TABLE ( i2c  ,
qt2160_idtable   
)
module_i2c_driver ( qt2160_driver  )
MODULE_LICENSE ( "GPL"  )