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