Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
ad9951.c File Reference
#include <linux/types.h>
#include <linux/mutex.h>
#include <linux/device.h>
#include <linux/spi/spi.h>
#include <linux/slab.h>
#include <linux/sysfs.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  ad9951_config
 
struct  ad9951_state
 

Macros

#define DRV_NAME   "ad9951"
 
#define CFR1   0x0
 
#define CFR2   0x1
 
#define AUTO_OSK   (1)
 
#define OSKEN   (1 << 1)
 
#define LOAD_ARR   (1 << 2)
 
#define AUTO_SYNC   (1 << 7)
 
#define LSB_FST   (1)
 
#define SDIO_IPT   (1 << 1)
 
#define CLR_PHA   (1 << 2)
 
#define SINE_OPT   (1 << 4)
 
#define ACLR_PHA   (1 << 5)
 
#define VCO_RANGE   (1 << 2)
 
#define CRS_OPT   (1 << 1)
 
#define HMANU_SYNC   (1 << 2)
 
#define HSPD_SYNC   (1 << 3)
 

Functions

 module_spi_driver (ad9951_driver)
 
 MODULE_AUTHOR ("Cliff Cai")
 
 MODULE_DESCRIPTION ("Analog Devices ad9951 driver")
 
 MODULE_LICENSE ("GPL v2")
 
 MODULE_ALIAS ("spi:"DRV_NAME)
 

Macro Definition Documentation

#define ACLR_PHA   (1 << 5)

Definition at line 37 of file ad9951.c.

#define AUTO_OSK   (1)

Definition at line 27 of file ad9951.c.

#define AUTO_SYNC   (1 << 7)

Definition at line 31 of file ad9951.c.

#define CFR1   0x0

Definition at line 24 of file ad9951.c.

#define CFR2   0x1

Definition at line 25 of file ad9951.c.

#define CLR_PHA   (1 << 2)

Definition at line 35 of file ad9951.c.

#define CRS_OPT   (1 << 1)

Definition at line 41 of file ad9951.c.

#define DRV_NAME   "ad9951"

Definition at line 22 of file ad9951.c.

#define HMANU_SYNC   (1 << 2)

Definition at line 42 of file ad9951.c.

#define HSPD_SYNC   (1 << 3)

Definition at line 43 of file ad9951.c.

#define LOAD_ARR   (1 << 2)

Definition at line 29 of file ad9951.c.

#define LSB_FST   (1)

Definition at line 33 of file ad9951.c.

#define OSKEN   (1 << 1)

Definition at line 28 of file ad9951.c.

#define SDIO_IPT   (1 << 1)

Definition at line 34 of file ad9951.c.

#define SINE_OPT   (1 << 4)

Definition at line 36 of file ad9951.c.

#define VCO_RANGE   (1 << 2)

Definition at line 39 of file ad9951.c.

Function Documentation

MODULE_ALIAS ( "spi:"  DRV_NAME)
MODULE_AUTHOR ( "Cliff Cai"  )
MODULE_DESCRIPTION ( "Analog Devices ad9951 driver )
MODULE_LICENSE ( "GPL v2 )
module_spi_driver ( ad9951_driver  )