no-OS
app_config.h
Go to the documentation of this file.
1 /***************************************************************************/
33 #ifndef APP_CONFIG_H_
34 #define APP_CONFIG_H_
35 
36 #ifdef QUAD_MXFE
37 #define MULTIDEVICE_INSTANCE_COUNT 4
38 #else
39 #define MULTIDEVICE_INSTANCE_COUNT 1
40 #endif
41 
42 #define AD9081_DAC_FREQUENCY 12000000000
43 #define AD9081_ADC_FREQUENCY 4000000000
44 #ifdef QUAD_MXFE
45 #define AD9081_ADC_NYQUIST_ZONE {1, 1, 1, 1}
46 #else
47 #define AD9081_ADC_NYQUIST_ZONE {0, 0, 0, 0}
48 #endif
49 
50 /* TX path */
51 
52 #define AD9081_TX_JESD_MODE 9
53 #define AD9081_TX_JESD_SUBCLASS 1
54 #define AD9081_TX_JESD_VERSION 1
55 #define AD9081_TX_JESD_M 8
56 #define AD9081_TX_JESD_F 4
57 #define AD9081_TX_JESD_K 32
58 #define AD9081_TX_JESD_N 16
59 #define AD9081_TX_JESD_NP 16
60 #define AD9081_TX_JESD_CS 0
61 #define AD9081_TX_JESD_L 4
62 #define AD9081_TX_JESD_S 1
63 #define AD9081_TX_JESD_HD 1
64 #ifdef QUAD_MXFE
65 #define AD9081_TX_LOGICAL_LANE_MAPPING {0, 1, 2, 3, 4, 5, 6, 7}
66 #else
67 #define AD9081_TX_LOGICAL_LANE_MAPPING {0, 2, 7, 7, 1, 7, 7, 3}
68 #endif
69 
70 #define AD9081_JRX_TPL_PHASE_ADJUST 0x0c
71 
72 #define AD9081_TX_MAIN_INTERPOLATION 6
73 #define AD9081_TX_CHAN_INTERPOLATION 8
74 #define AD9081_TX_MAIN_NCO_SHIFT {1000000000, 1100000000, 1200000000, 1300000000}
75 #define AD9081_TX_CHAN_NCO_SHIFT {0, 0, 0, 0, 0, 0, 0, 0}
76 #define AD9081_TX_CHAN_GAIN {2048, 2048, 2048, 2048, 0, 0, 0, 0}
77 
78 #define AD9081_TX_DAC_CHAN_CROSSBAR {0x1, 0x2, 0x4, 0x8}
79 
80 /* RX path */
81 
82 #define AD9081_RX_JESD_MODE 10
83 #define AD9081_RX_JESD_SUBCLASS 1
84 #define AD9081_RX_JESD_VERSION 1
85 #define AD9081_RX_JESD_M 8
86 #define AD9081_RX_JESD_F 4
87 #define AD9081_RX_JESD_K 32
88 #define AD9081_RX_JESD_N 16
89 #define AD9081_RX_JESD_NP 16
90 #define AD9081_RX_JESD_CS 0
91 #define AD9081_RX_JESD_L 4
92 #define AD9081_RX_JESD_S 1
93 #define AD9081_RX_JESD_HD 1
94 #ifdef QUAD_MXFE
95 #define AD9081_RX_LOGICAL_LANE_MAPPING {0, 1, 2, 3, 4, 5, 6, 7}
96 #else
97 #define AD9081_RX_LOGICAL_LANE_MAPPING {2, 0, 7, 7, 7, 7, 3, 1}
98 #endif
99 #define AD9081_RX_LINK_CONVERTER_SELECT {0, 1, 2, 3, 8, 9, 10, 11, 0, 0, 0, 0, 0, 0, 0, 0}
100 
101 #define AD9081_RX_MAIN_DECIMATION {4, 4, 4, 4}
102 #define AD9081_RX_CHAN_DECIMATION {4, 4, 0, 0, 4, 4, 0, 0}
103 #define AD9081_RX_MAIN_ENABLE {1, 1, 1, 1}
104 #define AD9081_RX_CHAN_ENABLE {1, 1, 0, 0, 1, 1, 0, 0}
105 #define AD9081_RX_MAIN_NCO_SHIFT {400000000, -400000000, 100000000, 100000000}
106 #define AD9081_RX_CHAN_NCO_SHIFT {0, 0, 0, 0, 0, 0, 0, 0}
107 
108 #endif