#include <linux/i2c.h>
#include <linux/interrupt.h>
#include <linux/input.h>
#include <linux/gpio.h>
#include <linux/delay.h>
#include <linux/input/as5011.h>
#include <linux/slab.h>
#include <linux/module.h>
Go to the source code of this file.
#define AS5011_CTRL1 0x76 |
#define AS5011_CTRL1_DATA_VALID 0x01 |
#define AS5011_CTRL1_EXT_CLK_EN 0x04 |
#define AS5011_CTRL1_INT_ACT_EN 0x08 |
#define AS5011_CTRL1_INT_WUP_EN 0x10 |
#define AS5011_CTRL1_LP_ACTIVE 0x40 |
#define AS5011_CTRL1_LP_CONTINUE 0x20 |
#define AS5011_CTRL1_LP_PULSED 0x80 |
#define AS5011_CTRL1_SOFT_RST 0x02 |
#define AS5011_CTRL2 0x75 |
#define AS5011_CTRL2_EXT_SAMPLE_EN 0x08 |
#define AS5011_CTRL2_INV_SPINNING 0x02 |
#define AS5011_CTRL2_RC_BIAS_ON 0x04 |
#define AS5011_MAX_AXIS 80 |
#define AS5011_MIN_AXIS (-80) |
#define AS5011_X_REG 0x41 |
#define AS5011_X_RES_INT 0x51 |
#define AS5011_Y_REG 0x42 |
#define AS5011_Y_RES_INT 0x52 |
#define DRIVER_DESC "Driver for Austria Microsystems AS5011 joystick" |
#define MODULE_DEVICE_ALIAS "as5011" |
MODULE_DEVICE_TABLE |
( |
i2c |
, |
|
|
as5011_id |
|
|
) |
| |
module_i2c_driver |
( |
as5011_driver |
| ) |
|