comparison chipsetsw/layer1/cfile/l1_ctl.c @ 86:b30f037829cf

l1_ctl.c: l1ctl_encode_delta1() reconstructed
author Mychaela Falconia <falcon@ivan.Harhan.ORG>
date Thu, 07 Apr 2016 01:03:38 +0000
parents eca8d5f642fd
children 33c16c173666
comparison
equal deleted inserted replaced
85:eca8d5f642fd 86:b30f037829cf
1814 /* Functionality : */ 1814 /* Functionality : */
1815 /*-------------------------------------------------------*/ 1815 /*-------------------------------------------------------*/
1816 #if(L1_FF_MULTIBAND == 0) 1816 #if(L1_FF_MULTIBAND == 0)
1817 WORD8 l1ctl_encode_delta1(UWORD16 radio_freq) 1817 WORD8 l1ctl_encode_delta1(UWORD16 radio_freq)
1818 { 1818 {
1819 WORD8 freq_band;
1820
1819 switch(l1_config.std.id) 1821 switch(l1_config.std.id)
1820 { 1822 {
1821 case GSM: 1823 case GSM:
1822 case GSM_E: 1824 case GSM_E:
1823 case DCS1800: 1825 case DCS1800:
1824 case PCS1900: 1826 case PCS1900:
1825 case GSM850: 1827 case GSM850:
1826 return(l1_config.std.cal_freq1_band1); 1828 freq_band = l1_config.std.cal_freq1_band1;
1829 break;
1827 case DUAL: 1830 case DUAL:
1828 case DUALEXT: 1831 case DUALEXT:
1829 case DUAL_US: 1832 case DUAL_US:
1830 if(radio_freq >= l1_config.std.first_radio_freq_band2) 1833 if(radio_freq >= l1_config.std.first_radio_freq_band2)
1831 return(l1_config.std.cal_freq1_band2); 1834 freq_band = l1_config.std.cal_freq1_band2;
1832 else 1835 else
1833 return(l1_config.std.cal_freq1_band1); 1836 freq_band = l1_config.std.cal_freq1_band1;
1834 } 1837 break;
1835 return 0;//omaps00090550 1838 }
1836 1839 return(freq_band);
1837 } 1840 }
1838 #endif 1841 #endif
1839 /*-------------------------------------------------------*/ 1842 /*-------------------------------------------------------*/
1840 /* l1ctl_encode_lna() */ 1843 /* l1ctl_encode_lna() */
1841 /*-------------------------------------------------------*/ 1844 /*-------------------------------------------------------*/