#include <linux/module.h>
#include <linux/init.h>
#include <linux/i2c.h>
#include <linux/slab.h>
#include <linux/types.h>
#include <linux/iio/iio.h>
#include <linux/iio/sysfs.h>
Go to the source code of this file.
#define HMC5843_CHANNEL |
( |
|
axis, |
|
|
|
add |
|
) |
| |
Value:{ \
.modified = 1, \
.channel2 = IIO_MOD_##axis, \
IIO_CHAN_INFO_SCALE_SHARED_BIT, \
}
Definition at line 562 of file hmc5843.c.
#define HMC5843_CONFIG_REG_A 0x00 |
#define HMC5843_CONFIG_REG_B 0x01 |
#define HMC5843_DATA_OUT_X_LSB_REG 0x04 |
#define HMC5843_DATA_OUT_X_MSB_REG 0x03 |
#define HMC5843_DATA_OUT_Y_LSB_REG 0x06 |
#define HMC5843_DATA_OUT_Y_MSB_REG 0x05 |
#define HMC5843_DATA_OUT_Z_LSB_REG 0x08 |
#define HMC5843_DATA_OUT_Z_MSB_REG 0x07 |
#define HMC5843_DATA_OUTPUT_LOCK 0x02 |
#define HMC5843_DATA_READY 0x01 |
#define HMC5843_I2C_ADDRESS 0x1E |
#define HMC5843_ID_REG_A 0x0A |
#define HMC5843_ID_REG_B 0x0B |
#define HMC5843_ID_REG_C 0x0C |
#define HMC5843_ID_REG_LENGTH 0x03 |
#define HMC5843_ID_STRING "H43" |
#define HMC5843_MEAS_CONF_MASK 0x03 |
#define HMC5843_MEAS_CONF_NEGATIVE_BIAS 0x02 |
#define HMC5843_MEAS_CONF_NORMAL 0x00 |
#define HMC5843_MEAS_CONF_NOT_USED 0x03 |
#define HMC5843_MEAS_CONF_POSITIVE_BIAS 0x01 |
#define HMC5843_MODE_CONVERSION_CONTINUOUS 0x00 |
#define HMC5843_MODE_CONVERSION_SINGLE 0x01 |
#define HMC5843_MODE_IDLE 0x02 |
#define HMC5843_MODE_MASK 0x03 |
#define HMC5843_MODE_REG 0x02 |
#define HMC5843_MODE_SLEEP 0x03 |
#define HMC5843_PM_OPS NULL |
#define HMC5843_RANGE_GAIN_DEFAULT 0x01 |
#define HMC5843_RANGE_GAIN_MAX 0x07 |
#define HMC5843_RANGE_GAIN_OFFSET 0x05 |
#define HMC5843_RATE_BITMASK 0x1C |
#define HMC5843_RATE_NOT_USED 0x07 |
#define HMC5843_RATE_OFFSET 0x02 |
#define HMC5843_STATUS_REG 0x09 |
#define HMC5843_VOLTAGE_REGULATOR_ENABLED 0x04 |
#define HMC5883_DATA_OUT_Y_LSB_REG 0x08 |
#define HMC5883_DATA_OUT_Y_MSB_REG 0x07 |
#define HMC5883_DATA_OUT_Z_LSB_REG 0x06 |
#define HMC5883_DATA_OUT_Z_MSB_REG 0x05 |
- Enumerator:
HMC5843_ID |
|
HMC5883_ID |
|
HMC5883L_ID |
|
Definition at line 49 of file hmc5843.c.
MODULE_DESCRIPTION |
( |
"HMC5843/5883/5883L driver" |
| ) |
|
MODULE_DEVICE_TABLE |
( |
i2c |
, |
|
|
hmc5843_id |
|
|
) |
| |
module_i2c_driver |
( |
hmc5843_driver |
| ) |
|