#include <linux/interrupt.h>
#include <linux/fs.h>
#include <linux/device.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 AD5686_ADDR |
( |
|
x | ) |
((x) << 16) |
#define AD5686_ADDR_ALL_DAC 0xF |
#define AD5686_ADDR_DAC |
( |
|
chan | ) |
(0x1 << (chan)) |
#define AD5686_CMD |
( |
|
x | ) |
((x) << 20) |
#define AD5686_CMD_DAISY_CHAIN_ENABLE 0x8 |
#define AD5686_CMD_INTERNAL_REFER_SETUP 0x7 |
#define AD5686_CMD_LDAC_MASK 0x5 |
#define AD5686_CMD_NOOP 0x0 |
#define AD5686_CMD_POWERDOWN_DAC 0x4 |
#define AD5686_CMD_READBACK_ENABLE 0x9 |
#define AD5686_CMD_RESET 0x6 |
#define AD5686_CMD_UPDATE_DAC_N 0x2 |
#define AD5686_CMD_WRITE_INPUT_N 0x1 |
#define AD5686_CMD_WRITE_INPUT_N_UPDATE_N 0x3 |
#define AD5686_DAC_CHANNELS 4 |
#define AD5686_LDAC_PWRDN_100K 0x2 |
#define AD5686_LDAC_PWRDN_1K 0x1 |
#define AD5686_LDAC_PWRDN_3STATE 0x3 |
#define AD5686_LDAC_PWRDN_NONE 0x0 |
#define AD5868_CHANNEL |
( |
|
chan, |
|
|
|
bits, |
|
|
|
shift |
|
) |
| |
Value:{ \
.indexed = 1, \
.output = 1, \
IIO_CHAN_INFO_SCALE_SHARED_BIT, \
.ext_info = ad5686_ext_info, \
}
Definition at line 279 of file ad5686.c.
ad5686_supported_device_ids:
- Enumerator:
ID_AD5684 |
|
ID_AD5685 |
|
ID_AD5686 |
|
Definition at line 90 of file ad5686.c.
MODULE_DESCRIPTION |
( |
"Analog Devices AD5686/85/84 DAC" |
| ) |
|
MODULE_DEVICE_TABLE |
( |
spi |
, |
|
|
ad5686_id |
|
|
) |
| |
MODULE_LICENSE |
( |
"GPL v2" |
| ) |
|
module_spi_driver |
( |
ad5686_driver |
| ) |
|