Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
ad9852.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  ad9852_config
 
struct  ad9852_state
 

Macros

#define DRV_NAME   "ad9852"
 
#define addr_phaad1   0x0
 
#define addr_phaad2   0x1
 
#define addr_fretu1   0x2
 
#define addr_fretu2   0x3
 
#define addr_delfre   0x4
 
#define addr_updclk   0x5
 
#define addr_ramclk   0x6
 
#define addr_contrl   0x7
 
#define addr_optskm   0x8
 
#define addr_optskr   0xa
 
#define addr_dacctl   0xb
 
#define COMPPD   (1 << 4)
 
#define REFMULT2   (1 << 2)
 
#define BYPPLL   (1 << 5)
 
#define PLLRANG   (1 << 6)
 
#define IEUPCLK   (1)
 
#define OSKEN   (1 << 5)
 
#define read_bit   (1 << 7)
 

Functions

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

Macro Definition Documentation

#define addr_contrl   0x7

Definition at line 31 of file ad9852.c.

#define addr_dacctl   0xb

Definition at line 34 of file ad9852.c.

#define addr_delfre   0x4

Definition at line 28 of file ad9852.c.

#define addr_fretu1   0x2

Definition at line 26 of file ad9852.c.

#define addr_fretu2   0x3

Definition at line 27 of file ad9852.c.

#define addr_optskm   0x8

Definition at line 32 of file ad9852.c.

#define addr_optskr   0xa

Definition at line 33 of file ad9852.c.

#define addr_phaad1   0x0

Definition at line 24 of file ad9852.c.

#define addr_phaad2   0x1

Definition at line 25 of file ad9852.c.

#define addr_ramclk   0x6

Definition at line 30 of file ad9852.c.

#define addr_updclk   0x5

Definition at line 29 of file ad9852.c.

#define BYPPLL   (1 << 5)

Definition at line 38 of file ad9852.c.

#define COMPPD   (1 << 4)

Definition at line 36 of file ad9852.c.

#define DRV_NAME   "ad9852"

Definition at line 22 of file ad9852.c.

#define IEUPCLK   (1)

Definition at line 40 of file ad9852.c.

#define OSKEN   (1 << 5)

Definition at line 41 of file ad9852.c.

#define PLLRANG   (1 << 6)

Definition at line 39 of file ad9852.c.

#define read_bit   (1 << 7)

Definition at line 43 of file ad9852.c.

#define REFMULT2   (1 << 2)

Definition at line 37 of file ad9852.c.

Function Documentation

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