comparison chipsetsw/layer1/p_cfile/l1p_func.c @ 329:6d27bbc94e3c

l1p_func.c: reconstruction complete, perfect match to original TCS211 object
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 04 Oct 2017 23:05:33 +0000
parents 2604e9569e31
children
comparison
equal deleted inserted replaced
328:2604e9569e31 329:6d27bbc94e3c
464 { 464 {
465 #define radio_freq_ctrl l1a_l1s_com.Scell_info.radio_freq 465 #define radio_freq_ctrl l1a_l1s_com.Scell_info.radio_freq
466 466
467 // Get AGC according to the last known IL. 467 // Get AGC according to the last known IL.
468 input_level = l1a_l1s_com.last_input_level[radio_freq_ctrl - l1_config.std.radio_freq_index_offset].input_level; 468 input_level = l1a_l1s_com.last_input_level[radio_freq_ctrl - l1_config.std.radio_freq_index_offset].input_level;
469 agc = Cust_get_agc_from_IL(radio_freq_ctrl, input_level >> 1, PWR_ID);
469 lna_off = l1a_l1s_com.last_input_level[radio_freq_ctrl - l1_config.std.radio_freq_index_offset].lna_off; 470 lna_off = l1a_l1s_com.last_input_level[radio_freq_ctrl - l1_config.std.radio_freq_index_offset].lna_off;
470 agc = Cust_get_agc_from_IL(radio_freq_ctrl, input_level >> 1, PWR_ID);
471 // Memorize the IL and LNA used for AGC setting. 471 // Memorize the IL and LNA used for AGC setting.
472 // Note: the same structure as for TCR meas is used for PC_MEAS_CHAN measurements 472 // Note: the same structure as for TCR meas is used for PC_MEAS_CHAN measurements
473 l1pa_l1ps_com.tcr_freq_list.used_il_lna.il = input_level; 473 l1pa_l1ps_com.tcr_freq_list.used_il_lna.il = l1a_l1s_com.last_input_level[radio_freq_ctrl - l1_config.std.radio_freq_index_offset].input_level;
474 l1pa_l1ps_com.tcr_freq_list.used_il_lna.lna = l1a_l1s_com.last_input_level[radio_freq_ctrl - l1_config.std.radio_freq_index_offset].lna_off; 474 l1pa_l1ps_com.tcr_freq_list.used_il_lna.lna = l1a_l1s_com.last_input_level[radio_freq_ctrl - l1_config.std.radio_freq_index_offset].lna_off;
475 475
476 476
477 #if (RF_FAM == 61) // Locosto DCO 477 #if (RF_FAM == 61) // Locosto DCO
478 cust_get_if_dco_ctl_algo(&dco_algo_ctl_pw, &if_ctl, (UWORD8) L1_IL_VALID, 478 cust_get_if_dco_ctl_algo(&dco_algo_ctl_pw, &if_ctl, (UWORD8) L1_IL_VALID,