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

Macros

#define DRV_NAME   "ad9910"
 
#define CFR1   0x0
 
#define CFR2   0x1
 
#define CFR3   0x2
 
#define AUXDAC   0x3
 
#define IOUPD   0x4
 
#define FTW   0x7
 
#define POW   0x8
 
#define ASF   0x9
 
#define MULTC   0x0A
 
#define DIG_RAMPL   0x0B
 
#define DIG_RAMPS   0x0C
 
#define DIG_RAMPR   0x0D
 
#define SIN_TONEP0   0x0E
 
#define SIN_TONEP1   0x0F
 
#define SIN_TONEP2   0x10
 
#define SIN_TONEP3   0x11
 
#define SIN_TONEP4   0x12
 
#define SIN_TONEP5   0x13
 
#define SIN_TONEP6   0x14
 
#define SIN_TONEP7   0x15
 
#define RAM_ENABLE   (1 << 7)
 
#define MANUAL_OSK   (1 << 7)
 
#define INVSIC   (1 << 6)
 
#define DDS_SINEOP   (1)
 
#define AUTO_OSK   (1)
 
#define OSKEN   (1 << 1)
 
#define LOAD_ARR   (1 << 2)
 
#define CLR_PHA   (1 << 3)
 
#define CLR_DIG   (1 << 4)
 
#define ACLR_PHA   (1 << 5)
 
#define ACLR_DIG   (1 << 6)
 
#define LOAD_LRR   (1 << 7)
 
#define LSB_FST   (1)
 
#define SDIO_IPT   (1 << 1)
 
#define EXT_PWD   (1 << 3)
 
#define ADAC_PWD   (1 << 4)
 
#define REFCLK_PWD   (1 << 5)
 
#define DAC_PWD   (1 << 6)
 
#define DIG_PWD   (1 << 7)
 
#define ENA_AMP   (1)
 
#define READ_FTW   (1)
 
#define DIGR_LOW   (1 << 1)
 
#define DIGR_HIGH   (1 << 2)
 
#define DIGR_ENA   (1 << 3)
 
#define SYNCCLK_ENA   (1 << 6)
 
#define ITER_IOUPD   (1 << 7)
 
#define TX_ENA   (1 << 1)
 
#define PDCLK_INV   (1 << 2)
 
#define PDCLK_ENB   (1 << 3)
 
#define PARA_ENA   (1 << 4)
 
#define SYNC_DIS   (1 << 5)
 
#define DATA_ASS   (1 << 6)
 
#define MATCH_ENA   (1 << 7)
 
#define PLL_ENA   (1)
 
#define PFD_RST   (1 << 2)
 
#define REFCLK_RST   (1 << 6)
 
#define REFCLK_BYP   (1 << 7)
 

Functions

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

Macro Definition Documentation

#define ACLR_DIG   (1 << 6)

Definition at line 58 of file ad9910.c.

#define ACLR_PHA   (1 << 5)

Definition at line 57 of file ad9910.c.

#define ADAC_PWD   (1 << 4)

Definition at line 64 of file ad9910.c.

#define ASF   0x9

Definition at line 32 of file ad9910.c.

#define AUTO_OSK   (1)

Definition at line 52 of file ad9910.c.

#define AUXDAC   0x3

Definition at line 28 of file ad9910.c.

#define CFR1   0x0

Definition at line 24 of file ad9910.c.

#define CFR2   0x1

Definition at line 25 of file ad9910.c.

#define CFR3   0x2

Definition at line 26 of file ad9910.c.

#define CLR_DIG   (1 << 4)

Definition at line 56 of file ad9910.c.

#define CLR_PHA   (1 << 3)

Definition at line 55 of file ad9910.c.

#define DAC_PWD   (1 << 6)

Definition at line 66 of file ad9910.c.

#define DATA_ASS   (1 << 6)

Definition at line 83 of file ad9910.c.

#define DDS_SINEOP   (1)

Definition at line 50 of file ad9910.c.

#define DIG_PWD   (1 << 7)

Definition at line 67 of file ad9910.c.

#define DIG_RAMPL   0x0B

Definition at line 34 of file ad9910.c.

#define DIG_RAMPR   0x0D

Definition at line 36 of file ad9910.c.

#define DIG_RAMPS   0x0C

Definition at line 35 of file ad9910.c.

#define DIGR_ENA   (1 << 3)

Definition at line 73 of file ad9910.c.

#define DIGR_HIGH   (1 << 2)

Definition at line 72 of file ad9910.c.

#define DIGR_LOW   (1 << 1)

Definition at line 71 of file ad9910.c.

#define DRV_NAME   "ad9910"

Definition at line 22 of file ad9910.c.

#define ENA_AMP   (1)

Definition at line 69 of file ad9910.c.

#define EXT_PWD   (1 << 3)

Definition at line 63 of file ad9910.c.

#define FTW   0x7

Definition at line 30 of file ad9910.c.

#define INVSIC   (1 << 6)

Definition at line 49 of file ad9910.c.

#define IOUPD   0x4

Definition at line 29 of file ad9910.c.

#define ITER_IOUPD   (1 << 7)

Definition at line 75 of file ad9910.c.

#define LOAD_ARR   (1 << 2)

Definition at line 54 of file ad9910.c.

#define LOAD_LRR   (1 << 7)

Definition at line 59 of file ad9910.c.

#define LSB_FST   (1)

Definition at line 61 of file ad9910.c.

#define MANUAL_OSK   (1 << 7)

Definition at line 48 of file ad9910.c.

#define MATCH_ENA   (1 << 7)

Definition at line 84 of file ad9910.c.

#define MULTC   0x0A

Definition at line 33 of file ad9910.c.

#define OSKEN   (1 << 1)

Definition at line 53 of file ad9910.c.

#define PARA_ENA   (1 << 4)

Definition at line 81 of file ad9910.c.

#define PDCLK_ENB   (1 << 3)

Definition at line 79 of file ad9910.c.

#define PDCLK_INV   (1 << 2)

Definition at line 78 of file ad9910.c.

#define PFD_RST   (1 << 2)

Definition at line 87 of file ad9910.c.

#define PLL_ENA   (1)

Definition at line 86 of file ad9910.c.

#define POW   0x8

Definition at line 31 of file ad9910.c.

#define RAM_ENABLE   (1 << 7)

Definition at line 46 of file ad9910.c.

#define READ_FTW   (1)

Definition at line 70 of file ad9910.c.

#define REFCLK_BYP   (1 << 7)

Definition at line 89 of file ad9910.c.

#define REFCLK_PWD   (1 << 5)

Definition at line 65 of file ad9910.c.

#define REFCLK_RST   (1 << 6)

Definition at line 88 of file ad9910.c.

#define SDIO_IPT   (1 << 1)

Definition at line 62 of file ad9910.c.

#define SIN_TONEP0   0x0E

Definition at line 37 of file ad9910.c.

#define SIN_TONEP1   0x0F

Definition at line 38 of file ad9910.c.

#define SIN_TONEP2   0x10

Definition at line 39 of file ad9910.c.

#define SIN_TONEP3   0x11

Definition at line 40 of file ad9910.c.

#define SIN_TONEP4   0x12

Definition at line 41 of file ad9910.c.

#define SIN_TONEP5   0x13

Definition at line 42 of file ad9910.c.

#define SIN_TONEP6   0x14

Definition at line 43 of file ad9910.c.

#define SIN_TONEP7   0x15

Definition at line 44 of file ad9910.c.

#define SYNC_DIS   (1 << 5)

Definition at line 82 of file ad9910.c.

#define SYNCCLK_ENA   (1 << 6)

Definition at line 74 of file ad9910.c.

#define TX_ENA   (1 << 1)

Definition at line 77 of file ad9910.c.

Function Documentation

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