comparison chipsetsw/layer1/cust0/l1_cust.c @ 209:c79dd8f07fc5

l1_cust.c: Cust_get_ramp_tab() reconstructed
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 08 Jun 2016 06:40:08 +0000
parents fe1846dee240
children 7f3182969aac
comparison
equal deleted inserted replaced
208:fe1846dee240 209:c79dd8f07fc5
820 /* Functionality : */ 820 /* Functionality : */
821 /*-------------------------------------------------------*/ 821 /*-------------------------------------------------------*/
822 822
823 void Cust_get_ramp_tab(API *a_ramp, UWORD8 txpwr_ramp_up, UWORD8 txpwr_ramp_down, UWORD16 radio_freq) 823 void Cust_get_ramp_tab(API *a_ramp, UWORD8 txpwr_ramp_up, UWORD8 txpwr_ramp_down, UWORD16 radio_freq)
824 { 824 {
825 UWORD16 index_up, index_down,j, arfcn; 825 UWORD16 index_up, index_down, j;
826 UWORD8 band; 826 UWORD8 band;
827 827
828 band = Cust_is_band_high(radio_freq); 828 band = Cust_is_band_high(radio_freq);
829 arfcn = Convert_l1_radio_freq(radio_freq);
830 829
831 index_up = rf_band[band].tx.levels[txpwr_ramp_up].ramp_index; 830 index_up = rf_band[band].tx.levels[txpwr_ramp_up].ramp_index;
832 index_down = rf_band[band].tx.levels[txpwr_ramp_down].ramp_index; 831 index_down = rf_band[band].tx.levels[txpwr_ramp_down].ramp_index;
833 832
834 #if ((ANLG_FAM == 1) || (ANLG_FAM == 2) || (ANLG_FAM == 3)) 833 #if ((ANLG_FAM == 1) || (ANLG_FAM == 2) || (ANLG_FAM == 3))