void PPG_initDCTracker(PPG_Signal *ppg)
{
if((ppg->sample[1]>4000)||(ppg->sample[1]<100)) // PGA output saturation
{
ppg->dc_1st = ppg->sample[0];
ppg->dc_register_1st = ((int32_t)ppg->dc_1st<<K);
}
}
what happens when we change this value?? what is the maximum and minimum offset value
what is the logic behind this line
((int32_t)ppg->dc_1st<<K)
reference URL: