| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
|
| 36 |
|
| 37 |
|
| 38 |
|
| 39 |
#ifndef AD9361_API_H_ |
| 40 |
#define AD9361_API_H_ |
| 41 |
|
| 42 |
|
| 43 |
|
| 44 |
|
| 45 |
#include "util.h" |
| 46 |
|
| 47 |
|
| 48 |
|
| 49 |
|
| 50 |
typedef struct |
| 51 |
{ |
| 52 |
|
| 53 |
enum dev_id dev_sel; |
| 54 |
|
| 55 |
uint8_t id_no; |
| 56 |
|
| 57 |
uint32_t reference_clk_rate; |
| 58 |
|
| 59 |
uint8_t two_rx_two_tx_mode_enable; |
| 60 |
uint8_t one_rx_one_tx_mode_use_rx_num; |
| 61 |
uint8_t one_rx_one_tx_mode_use_tx_num; |
| 62 |
uint8_t frequency_division_duplex_mode_enable; |
| 63 |
uint8_t frequency_division_duplex_independent_mode_enable; |
| 64 |
uint8_t tdd_use_dual_synth_mode_enable; |
| 65 |
uint8_t tdd_skip_vco_cal_enable; |
| 66 |
uint32_t tx_fastlock_delay_ns; |
| 67 |
uint32_t rx_fastlock_delay_ns; |
| 68 |
uint8_t rx_fastlock_pincontrol_enable; |
| 69 |
uint8_t tx_fastlock_pincontrol_enable; |
| 70 |
uint8_t external_rx_lo_enable; |
| 71 |
uint8_t external_tx_lo_enable; |
| 72 |
uint8_t dc_offset_tracking_update_event_mask; |
| 73 |
uint8_t dc_offset_attenuation_high_range; |
| 74 |
uint8_t dc_offset_attenuation_low_range; |
| 75 |
uint8_t dc_offset_count_high_range; |
| 76 |
uint8_t dc_offset_count_low_range; |
| 77 |
uint8_t split_gain_table_mode_enable; |
| 78 |
uint32_t trx_synthesizer_target_fref_overwrite_hz; |
| 79 |
uint8_t qec_tracking_slow_mode_enable; |
| 80 |
|
| 81 |
uint8_t ensm_enable_pin_pulse_mode_enable; |
| 82 |
uint8_t ensm_enable_txnrx_control_enable; |
| 83 |
|
| 84 |
uint64_t rx_synthesizer_frequency_hz; |
| 85 |
uint64_t tx_synthesizer_frequency_hz; |
| 86 |
|
| 87 |
uint32_t rx_path_clock_frequencies[6]; |
| 88 |
uint32_t tx_path_clock_frequencies[6]; |
| 89 |
uint32_t rf_rx_bandwidth_hz; |
| 90 |
uint32_t rf_tx_bandwidth_hz; |
| 91 |
|
| 92 |
uint32_t rx_rf_port_input_select; |
| 93 |
uint32_t tx_rf_port_input_select; |
| 94 |
|
| 95 |
int32_t tx_attenuation_mdB; |
| 96 |
uint8_t update_tx_gain_in_alert_enable; |
| 97 |
|
| 98 |
uint8_t xo_disable_use_ext_refclk_enable; |
| 99 |
uint32_t dcxo_coarse_and_fine_tune[2]; |
| 100 |
uint32_t clk_output_mode_select; |
| 101 |
|
| 102 |
uint8_t gc_rx1_mode; |
| 103 |
uint8_t gc_rx2_mode; |
| 104 |
uint8_t gc_adc_large_overload_thresh; |
| 105 |
uint8_t gc_adc_ovr_sample_size; |
| 106 |
uint8_t gc_adc_small_overload_thresh; |
| 107 |
uint16_t gc_dec_pow_measurement_duration; |
| 108 |
uint8_t gc_dig_gain_enable; |
| 109 |
uint16_t gc_lmt_overload_high_thresh; |
| 110 |
uint16_t gc_lmt_overload_low_thresh; |
| 111 |
uint8_t gc_low_power_thresh; |
| 112 |
uint8_t gc_max_dig_gain; |
| 113 |
|
| 114 |
uint8_t mgc_dec_gain_step; |
| 115 |
uint8_t mgc_inc_gain_step; |
| 116 |
uint8_t mgc_rx1_ctrl_inp_enable; |
| 117 |
uint8_t mgc_rx2_ctrl_inp_enable; |
| 118 |
uint8_t mgc_split_table_ctrl_inp_gain_mode; |
| 119 |
|
| 120 |
uint8_t agc_adc_large_overload_exceed_counter; |
| 121 |
uint8_t agc_adc_large_overload_inc_steps; |
| 122 |
uint8_t agc_adc_lmt_small_overload_prevent_gain_inc_enable; |
| 123 |
uint8_t agc_adc_small_overload_exceed_counter; |
| 124 |
uint8_t agc_dig_gain_step_size; |
| 125 |
uint8_t agc_dig_saturation_exceed_counter; |
| 126 |
uint32_t agc_gain_update_interval_us; |
| 127 |
uint8_t agc_immed_gain_change_if_large_adc_overload_enable; |
| 128 |
uint8_t agc_immed_gain_change_if_large_lmt_overload_enable; |
| 129 |
uint8_t agc_inner_thresh_high; |
| 130 |
uint8_t agc_inner_thresh_high_dec_steps; |
| 131 |
uint8_t agc_inner_thresh_low; |
| 132 |
uint8_t agc_inner_thresh_low_inc_steps; |
| 133 |
uint8_t agc_lmt_overload_large_exceed_counter; |
| 134 |
uint8_t agc_lmt_overload_large_inc_steps; |
| 135 |
uint8_t agc_lmt_overload_small_exceed_counter; |
| 136 |
uint8_t agc_outer_thresh_high; |
| 137 |
uint8_t agc_outer_thresh_high_dec_steps; |
| 138 |
uint8_t agc_outer_thresh_low; |
| 139 |
uint8_t agc_outer_thresh_low_inc_steps; |
| 140 |
uint32_t agc_attack_delay_extra_margin_us; |
| 141 |
uint8_t agc_sync_for_gain_counter_enable; |
| 142 |
|
| 143 |
uint32_t fagc_dec_pow_measuremnt_duration; |
| 144 |
uint32_t fagc_state_wait_time_ns; |
| 145 |
|
| 146 |
uint8_t fagc_allow_agc_gain_increase; |
| 147 |
uint32_t fagc_lp_thresh_increment_time; |
| 148 |
uint32_t fagc_lp_thresh_increment_steps; |
| 149 |
|
| 150 |
uint32_t fagc_lock_level; |
| 151 |
uint8_t fagc_lock_level_lmt_gain_increase_en; |
| 152 |
uint32_t fagc_lock_level_gain_increase_upper_limit; |
| 153 |
|
| 154 |
uint32_t fagc_lpf_final_settling_steps; |
| 155 |
uint32_t fagc_lmt_final_settling_steps; |
| 156 |
uint32_t fagc_final_overrange_count; |
| 157 |
|
| 158 |
uint8_t fagc_gain_increase_after_gain_lock_en; |
| 159 |
|
| 160 |
uint32_t fagc_gain_index_type_after_exit_rx_mode; |
| 161 |
uint8_t fagc_use_last_lock_level_for_set_gain_en; |
| 162 |
uint8_t fagc_rst_gla_stronger_sig_thresh_exceeded_en; |
| 163 |
uint32_t fagc_optimized_gain_offset; |
| 164 |
uint32_t fagc_rst_gla_stronger_sig_thresh_above_ll; |
| 165 |
uint8_t fagc_rst_gla_engergy_lost_sig_thresh_exceeded_en; |
| 166 |
uint8_t fagc_rst_gla_engergy_lost_goto_optim_gain_en; |
| 167 |
uint32_t fagc_rst_gla_engergy_lost_sig_thresh_below_ll; |
| 168 |
uint32_t fagc_energy_lost_stronger_sig_gain_lock_exit_cnt; |
| 169 |
uint8_t fagc_rst_gla_large_adc_overload_en; |
| 170 |
uint8_t fagc_rst_gla_large_lmt_overload_en; |
| 171 |
uint8_t fagc_rst_gla_en_agc_pulled_high_en; |
| 172 |
uint32_t fagc_rst_gla_if_en_agc_pulled_high_mode; |
| 173 |
uint32_t fagc_power_measurement_duration_in_state5; |
| 174 |
|
| 175 |
uint32_t rssi_delay; |
| 176 |
uint32_t rssi_duration; |
| 177 |
uint8_t rssi_restart_mode; |
| 178 |
uint8_t rssi_unit_is_rx_samples_enable; |
| 179 |
uint32_t rssi_wait; |
| 180 |
|
| 181 |
uint32_t aux_adc_decimation; |
| 182 |
uint32_t aux_adc_rate; |
| 183 |
|
| 184 |
uint8_t aux_dac_manual_mode_enable; |
| 185 |
uint32_t aux_dac1_default_value_mV; |
| 186 |
uint8_t aux_dac1_active_in_rx_enable; |
| 187 |
uint8_t aux_dac1_active_in_tx_enable; |
| 188 |
uint8_t aux_dac1_active_in_alert_enable; |
| 189 |
uint32_t aux_dac1_rx_delay_us; |
| 190 |
uint32_t aux_dac1_tx_delay_us; |
| 191 |
uint32_t aux_dac2_default_value_mV; |
| 192 |
uint8_t aux_dac2_active_in_rx_enable; |
| 193 |
uint8_t aux_dac2_active_in_tx_enable; |
| 194 |
uint8_t aux_dac2_active_in_alert_enable; |
| 195 |
uint32_t aux_dac2_rx_delay_us; |
| 196 |
uint32_t aux_dac2_tx_delay_us; |
| 197 |
|
| 198 |
uint32_t temp_sense_decimation; |
| 199 |
uint16_t temp_sense_measurement_interval_ms; |
| 200 |
int8_t temp_sense_offset_signed; |
| 201 |
uint8_t temp_sense_periodic_measurement_enable; |
| 202 |
|
| 203 |
uint8_t ctrl_outs_enable_mask; |
| 204 |
uint8_t ctrl_outs_index; |
| 205 |
|
| 206 |
uint32_t elna_settling_delay_ns; |
| 207 |
uint32_t elna_gain_mdB; |
| 208 |
uint32_t elna_bypass_loss_mdB; |
| 209 |
uint8_t elna_rx1_gpo0_control_enable; |
| 210 |
uint8_t elna_rx2_gpo1_control_enable; |
| 211 |
uint8_t elna_gaintable_all_index_enable; |
| 212 |
|
| 213 |
uint8_t digital_interface_tune_skip_mode; |
| 214 |
uint8_t digital_interface_tune_fir_disable; |
| 215 |
uint8_t pp_tx_swap_enable; |
| 216 |
uint8_t pp_rx_swap_enable; |
| 217 |
uint8_t tx_channel_swap_enable; |
| 218 |
uint8_t rx_channel_swap_enable; |
| 219 |
uint8_t rx_frame_pulse_mode_enable; |
| 220 |
uint8_t two_t_two_r_timing_enable; |
| 221 |
uint8_t invert_data_bus_enable; |
| 222 |
uint8_t invert_data_clk_enable; |
| 223 |
uint8_t fdd_alt_word_order_enable; |
| 224 |
uint8_t invert_rx_frame_enable; |
| 225 |
uint8_t fdd_rx_rate_2tx_enable; |
| 226 |
uint8_t swap_ports_enable; |
| 227 |
uint8_t single_data_rate_enable; |
| 228 |
uint8_t lvds_mode_enable; |
| 229 |
uint8_t half_duplex_mode_enable; |
| 230 |
uint8_t single_port_mode_enable; |
| 231 |
uint8_t full_port_enable; |
| 232 |
uint8_t full_duplex_swap_bits_enable; |
| 233 |
uint32_t delay_rx_data; |
| 234 |
uint32_t rx_data_clock_delay; |
| 235 |
uint32_t rx_data_delay; |
| 236 |
uint32_t tx_fb_clock_delay; |
| 237 |
uint32_t tx_data_delay; |
| 238 |
uint32_t lvds_bias_mV; |
| 239 |
uint8_t lvds_rx_onchip_termination_enable; |
| 240 |
uint8_t rx1rx2_phase_inversion_en; |
| 241 |
uint8_t lvds_invert1_control; |
| 242 |
uint8_t lvds_invert2_control; |
| 243 |
|
| 244 |
uint8_t gpo0_inactive_state_high_enable; |
| 245 |
uint8_t gpo1_inactive_state_high_enable; |
| 246 |
uint8_t gpo2_inactive_state_high_enable; |
| 247 |
uint8_t gpo3_inactive_state_high_enable; |
| 248 |
uint8_t gpo0_slave_rx_enable; |
| 249 |
uint8_t gpo0_slave_tx_enable; |
| 250 |
uint8_t gpo1_slave_rx_enable; |
| 251 |
uint8_t gpo1_slave_tx_enable; |
| 252 |
uint8_t gpo2_slave_rx_enable; |
| 253 |
uint8_t gpo2_slave_tx_enable; |
| 254 |
uint8_t gpo3_slave_rx_enable; |
| 255 |
uint8_t gpo3_slave_tx_enable; |
| 256 |
uint8_t gpo0_rx_delay_us; |
| 257 |
uint8_t gpo0_tx_delay_us; |
| 258 |
uint8_t gpo1_rx_delay_us; |
| 259 |
uint8_t gpo1_tx_delay_us; |
| 260 |
uint8_t gpo2_rx_delay_us; |
| 261 |
uint8_t gpo2_tx_delay_us; |
| 262 |
uint8_t gpo3_rx_delay_us; |
| 263 |
uint8_t gpo3_tx_delay_us; |
| 264 |
|
| 265 |
uint32_t low_high_gain_threshold_mdB; |
| 266 |
uint32_t low_gain_dB; |
| 267 |
uint32_t high_gain_dB; |
| 268 |
uint8_t tx_mon_track_en; |
| 269 |
uint8_t one_shot_mode_en; |
| 270 |
uint32_t tx_mon_delay; |
| 271 |
uint32_t tx_mon_duration; |
| 272 |
uint32_t tx1_mon_front_end_gain; |
| 273 |
uint32_t tx2_mon_front_end_gain; |
| 274 |
uint32_t tx1_mon_lo_cm; |
| 275 |
uint32_t tx2_mon_lo_cm; |
| 276 |
|
| 277 |
int32_t gpio_resetb; |
| 278 |
|
| 279 |
int32_t gpio_sync; |
| 280 |
int32_t gpio_cal_sw1; |
| 281 |
int32_t gpio_cal_sw2; |
| 282 |
|
| 283 |
uint32_t (*ad9361_rfpll_ext_recalc_rate)(struct refclk_scale *clk_priv); |
| 284 |
int32_t (*ad9361_rfpll_ext_round_rate)(struct refclk_scale *clk_priv, uint32_t rate); |
| 285 |
int32_t (*ad9361_rfpll_ext_set_rate)(struct refclk_scale *clk_priv, uint32_t rate); |
| 286 |
}AD9361_InitParam; |
| 287 |
|
| 288 |
typedef struct |
| 289 |
{ |
| 290 |
uint32_t rx; |
| 291 |
int32_t rx_gain; |
| 292 |
uint32_t rx_dec; |
| 293 |
int16_t rx_coef[128]; |
| 294 |
uint8_t rx_coef_size; |
| 295 |
uint32_t rx_path_clks[6]; |
| 296 |
uint32_t rx_bandwidth; |
| 297 |
}AD9361_RXFIRConfig; |
| 298 |
|
| 299 |
typedef struct |
| 300 |
{ |
| 301 |
uint32_t tx; |
| 302 |
int32_t tx_gain; |
| 303 |
uint32_t tx_int; |
| 304 |
int16_t tx_coef[128]; |
| 305 |
uint8_t tx_coef_size; |
| 306 |
uint32_t tx_path_clks[6]; |
| 307 |
uint32_t tx_bandwidth; |
| 308 |
}AD9361_TXFIRConfig; |
| 309 |
|
| 310 |
enum ad9361_ensm_mode { |
| 311 |
ENSM_MODE_TX, |
| 312 |
ENSM_MODE_RX, |
| 313 |
ENSM_MODE_ALERT, |
| 314 |
ENSM_MODE_FDD, |
| 315 |
ENSM_MODE_WAIT, |
| 316 |
ENSM_MODE_SLEEP, |
| 317 |
ENSM_MODE_PINCTRL, |
| 318 |
ENSM_MODE_PINCTRL_FDD_INDEP, |
| 319 |
}; |
| 320 |
|
| 321 |
#define ENABLE 1 |
| 322 |
#define DISABLE 0 |
| 323 |
|
| 324 |
#define RX1 0 |
| 325 |
#define RX2 1 |
| 326 |
|
| 327 |
#define TX1 0 |
| 328 |
#define TX2 1 |
| 329 |
|
| 330 |
#define A_BALANCED 0 |
| 331 |
#define B_BALANCED 1 |
| 332 |
#define C_BALANCED 2 |
| 333 |
#define A_N 3 |
| 334 |
#define A_P 4 |
| 335 |
#define B_N 5 |
| 336 |
#define B_P 6 |
| 337 |
#define C_N 7 |
| 338 |
#define C_P 8 |
| 339 |
#define TX_MON1 9 |
| 340 |
#define TX_MON2 10 |
| 341 |
#define TX_MON1_2 11 |
| 342 |
|
| 343 |
#define TXA 0 |
| 344 |
#define TXB 1 |
| 345 |
|
| 346 |
#define MODE_1x1 1 |
| 347 |
#define MODE_2x2 2 |
| 348 |
|
| 349 |
#define HIGHEST_OSR 0 |
| 350 |
#define NOMINAL_OSR 1 |
| 351 |
|
| 352 |
#define INT_LO 0 |
| 353 |
#define EXT_LO 1 |
| 354 |
|
| 355 |
|
| 356 |
|
| 357 |
|
| 358 |
|
| 359 |
int32_t ad9361_init (struct ad9361_rf_phy **ad9361_phy, AD9361_InitParam *init_param); |
| 360 |
|
| 361 |
int32_t ad9361_set_en_state_machine_mode (struct ad9361_rf_phy *phy, uint32_t mode); |
| 362 |
|
| 363 |
int32_t ad9361_get_en_state_machine_mode (struct ad9361_rf_phy *phy, uint32_t *mode); |
| 364 |
|
| 365 |
int32_t ad9361_set_rx_rf_gain (struct ad9361_rf_phy *phy, uint8_t ch, int32_t gain_db); |
| 366 |
|
| 367 |
int32_t ad9361_get_rx_rf_gain (struct ad9361_rf_phy *phy, uint8_t ch, int32_t *gain_db); |
| 368 |
|
| 369 |
int32_t ad9361_set_rx_rf_bandwidth (struct ad9361_rf_phy *phy, uint32_t bandwidth_hz); |
| 370 |
|
| 371 |
int32_t ad9361_get_rx_rf_bandwidth (struct ad9361_rf_phy *phy, uint32_t *bandwidth_hz); |
| 372 |
|
| 373 |
int32_t ad9361_set_rx_sampling_freq (struct ad9361_rf_phy *phy, uint32_t sampling_freq_hz); |
| 374 |
|
| 375 |
int32_t ad9361_get_rx_sampling_freq (struct ad9361_rf_phy *phy, uint32_t *sampling_freq_hz); |
| 376 |
|
| 377 |
int32_t ad9361_set_rx_lo_freq (struct ad9361_rf_phy *phy, uint64_t lo_freq_hz); |
| 378 |
|
| 379 |
int32_t ad9361_get_rx_lo_freq (struct ad9361_rf_phy *phy, uint64_t *lo_freq_hz); |
| 380 |
|
| 381 |
int32_t ad9361_set_rx_lo_int_ext(struct ad9361_rf_phy *phy, uint8_t int_ext); |
| 382 |
|
| 383 |
int32_t ad9361_get_rx_rssi (struct ad9361_rf_phy *phy, uint8_t ch, struct rf_rssi *rssi); |
| 384 |
|
| 385 |
int32_t ad9361_set_rx_gain_control_mode (struct ad9361_rf_phy *phy, uint8_t ch, uint8_t gc_mode); |
| 386 |
|
| 387 |
int32_t ad9361_get_rx_gain_control_mode (struct ad9361_rf_phy *phy, uint8_t ch, uint8_t *gc_mode); |
| 388 |
|
| 389 |
int32_t ad9361_set_rx_fir_config (struct ad9361_rf_phy *phy, AD9361_RXFIRConfig fir_cfg); |
| 390 |
|
| 391 |
int32_t ad9361_get_rx_fir_config(struct ad9361_rf_phy *phy, uint8_t rx_ch, AD9361_RXFIRConfig *fir_cfg); |
| 392 |
|
| 393 |
int32_t ad9361_set_rx_fir_en_dis (struct ad9361_rf_phy *phy, uint8_t en_dis); |
| 394 |
|
| 395 |
int32_t ad9361_get_rx_fir_en_dis (struct ad9361_rf_phy *phy, uint8_t *en_dis); |
| 396 |
|
| 397 |
int32_t ad9361_set_rx_rfdc_track_en_dis (struct ad9361_rf_phy *phy, uint8_t en_dis); |
| 398 |
|
| 399 |
int32_t ad9361_get_rx_rfdc_track_en_dis (struct ad9361_rf_phy *phy, uint8_t *en_dis); |
| 400 |
|
| 401 |
int32_t ad9361_set_rx_bbdc_track_en_dis (struct ad9361_rf_phy *phy, uint8_t en_dis); |
| 402 |
|
| 403 |
int32_t ad9361_get_rx_bbdc_track_en_dis (struct ad9361_rf_phy *phy, uint8_t *en_dis); |
| 404 |
|
| 405 |
int32_t ad9361_set_rx_quad_track_en_dis (struct ad9361_rf_phy *phy, uint8_t en_dis); |
| 406 |
|
| 407 |
int32_t ad9361_get_rx_quad_track_en_dis (struct ad9361_rf_phy *phy, uint8_t *en_dis); |
| 408 |
|
| 409 |
int32_t ad9361_set_rx_rf_port_input (struct ad9361_rf_phy *phy, uint32_t mode); |
| 410 |
|
| 411 |
int32_t ad9361_get_rx_rf_port_input (struct ad9361_rf_phy *phy, uint32_t *mode); |
| 412 |
|
| 413 |
int32_t ad9361_rx_fastlock_store(struct ad9361_rf_phy *phy, uint32_t profile); |
| 414 |
|
| 415 |
int32_t ad9361_rx_fastlock_recall(struct ad9361_rf_phy *phy, uint32_t profile); |
| 416 |
|
| 417 |
int32_t ad9361_rx_fastlock_load(struct ad9361_rf_phy *phy, uint32_t profile, uint8_t *values); |
| 418 |
|
| 419 |
int32_t ad9361_rx_fastlock_save(struct ad9361_rf_phy *phy, uint32_t profile, uint8_t *values); |
| 420 |
|
| 421 |
int32_t ad9361_set_tx_attenuation (struct ad9361_rf_phy *phy, uint8_t ch, uint32_t attenuation_mdb); |
| 422 |
|
| 423 |
int32_t ad9361_get_tx_attenuation (struct ad9361_rf_phy *phy, uint8_t ch, uint32_t *attenuation_mdb); |
| 424 |
|
| 425 |
int32_t ad9361_set_tx_rf_bandwidth (struct ad9361_rf_phy *phy, uint32_t bandwidth_hz); |
| 426 |
|
| 427 |
int32_t ad9361_get_tx_rf_bandwidth (struct ad9361_rf_phy *phy, uint32_t *bandwidth_hz); |
| 428 |
|
| 429 |
int32_t ad9361_set_tx_sampling_freq (struct ad9361_rf_phy *phy, uint32_t sampling_freq_hz); |
| 430 |
|
| 431 |
int32_t ad9361_get_tx_sampling_freq (struct ad9361_rf_phy *phy, uint32_t *sampling_freq_hz); |
| 432 |
|
| 433 |
int32_t ad9361_set_tx_lo_freq (struct ad9361_rf_phy *phy, uint64_t lo_freq_hz); |
| 434 |
|
| 435 |
int32_t ad9361_get_tx_lo_freq (struct ad9361_rf_phy *phy, uint64_t *lo_freq_hz); |
| 436 |
|
| 437 |
int32_t ad9361_set_tx_lo_int_ext(struct ad9361_rf_phy *phy, uint8_t int_ext); |
| 438 |
|
| 439 |
int32_t ad9361_set_tx_fir_config (struct ad9361_rf_phy *phy, AD9361_TXFIRConfig fir_cfg); |
| 440 |
|
| 441 |
int32_t ad9361_get_tx_fir_config(struct ad9361_rf_phy *phy, uint8_t tx_ch, AD9361_TXFIRConfig *fir_cfg); |
| 442 |
|
| 443 |
int32_t ad9361_set_tx_fir_en_dis (struct ad9361_rf_phy *phy, uint8_t en_dis); |
| 444 |
|
| 445 |
int32_t ad9361_get_tx_fir_en_dis (struct ad9361_rf_phy *phy, uint8_t *en_dis); |
| 446 |
|
| 447 |
int32_t ad9361_get_tx_rssi (struct ad9361_rf_phy *phy, uint8_t ch, uint32_t *rssi_db_x_1000); |
| 448 |
|
| 449 |
int32_t ad9361_set_tx_rf_port_output (struct ad9361_rf_phy *phy, uint32_t mode); |
| 450 |
|
| 451 |
int32_t ad9361_get_tx_rf_port_output (struct ad9361_rf_phy *phy, uint32_t *mode); |
| 452 |
|
| 453 |
int32_t ad9361_set_tx_auto_cal_en_dis (struct ad9361_rf_phy *phy, uint8_t en_dis); |
| 454 |
|
| 455 |
int32_t ad9361_get_tx_auto_cal_en_dis (struct ad9361_rf_phy *phy, uint8_t *en_dis); |
| 456 |
|
| 457 |
int32_t ad9361_tx_fastlock_store(struct ad9361_rf_phy *phy, uint32_t profile); |
| 458 |
|
| 459 |
int32_t ad9361_tx_fastlock_recall(struct ad9361_rf_phy *phy, uint32_t profile); |
| 460 |
|
| 461 |
int32_t ad9361_tx_fastlock_load(struct ad9361_rf_phy *phy, uint32_t profile, uint8_t *values); |
| 462 |
|
| 463 |
int32_t ad9361_tx_fastlock_save(struct ad9361_rf_phy *phy, uint32_t profile, uint8_t *values); |
| 464 |
|
| 465 |
int32_t ad9361_set_trx_path_clks(struct ad9361_rf_phy *phy, uint32_t *rx_path_clks, uint32_t *tx_path_clks); |
| 466 |
|
| 467 |
int32_t ad9361_get_trx_path_clks(struct ad9361_rf_phy *phy, uint32_t *rx_path_clks, uint32_t *tx_path_clks); |
| 468 |
|
| 469 |
int32_t ad9361_set_no_ch_mode(struct ad9361_rf_phy *phy, uint8_t no_ch_mode); |
| 470 |
|
| 471 |
int32_t ad9361_do_mcs(struct ad9361_rf_phy *phy_master, struct ad9361_rf_phy *phy_slave); |
| 472 |
|
| 473 |
int32_t ad9361_set_trx_fir_en_dis (struct ad9361_rf_phy *phy, uint8_t en_dis); |
| 474 |
|
| 475 |
int32_t ad9361_set_trx_rate_gov (struct ad9361_rf_phy *phy, uint32_t rate_gov); |
| 476 |
|
| 477 |
int32_t ad9361_get_trx_rate_gov (struct ad9361_rf_phy *phy, uint32_t *rate_gov); |
| 478 |
|
| 479 |
int32_t ad9361_do_calib(struct ad9361_rf_phy *phy, uint32_t cal, int32_t arg); |
| 480 |
|
| 481 |
int32_t ad9361_trx_load_enable_fir(struct ad9361_rf_phy *phy, |
| 482 |
AD9361_RXFIRConfig rx_fir_cfg, |
| 483 |
AD9361_TXFIRConfig tx_fir_cfg); |
| 484 |
|
| 485 |
int32_t ad9361_do_dcxo_tune_coarse(struct ad9361_rf_phy *phy, |
| 486 |
uint32_t coarse); |
| 487 |
|
| 488 |
int32_t ad9361_do_dcxo_tune_fine(struct ad9361_rf_phy *phy, |
| 489 |
uint32_t fine); |
| 490 |
#endif |