#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/i2c.h>
#include <linux/input.h>
#include <linux/input-polldev.h>
#include <linux/interrupt.h>
#include <linux/delay.h>
#include <linux/slab.h>
#include <linux/pm.h>
#include <linux/pm_runtime.h>
#include <linux/bma150.h>
Go to the source code of this file.
#define ABSMAX_ACC_VAL 0x01FF |
#define BMA150_ADV_INT_EN_MSK 0x40 |
#define BMA150_ADV_INT_EN_POS 6 |
#define BMA150_ANY_MOTION_DUR_MSK 0xC0 |
#define BMA150_ANY_MOTION_DUR_POS 6 |
#define BMA150_ANY_MOTION_EN_MSK 0x40 |
#define BMA150_ANY_MOTION_EN_POS 6 |
#define BMA150_BANDWIDTH_MSK 0x07 |
#define BMA150_BANDWIDTH_POS 0 |
#define BMA150_BW_100HZ 2 |
#define BMA150_BW_1500HZ 6 |
#define BMA150_BW_190HZ 3 |
#define BMA150_BW_375HZ 4 |
#define BMA150_BW_750HZ 5 |
#define BMA150_CFG_0_REG 0x0C |
#define BMA150_CFG_1_REG 0x0D |
#define BMA150_CFG_2_REG 0x0E |
#define BMA150_CFG_3_REG 0x0F |
#define BMA150_CFG_4_REG 0x10 |
#define BMA150_CFG_5_REG 0x11 |
#define BMA150_CTRL_0_REG 0x0A |
#define BMA150_CTRL_1_REG 0x0B |
#define BMA150_CTRL_2_REG 0x14 |
#define BMA150_CTRL_3_REG 0x15 |
#define BMA150_DATA_0_REG 0x00 |
#define BMA150_DATA_1_REG 0x01 |
#define BMA150_DATA_2_REG 0x02 |
#define BMA150_HIGH_G_EN_MSK 0x02 |
#define BMA150_HIGH_G_EN_POS 1 |
#define BMA150_HIGH_G_HYST_MSK 0x38 |
#define BMA150_HIGH_G_HYST_POS 3 |
#define BMA150_LOW_G_EN_MSK 0x01 |
#define BMA150_LOW_G_EN_POS 0 |
#define BMA150_LOW_G_HYST_MSK 0x07 |
#define BMA150_LOW_G_HYST_POS 0 |
#define BMA150_MODE_NORMAL 0 |
#define BMA150_MODE_SLEEP 2 |
#define BMA150_MODE_WAKE_UP 3 |
#define BMA150_POLL_INTERVAL 10 |
#define BMA150_POLL_MAX 200 |
#define BMA150_POLL_MIN 0 |
#define BMA150_RANGE_2G 0 |
#define BMA150_RANGE_4G 1 |
#define BMA150_RANGE_8G 2 |
#define BMA150_RANGE_MSK 0x18 |
#define BMA150_RANGE_POS 3 |
#define BMA150_SLEEP_MSK 0x01 |
#define BMA150_SLEEP_POS 0 |
#define BMA150_SW_RES_MSK 0x02 |
#define BMA150_SW_RES_POS 1 |
#define BMA150_WAKE_UP_MSK 0x01 |
#define BMA150_WAKE_UP_POS 0 |
#define BMA150_XYZ_DATA_SIZE 6 |
MODULE_DESCRIPTION |
( |
"BMA150 driver" |
| ) |
|
MODULE_DEVICE_TABLE |
( |
i2c |
, |
|
|
bma150_id |
|
|
) |
| |
module_i2c_driver |
( |
bma150_driver |
| ) |
|