Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
ad5446.c File Reference
#include <linux/interrupt.h>
#include <linux/workqueue.h>
#include <linux/device.h>
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/sysfs.h>
#include <linux/list.h>
#include <linux/spi/spi.h>
#include <linux/i2c.h>
#include <linux/regulator/consumer.h>
#include <linux/err.h>
#include <linux/module.h>
#include <linux/iio/iio.h>
#include <linux/iio/sysfs.h>

Go to the source code of this file.

Data Structures

struct  ad5446_state
 
struct  ad5446_chip_info
 

Macros

#define MODE_PWRDWN_1k   0x1
 
#define MODE_PWRDWN_100k   0x2
 
#define MODE_PWRDWN_TRISTATE   0x3
 
#define _AD5446_CHANNEL(bits, storage, shift, ext)
 
#define AD5446_CHANNEL(bits, storage, shift)   _AD5446_CHANNEL(bits, storage, shift, NULL)
 
#define AD5446_CHANNEL_POWERDOWN(bits, storage, shift)   _AD5446_CHANNEL(bits, storage, shift, ad5446_ext_info_powerdown)
 

Functions

 module_init (ad5446_init)
 
 module_exit (ad5446_exit)
 
 MODULE_AUTHOR ("Michael Hennerich <[email protected]>")
 
 MODULE_DESCRIPTION ("Analog Devices AD5444/AD5446 DAC")
 
 MODULE_LICENSE ("GPL v2")
 

Macro Definition Documentation

#define _AD5446_CHANNEL (   bits,
  storage,
  shift,
  ext 
)
Value:
{ \
.type = IIO_VOLTAGE, \
.indexed = 1, \
.output = 1, \
.channel = 0, \
IIO_CHAN_INFO_SCALE_SHARED_BIT, \
.scan_type = IIO_ST('u', (bits), (storage), (shift)), \
.ext_info = (ext), \
}

Definition at line 141 of file ad5446.c.

#define AD5446_CHANNEL (   bits,
  storage,
  shift 
)    _AD5446_CHANNEL(bits, storage, shift, NULL)

Definition at line 152 of file ad5446.c.

#define AD5446_CHANNEL_POWERDOWN (   bits,
  storage,
  shift 
)    _AD5446_CHANNEL(bits, storage, shift, ad5446_ext_info_powerdown)

Definition at line 155 of file ad5446.c.

#define MODE_PWRDWN_100k   0x2

Definition at line 26 of file ad5446.c.

#define MODE_PWRDWN_1k   0x1

Definition at line 25 of file ad5446.c.

#define MODE_PWRDWN_TRISTATE   0x3

Definition at line 27 of file ad5446.c.

Function Documentation

MODULE_AUTHOR ( "Michael Hennerich <[email protected]>"  )
MODULE_DESCRIPTION ( "Analog Devices AD5444/AD5446 DAC )
module_exit ( ad5446_exit  )
module_init ( ad5446_init  )
MODULE_LICENSE ( "GPL v2 )