comparison chipsetsw/layer1/p_cfile/l1p_func.c @ 328:2604e9569e31

l1p_func.c: l1ps_tcr_ctrl() reconstructed
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 04 Oct 2017 22:50:34 +0000
parents 294adc9e1d3c
children 6d27bbc94e3c
comparison
equal deleted inserted replaced
327:294adc9e1d3c 328:2604e9569e31
368 radio_freq_ctrl = l1pa_l1ps_com.cres_freq_list.alist->freq_list[l1pa_l1ps_com.tcr_freq_list.tcr_next_to_ctrl]; 368 radio_freq_ctrl = l1pa_l1ps_com.cres_freq_list.alist->freq_list[l1pa_l1ps_com.tcr_freq_list.tcr_next_to_ctrl];
369 369
370 // Get AGC according to the last known IL. 370 // Get AGC according to the last known IL.
371 371
372 input_level = l1a_l1s_com.last_input_level[radio_freq_ctrl - l1_config.std.radio_freq_index_offset].input_level; 372 input_level = l1a_l1s_com.last_input_level[radio_freq_ctrl - l1_config.std.radio_freq_index_offset].input_level;
373 agc = Cust_get_agc_from_IL(radio_freq_ctrl, input_level >> 1, PWR_ID);
373 lna_off = l1a_l1s_com.last_input_level[radio_freq_ctrl - l1_config.std.radio_freq_index_offset].lna_off; 374 lna_off = l1a_l1s_com.last_input_level[radio_freq_ctrl - l1_config.std.radio_freq_index_offset].lna_off;
374 agc = Cust_get_agc_from_IL(radio_freq_ctrl, input_level >> 1, PWR_ID);
375 375
376 #if (RF_FAM == 61) // Locosto DCO 376 #if (RF_FAM == 61) // Locosto DCO
377 #if (PWMEAS_IF_MODE_FORCE == 0) 377 #if (PWMEAS_IF_MODE_FORCE == 0)
378 cust_get_if_dco_ctl_algo(&dco_algo_ctl_pw, &if_ctl, (UWORD8) L1_IL_VALID , 378 cust_get_if_dco_ctl_algo(&dco_algo_ctl_pw, &if_ctl, (UWORD8) L1_IL_VALID ,
379 input_level, 379 input_level,