#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 AD5764_CHANNEL |
( |
|
_chan, |
|
|
|
_bits |
|
) |
| |
Value:{ \
.indexed = 1, \
.output = 1, \
.channel = (_chan), \
IIO_CHAN_INFO_OFFSET_SHARED_BIT | \
IIO_CHAN_INFO_SCALE_SEPARATE_BIT | \
IIO_CHAN_INFO_CALIBSCALE_SEPARATE_BIT | \
IIO_CHAN_INFO_CALIBBIAS_SEPARATE_BIT, \
.scan_type =
IIO_ST(
'u', (_bits), 16, 16 - (_bits)) \
}
Definition at line 75 of file ad5764.c.
#define AD5764_NUM_CHANNELS 4 |
#define AD5764_REG_COARSE_GAIN |
( |
|
x | ) |
((3 << 3) | (x)) |
#define AD5764_REG_DATA |
( |
|
x | ) |
((2 << 3) | (x)) |
#define AD5764_REG_FINE_GAIN |
( |
|
x | ) |
((4 << 3) | (x)) |
#define AD5764_REG_OFFSET |
( |
|
x | ) |
((5 << 3) | (x)) |
#define AD5764_REG_SF_CLEAR 0x4 |
#define AD5764_REG_SF_CONFIG 0x1 |
#define AD5764_REG_SF_LOAD 0x5 |
#define AD5764_REG_SF_NOP 0x0 |
#define DECLARE_AD5764_CHANNELS |
( |
|
_name, |
|
|
|
_bits |
|
) |
| |
Value:
AD5764_CHANNEL(0, (_bits)), \
AD5764_CHANNEL(1, (_bits)), \
AD5764_CHANNEL(2, (_bits)), \
AD5764_CHANNEL(3, (_bits)), \
};
Definition at line 89 of file ad5764.c.
- Enumerator:
ID_AD5744 |
|
ID_AD5744R |
|
ID_AD5764 |
|
ID_AD5764R |
|
Definition at line 68 of file ad5764.c.
MODULE_DESCRIPTION |
( |
"Analog Devices AD5744/AD5744R/AD5764/AD5764R DAC" |
| ) |
|
MODULE_DEVICE_TABLE |
( |
spi |
, |
|
|
ad5764_ids |
|
|
) |
| |
MODULE_LICENSE |
( |
"GPL v2" |
| ) |
|
module_spi_driver |
( |
ad5764_driver |
| ) |
|