#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/events.h>
#include <linux/iio/dac/ad5504.h>
Go to the source code of this file.
#define AD5504_ADDR |
( |
|
addr | ) |
((addr) << 12) |
#define AD5504_ADDR_ALL_DAC 5 |
#define AD5504_ADDR_CTRL 7 |
#define AD5504_ADDR_DAC |
( |
|
x | ) |
((x) + 1) |
#define AD5504_ADDR_NOOP 0 |
#define AD5504_CHANNEL |
( |
|
_chan | ) |
|
Value:{ \
.indexed = 1, \
.output = 1, \
.channel = (_chan), \
.scan_type =
IIO_ST(
'u', 12, 16, 0), \
.ext_info = ad5504_ext_info, \
}
Definition at line 261 of file ad5504.c.
#define AD5504_CMD_READ (1 << 15) |
#define AD5504_CMD_WRITE (0 << 15) |
#define AD5504_DAC_PWR |
( |
|
ch | ) |
((ch) << 2) |
#define AD5504_DAC_PWRDN_20K 0 |
#define AD5504_DAC_PWRDN_3STATE 1 |
#define AD5504_DAC_PWRDWN_MODE |
( |
|
mode | ) |
((mode) << 6) |
ad5504_supported_device_ids:
- Enumerator:
-
Definition at line 64 of file ad5504.c.
MODULE_DESCRIPTION |
( |
"Analog Devices AD5501/AD5501 DAC" |
| ) |
|
MODULE_DEVICE_TABLE |
( |
spi |
, |
|
|
ad5504_id |
|
|
) |
| |
MODULE_LICENSE |
( |
"GPL v2" |
| ) |
|
module_spi_driver |
( |
ad5504_driver |
| ) |
|