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

Go to the source code of this file.

Data Structures

struct  qt1070_data
 

Macros

#define CHIP_ID   0x00
 
#define QT1070_CHIP_ID   0x2E
 
#define FW_VERSION   0x01
 
#define QT1070_FW_VERSION   0x15
 
#define DET_STATUS   0x02
 
#define KEY_STATUS   0x03
 
#define CALIBRATE_CMD   0x38
 
#define QT1070_CAL_TIME   200
 
#define RESET   0x39
 
#define QT1070_RESET_TIME   255
 

Functions

 MODULE_DEVICE_TABLE (i2c, qt1070_id)
 
 module_i2c_driver (qt1070_driver)
 
 MODULE_AUTHOR ("Bo Shen <[email protected]>")
 
 MODULE_DESCRIPTION ("Driver for AT42QT1070 QTouch sensor")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define CALIBRATE_CMD   0x38

Definition at line 49 of file qt1070.c.

#define CHIP_ID   0x00

Definition at line 38 of file qt1070.c.

#define DET_STATUS   0x02

Definition at line 44 of file qt1070.c.

#define FW_VERSION   0x01

Definition at line 41 of file qt1070.c.

#define KEY_STATUS   0x03

Definition at line 46 of file qt1070.c.

#define QT1070_CAL_TIME   200

Definition at line 50 of file qt1070.c.

#define QT1070_CHIP_ID   0x2E

Definition at line 39 of file qt1070.c.

#define QT1070_FW_VERSION   0x15

Definition at line 42 of file qt1070.c.

#define QT1070_RESET_TIME   255

Definition at line 54 of file qt1070.c.

#define RESET   0x39

Definition at line 53 of file qt1070.c.

Function Documentation

MODULE_AUTHOR ( "Bo Shen <[email protected]>"  )
MODULE_DESCRIPTION ( "Driver for AT42QT1070 QTouch sensor"  )
MODULE_DEVICE_TABLE ( i2c  ,
qt1070_id   
)
module_i2c_driver ( qt1070_driver  )
MODULE_LICENSE ( "GPL"  )