FreeCalypso > hg > tcs211-l1-reconst
comparison chipsetsw/layer1/cfile/l1_drive.c @ 97:784c1f136e67
l1_drive.c: l1ddsp_meas_read() reconstructed
author | Mychaela Falconia <falcon@ivan.Harhan.ORG> |
---|---|
date | Thu, 07 Apr 2016 16:10:01 +0000 |
parents | 065ebe468750 |
children | c78de09b1a90 |
comparison
equal
deleted
inserted
replaced
96:065ebe468750 | 97:784c1f136e67 |
---|---|
933 /*-------------------------------------------------------*/ | 933 /*-------------------------------------------------------*/ |
934 /* Parameters : */ | 934 /* Parameters : */ |
935 /* Return : */ | 935 /* Return : */ |
936 /* Functionality : */ | 936 /* Functionality : */ |
937 /*-------------------------------------------------------*/ | 937 /*-------------------------------------------------------*/ |
938 void l1ddsp_meas_read(UWORD8 nbmeas, UWORD16 *pm) | 938 void l1ddsp_meas_read(UWORD8 nbmeas, UWORD8 *pm) |
939 { | 939 { |
940 UWORD8 i; | 940 UWORD8 i; |
941 | 941 |
942 for (i= 0; i < nbmeas; i++) | 942 for (i= 0; i < nbmeas; i++) |
943 { | 943 { |
944 pm[i] = ((l1s_dsp_com.dsp_db_r_ptr->a_pm[i] & 0xffff)); | 944 pm[i] = ((l1s_dsp_com.dsp_db_r_ptr->a_pm[i] & 0xffff) >> 5); |
945 } | 945 } |
946 | 946 |
947 #if TESTMODE | 947 #if TESTMODE |
948 if(l1_config.TestMode) | 948 if(l1_config.TestMode) |
949 l1tm.tmode_stats.pm_recent = l1s_dsp_com.dsp_db_r_ptr->a_pm[0] & 0xffff; | 949 l1tm.tmode_stats.pm_recent = l1s_dsp_com.dsp_db_r_ptr->a_pm[0] & 0xffff; |