Go to the documentation of this file.
8 #ifndef IIO_DDS_AD9834_H_
9 #define IIO_DDS_AD9834_H_
13 #define AD9834_REG_CMD (0 << 14)
14 #define AD9834_REG_FREQ0 (1 << 14)
15 #define AD9834_REG_FREQ1 (2 << 14)
16 #define AD9834_REG_PHASE0 (6 << 13)
17 #define AD9834_REG_PHASE1 (7 << 13)
21 #define AD9834_B28 (1 << 13)
22 #define AD9834_HLB (1 << 12)
23 #define AD9834_FSEL (1 << 11)
24 #define AD9834_PSEL (1 << 10)
25 #define AD9834_PIN_SW (1 << 9)
26 #define AD9834_RESET (1 << 8)
27 #define AD9834_SLEEP1 (1 << 7)
28 #define AD9834_SLEEP12 (1 << 6)
29 #define AD9834_OPBITEN (1 << 5)
30 #define AD9834_SIGN_PIB (1 << 4)
31 #define AD9834_DIV2 (1 << 3)
32 #define AD9834_MODE (1 << 1)
34 #define AD9834_FREQ_BITS 28
35 #define AD9834_PHASE_BITS 12
37 #define RES_MASK(bits) ((1 << (bits)) - 1)