#include <linux/interrupt.h>
#include <linux/device.h>
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/sysfs.h>
#include <linux/list.h>
#include <linux/spi/spi.h>
#include <linux/module.h>
#include <linux/iio/iio.h>
#include <linux/iio/sysfs.h>
#include <linux/iio/events.h>
Go to the source code of this file.
#define ADT7310_CMD_CON_READ 0x4 |
#define ADT7310_CMD_READ 0x40 |
#define ADT7310_CMD_REG_MASK 0x28 |
#define ADT7310_CMD_REG_OFFSET 3 |
#define ADT7310_CT_POLARITY 0x4 |
#define ADT7310_DEVICE_ID_MASK 0x7 |
#define ADT7310_EVENT_MODE 0x10 |
#define ADT7310_FAULT_QUEUE_MASK 0x3 |
#define ADT7310_INT_POLARITY 0x8 |
#define ADT7310_MANUFACTORY_ID_MASK 0xF8 |
#define ADT7310_MANUFACTORY_ID_OFFSET 3 |
#define ADT7310_MODE_MASK 0x60 |
#define ADT7310_ONESHOT 0x20 |
#define ADT7310_RESOLUTION 0x80 |
#define ADT7310_STAT_NOT_RDY 0x80 |
#define ADT7310_STAT_T_CRIT 0x40 |
#define ADT7310_STAT_T_HIGH 0x20 |
#define ADT7310_STAT_T_LOW 0x10 |
#define ADT7310_T13_VALUE_FLOAT_MASK 0xF |
#define ADT7310_T13_VALUE_FLOAT_OFFSET 4 |
#define ADT7310_T13_VALUE_OFFSET 3 |
#define ADT7310_T13_VALUE_SIGN 0x1000 |
#define ADT7310_T16_VALUE_FLOAT_MASK 0x7F |
#define ADT7310_T16_VALUE_FLOAT_OFFSET 7 |
#define ADT7310_T16_VALUE_SIGN 0x8000 |
#define ADT7310_T_ALARM_HIGH 6 |
#define ADT7310_T_ALARM_LOW 7 |
#define ADT7310_T_HYST_MASK 0xF |
#define ADT7310_TEMPERATURE 2 |
MODULE_DEVICE_TABLE |
( |
spi |
, |
|
|
adt7310_id |
|
|
) |
| |
MODULE_LICENSE |
( |
"GPL v2" |
| ) |
|
module_spi_driver |
( |
adt7310_driver |
| ) |
|