This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AWR2944: Question about interference mitigation scale value in SDK 4.2.0.3

Part Number: AWR2944

Hi expert,

In current SDK for AWR2944, we saw it use below function to decide the threshold of inteference mitigation module.

Could you please clarify the meaning of (256*2) for scale_curr calculation? I don't understand what is this ratio stand for. 

uint32_t rangeProcHWADDMA_findIntfStatsStaticParams(uint32_t numSamples, uint32_t SNRdB, uint32_t * scaleVal, uint32_t * shiftVal){
   
    uint32_t scale_best = 0;
    uint32_t shift_best = 6;
    uint32_t shift, scale_curr;
   
    for(shift = 0; shift <= 6; shift++){
        scale_curr = MATHUTILS_ROUND_FLOAT((float)((pow(10, ((double)SNRdB/20.0))/numSamples*(256*2)*(1 << shift))));
        if((scale_curr > scale_best) && (scale_curr < (1 << 8) - 1)){
            scale_best = scale_curr;
            shift_best = shift;
        }
    }

    *scaleVal = scale_best;
    *shiftVal = shift_best;

    return 0;

}
Regards,
Allen