#include <linux/interrupt.h>
#include <linux/fs.h>
#include <linux/device.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/module.h>
#include <linux/iio/iio.h>
#include <linux/iio/sysfs.h>
#include <linux/iio/dac/ad5791.h>
Go to the source code of this file.
#define AD5761_CTRL_LINCOMP |
( |
|
x | ) |
((x) << 6) |
#define AD5780_LINCOMP_0_10 0 |
#define AD5780_LINCOMP_10_20 12 |
#define AD5791_ADDR |
( |
|
addr | ) |
((addr) << 20) |
#define AD5791_ADDR_CLRCODE 3 |
#define AD5791_ADDR_CTRL 2 |
#define AD5791_ADDR_DAC0 1 |
#define AD5791_ADDR_NOOP 0 |
#define AD5791_ADDR_SW_CTRL 4 |
#define AD5791_CHAN |
( |
|
bits, |
|
|
|
shift |
|
) |
| |
Value:{ \
.output = 1, \
.indexed = 1, \
.channel = 0, \
IIO_CHAN_INFO_SCALE_SHARED_BIT | \
IIO_CHAN_INFO_OFFSET_SHARED_BIT, \
.ext_info = ad5791_ext_info, \
}
Definition at line 303 of file ad5791.c.
#define AD5791_CMD_READ (1 << 23) |
#define AD5791_CMD_WRITE (0 << 23) |
#define AD5791_CTRL_BIN2SC (1 << 4) |
#define AD5791_CTRL_DACTRI (1 << 3) |
#define AD5791_CTRL_OPGND (1 << 2) |
#define AD5791_CTRL_RBUF (1 << 1) |
#define AD5791_CTRL_SDODIS (1 << 5) |
#define AD5791_DAC_MSB (1 << 19) |
#define AD5791_DAC_PWRDN_3STATE 1 |
#define AD5791_DAC_PWRDN_6K 0 |
#define AD5791_LINCOMP_0_10 0 |
#define AD5791_LINCOMP_10_12 1 |
#define AD5791_LINCOMP_12_16 2 |
#define AD5791_LINCOMP_16_19 3 |
#define AD5791_LINCOMP_19_20 12 |
#define AD5791_RES_MASK |
( |
|
x | ) |
((1 << (x)) - 1) |
#define AD5791_SWCTRL_CLR (1 << 1) |
#define AD5791_SWCTRL_LDAC (1 << 0) |
#define AD5791_SWCTRL_RESET (1 << 2) |
ad5791_supported_device_ids:
- Enumerator:
ID_AD5760 |
|
ID_AD5780 |
|
ID_AD5781 |
|
ID_AD5791 |
|
Definition at line 100 of file ad5791.c.
MODULE_DESCRIPTION |
( |
"Analog Devices AD5760/AD5780/AD5781/AD5790/AD5791 DAC" |
| ) |
|
MODULE_DEVICE_TABLE |
( |
spi |
, |
|
|
ad5791_id |
|
|
) |
| |
MODULE_LICENSE |
( |
"GPL v2" |
| ) |
|
module_spi_driver |
( |
ad5791_driver |
| ) |
|