|
Linux Kernel
3.7.1
|
#include <linux/module.h>#include <linux/init.h>#include <linux/i2c.h>#include <linux/interrupt.h>#include <linux/input.h>#include <linux/slab.h>#include <linux/bitops.h>Go to the source code of this file.
Data Structures | |
| struct | max11801_data |
Macros | |
| #define | GENERNAL_STATUS_REG 0x00 |
| #define | GENERNAL_CONF_REG 0x01 |
| #define | MESURE_RES_CONF_REG 0x02 |
| #define | MESURE_AVER_CONF_REG 0x03 |
| #define | ADC_SAMPLE_TIME_CONF_REG 0x04 |
| #define | PANEL_SETUPTIME_CONF_REG 0x05 |
| #define | DELAY_CONVERSION_CONF_REG 0x06 |
| #define | TOUCH_DETECT_PULLUP_CONF_REG 0x07 |
| #define | AUTO_MODE_TIME_CONF_REG 0x08 /* only for max11800/max11801 */ |
| #define | APERTURE_CONF_REG 0x09 /* only for max11800/max11801 */ |
| #define | AUX_MESURE_CONF_REG 0x0a |
| #define | OP_MODE_CONF_REG 0x0b |
| #define | FIFO_RD_CMD (0x50 << 1) |
| #define | MAX11801_FIFO_INT (1 << 2) |
| #define | MAX11801_FIFO_OVERFLOW (1 << 3) |
| #define | XY_BUFSIZE 4 |
| #define | XY_BUF_OFFSET 4 |
| #define | MAX11801_MAX_X 0xfff |
| #define | MAX11801_MAX_Y 0xfff |
| #define | MEASURE_TAG_OFFSET 2 |
| #define | MEASURE_TAG_MASK (3 << MEASURE_TAG_OFFSET) |
| #define | EVENT_TAG_OFFSET 0 |
| #define | EVENT_TAG_MASK (3 << EVENT_TAG_OFFSET) |
| #define | MEASURE_X_TAG (0 << MEASURE_TAG_OFFSET) |
| #define | MEASURE_Y_TAG (1 << MEASURE_TAG_OFFSET) |
Enumerations | |
| enum | { EVENT_INIT, EVENT_MIDDLE, EVENT_RELEASE, EVENT_FIFO_END } |
Functions | |
| MODULE_DEVICE_TABLE (i2c, max11801_ts_id) | |
| module_i2c_driver (max11801_ts_driver) | |
| MODULE_AUTHOR ("Zhang Jiejing <[email protected]>") | |
| MODULE_DESCRIPTION ("Touchscreen driver for MAXI MAX11801 controller") | |
| MODULE_LICENSE ("GPL") | |
| #define ADC_SAMPLE_TIME_CONF_REG 0x04 |
Definition at line 48 of file max11801_ts.c.
| #define APERTURE_CONF_REG 0x09 /* only for max11800/max11801 */ |
Definition at line 53 of file max11801_ts.c.
| #define AUTO_MODE_TIME_CONF_REG 0x08 /* only for max11800/max11801 */ |
Definition at line 52 of file max11801_ts.c.
| #define AUX_MESURE_CONF_REG 0x0a |
Definition at line 54 of file max11801_ts.c.
| #define DELAY_CONVERSION_CONF_REG 0x06 |
Definition at line 50 of file max11801_ts.c.
| #define EVENT_TAG_MASK (3 << EVENT_TAG_OFFSET) |
Definition at line 71 of file max11801_ts.c.
| #define EVENT_TAG_OFFSET 0 |
Definition at line 70 of file max11801_ts.c.
| #define FIFO_RD_CMD (0x50 << 1) |
Definition at line 58 of file max11801_ts.c.
| #define GENERNAL_CONF_REG 0x01 |
Definition at line 45 of file max11801_ts.c.
| #define GENERNAL_STATUS_REG 0x00 |
Definition at line 44 of file max11801_ts.c.
| #define MAX11801_FIFO_INT (1 << 2) |
Definition at line 59 of file max11801_ts.c.
| #define MAX11801_FIFO_OVERFLOW (1 << 3) |
Definition at line 60 of file max11801_ts.c.
| #define MAX11801_MAX_X 0xfff |
Definition at line 65 of file max11801_ts.c.
| #define MAX11801_MAX_Y 0xfff |
Definition at line 66 of file max11801_ts.c.
| #define MEASURE_TAG_MASK (3 << MEASURE_TAG_OFFSET) |
Definition at line 69 of file max11801_ts.c.
| #define MEASURE_TAG_OFFSET 2 |
Definition at line 68 of file max11801_ts.c.
| #define MEASURE_X_TAG (0 << MEASURE_TAG_OFFSET) |
Definition at line 72 of file max11801_ts.c.
| #define MEASURE_Y_TAG (1 << MEASURE_TAG_OFFSET) |
Definition at line 73 of file max11801_ts.c.
| #define MESURE_AVER_CONF_REG 0x03 |
Definition at line 47 of file max11801_ts.c.
| #define MESURE_RES_CONF_REG 0x02 |
Definition at line 46 of file max11801_ts.c.
| #define OP_MODE_CONF_REG 0x0b |
Definition at line 55 of file max11801_ts.c.
| #define PANEL_SETUPTIME_CONF_REG 0x05 |
Definition at line 49 of file max11801_ts.c.
| #define TOUCH_DETECT_PULLUP_CONF_REG 0x07 |
Definition at line 51 of file max11801_ts.c.
| #define XY_BUF_OFFSET 4 |
Definition at line 63 of file max11801_ts.c.
| #define XY_BUFSIZE 4 |
Definition at line 62 of file max11801_ts.c.
| anonymous enum |
Definition at line 76 of file max11801_ts.c.
| MODULE_AUTHOR | ( | "Zhang Jiejing <[email protected]>" | ) |
| MODULE_DESCRIPTION | ( | "Touchscreen driver for MAXI MAX11801 controller" | ) |
| MODULE_DEVICE_TABLE | ( | i2c | , |
| max11801_ts_id | |||
| ) |
| module_i2c_driver | ( | max11801_ts_driver | ) |
| MODULE_LICENSE | ( | "GPL" | ) |
1.8.2