FreeCalypso > hg > tcs211-l1-reconst
changeset 208:fe1846dee240
l1_cust.c: Cust_get_agc_from_IL() reconstructed
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Wed, 08 Jun 2016 06:30:56 +0000 |
parents | a13fa419d13b |
children | c79dd8f07fc5 |
files | chipsetsw/layer1/cust0/l1_cust.c |
diffstat | 1 files changed, 13 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/chipsetsw/layer1/cust0/l1_cust.c Wed Jun 08 06:12:52 2016 +0000 +++ b/chipsetsw/layer1/cust0/l1_cust.c Wed Jun 08 06:30:56 2016 +0000 @@ -703,6 +703,8 @@ /*-------------------------------------------------------*/ WORD8 Cust_get_agc_from_IL(UWORD16 radio_freq, UWORD16 agc_index, UWORD8 table_id) { + WORD8 agc_value; + // radio_freq currently not used // this parameter is passed in order to allow band dependent tables for specific RFs // (e.g. dual band RF with separate AGC H/W blocks for GSM and DCS) @@ -712,10 +714,18 @@ switch (table_id) { - case MAX_ID: return(rf.rx.agc.il2agc_max[agc_index]); - case AV_ID: return(rf.rx.agc.il2agc_av[agc_index]); - case PWR_ID: return(rf.rx.agc.il2agc_pwr[agc_index]); + case MAX_ID: + agc_value = rf.rx.agc.il2agc_max[agc_index]; + break; + case AV_ID: + agc_value = rf.rx.agc.il2agc_av[agc_index]; + break; + case PWR_ID: + agc_value = rf.rx.agc.il2agc_pwr[agc_index]; + break; } + + return agc_value; } /*-------------------------------------------------------*/