#include <linux/device.h>
#include <linux/err.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/spi/spi.h>
#include <linux/slab.h>
#include <linux/sysfs.h>
#include <linux/regulator/consumer.h>
#include <linux/iio/iio.h>
#include <linux/iio/sysfs.h>
Go to the source code of this file.
#define AD5360_ADDR |
( |
|
x | ) |
((x) << 16) |
#define AD5360_CHAN_ADDR |
( |
|
chan | ) |
((chan) + 0x8) |
#define AD5360_CHANNEL |
( |
|
bits | ) |
|
Value:{ \
.indexed = 1, \
.output = 1, \
IIO_CHAN_INFO_SCALE_SEPARATE_BIT | \
IIO_CHAN_INFO_OFFSET_SEPARATE_BIT | \
IIO_CHAN_INFO_CALIBSCALE_SEPARATE_BIT | \
IIO_CHAN_INFO_CALIBBIAS_SEPARATE_BIT, \
}
Definition at line 101 of file ad5360.c.
#define AD5360_CMD |
( |
|
x | ) |
((x) << 22) |
#define AD5360_CMD_SPECIAL_FUNCTION 0x0 |
#define AD5360_CMD_WRITE_DATA 0x3 |
#define AD5360_CMD_WRITE_GAIN 0x1 |
#define AD5360_CMD_WRITE_OFFSET 0x2 |
#define AD5360_READBACK_ADDR |
( |
|
x | ) |
((x) << 7) |
#define AD5360_READBACK_GAIN 0x3 |
#define AD5360_READBACK_OFFSET 0x2 |
#define AD5360_READBACK_SF 0x4 |
#define AD5360_READBACK_TYPE |
( |
|
x | ) |
((x) << 13) |
#define AD5360_READBACK_X1A 0x0 |
#define AD5360_READBACK_X1B 0x1 |
#define AD5360_REG_SF_CTRL 0x1 |
#define AD5360_REG_SF_NOP 0x0 |
#define AD5360_REG_SF_OFS |
( |
|
x | ) |
(0x2 + (x)) |
#define AD5360_REG_SF_READBACK 0x5 |
#define AD5360_SF_CTRL_PWR_DOWN BIT(0) |
- Enumerator:
ID_AD5360 |
|
ID_AD5361 |
|
ID_AD5362 |
|
ID_AD5363 |
|
ID_AD5370 |
|
ID_AD5371 |
|
ID_AD5372 |
|
ID_AD5373 |
|
Definition at line 90 of file ad5360.c.
MODULE_DESCRIPTION |
( |
"Analog Devices AD5360/61/62/63/70/71/72/73 DAC" |
| ) |
|
MODULE_DEVICE_TABLE |
( |
spi |
, |
|
|
ad5360_ids |
|
|
) |
| |
MODULE_LICENSE |
( |
"GPL v2" |
| ) |
|
module_spi_driver |
( |
ad5360_driver |
| ) |
|