Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
ad9832.h File Reference

Go to the source code of this file.

Data Structures

struct  ad9832_state
 
struct  ad9832_platform_data
 

Macros

#define AD9832_FREQ0LL   0x0
 
#define AD9832_FREQ0HL   0x1
 
#define AD9832_FREQ0LM   0x2
 
#define AD9832_FREQ0HM   0x3
 
#define AD9832_FREQ1LL   0x4
 
#define AD9832_FREQ1HL   0x5
 
#define AD9832_FREQ1LM   0x6
 
#define AD9832_FREQ1HM   0x7
 
#define AD9832_PHASE0L   0x8
 
#define AD9832_PHASE0H   0x9
 
#define AD9832_PHASE1L   0xA
 
#define AD9832_PHASE1H   0xB
 
#define AD9832_PHASE2L   0xC
 
#define AD9832_PHASE2H   0xD
 
#define AD9832_PHASE3L   0xE
 
#define AD9832_PHASE3H   0xF
 
#define AD9832_PHASE_SYM   0x10
 
#define AD9832_FREQ_SYM   0x11
 
#define AD9832_PINCTRL_EN   0x12
 
#define AD9832_OUTPUT_EN   0x13
 
#define AD9832_CMD_PHA8BITSW   0x1
 
#define AD9832_CMD_PHA16BITSW   0x0
 
#define AD9832_CMD_FRE8BITSW   0x3
 
#define AD9832_CMD_FRE16BITSW   0x2
 
#define AD9832_CMD_FPSELECT   0x6
 
#define AD9832_CMD_SYNCSELSRC   0x8
 
#define AD9832_CMD_SLEEPRESCLR   0xC
 
#define AD9832_FREQ   (1 << 11)
 
#define AD9832_PHASE(x)   (((x) & 3) << 9)
 
#define AD9832_SYNC   (1 << 13)
 
#define AD9832_SELSRC   (1 << 12)
 
#define AD9832_SLEEP   (1 << 13)
 
#define AD9832_RESET   (1 << 12)
 
#define AD9832_CLR   (1 << 11)
 
#define CMD_SHIFT   12
 
#define ADD_SHIFT   8
 
#define AD9832_FREQ_BITS   32
 
#define AD9832_PHASE_BITS   12
 
#define RES_MASK(bits)   ((1 << (bits)) - 1)
 

Macro Definition Documentation

#define AD9832_CLR   (1 << 11)

Definition at line 51 of file ad9832.h.

#define AD9832_CMD_FPSELECT   0x6

Definition at line 41 of file ad9832.h.

#define AD9832_CMD_FRE16BITSW   0x2

Definition at line 40 of file ad9832.h.

#define AD9832_CMD_FRE8BITSW   0x3

Definition at line 39 of file ad9832.h.

#define AD9832_CMD_PHA16BITSW   0x0

Definition at line 38 of file ad9832.h.

#define AD9832_CMD_PHA8BITSW   0x1

Definition at line 37 of file ad9832.h.

#define AD9832_CMD_SLEEPRESCLR   0xC

Definition at line 43 of file ad9832.h.

#define AD9832_CMD_SYNCSELSRC   0x8

Definition at line 42 of file ad9832.h.

#define AD9832_FREQ   (1 << 11)

Definition at line 45 of file ad9832.h.

#define AD9832_FREQ0HL   0x1

Definition at line 14 of file ad9832.h.

#define AD9832_FREQ0HM   0x3

Definition at line 16 of file ad9832.h.

#define AD9832_FREQ0LL   0x0

Definition at line 13 of file ad9832.h.

#define AD9832_FREQ0LM   0x2

Definition at line 15 of file ad9832.h.

#define AD9832_FREQ1HL   0x5

Definition at line 18 of file ad9832.h.

#define AD9832_FREQ1HM   0x7

Definition at line 20 of file ad9832.h.

#define AD9832_FREQ1LL   0x4

Definition at line 17 of file ad9832.h.

#define AD9832_FREQ1LM   0x6

Definition at line 19 of file ad9832.h.

#define AD9832_FREQ_BITS   32

Definition at line 54 of file ad9832.h.

#define AD9832_FREQ_SYM   0x11

Definition at line 31 of file ad9832.h.

#define AD9832_OUTPUT_EN   0x13

Definition at line 33 of file ad9832.h.

#define AD9832_PHASE (   x)    (((x) & 3) << 9)

Definition at line 46 of file ad9832.h.

#define AD9832_PHASE0H   0x9

Definition at line 22 of file ad9832.h.

#define AD9832_PHASE0L   0x8

Definition at line 21 of file ad9832.h.

#define AD9832_PHASE1H   0xB

Definition at line 24 of file ad9832.h.

#define AD9832_PHASE1L   0xA

Definition at line 23 of file ad9832.h.

#define AD9832_PHASE2H   0xD

Definition at line 26 of file ad9832.h.

#define AD9832_PHASE2L   0xC

Definition at line 25 of file ad9832.h.

#define AD9832_PHASE3H   0xF

Definition at line 28 of file ad9832.h.

#define AD9832_PHASE3L   0xE

Definition at line 27 of file ad9832.h.

#define AD9832_PHASE_BITS   12

Definition at line 55 of file ad9832.h.

#define AD9832_PHASE_SYM   0x10

Definition at line 30 of file ad9832.h.

#define AD9832_PINCTRL_EN   0x12

Definition at line 32 of file ad9832.h.

#define AD9832_RESET   (1 << 12)

Definition at line 50 of file ad9832.h.

#define AD9832_SELSRC   (1 << 12)

Definition at line 48 of file ad9832.h.

#define AD9832_SLEEP   (1 << 13)

Definition at line 49 of file ad9832.h.

#define AD9832_SYNC   (1 << 13)

Definition at line 47 of file ad9832.h.

#define ADD_SHIFT   8

Definition at line 53 of file ad9832.h.

#define CMD_SHIFT   12

Definition at line 52 of file ad9832.h.

#define RES_MASK (   bits)    ((1 << (bits)) - 1)

Definition at line 56 of file ad9832.h.