Searched refs:u16PhaseRange (Results 1 – 1 of 1) sorted by relevance
1465 MS_U16 u16PhaseRange = MDrv_XC_ADC_GetPhaseRange(pInstance) - 1; in _MApi_XC_Auto_TunePhase() local1473 for(u16Index = u16WorstPhase1; u16Index <= u16PhaseRange; u16Index += AUTO_PHASE_STEP) in _MApi_XC_Auto_TunePhase()1490 u16WorstPhase2 = (u16WorstPhase1 - AUTO_PHASE_STEP + 1) & u16PhaseRange; in _MApi_XC_Auto_TunePhase()1491 u16WorstPhase1 = (u16WorstPhase1 + AUTO_PHASE_STEP) & u16PhaseRange; in _MApi_XC_Auto_TunePhase()1493 …u16Index = u16WorstPhase2; u16Index != u16WorstPhase1; u16Index = ((u16Index + 1) & u16PhaseRange)) in _MApi_XC_Auto_TunePhase()1509 Active->u16Phase = (u16WorstPhase2 + (u16PhaseRange / 2)) & u16PhaseRange; in _MApi_XC_Auto_TunePhase()1514 MS_U16 u16PhaseRange = MDrv_XC_ADC_GetPhaseRange(pInstance); in _MApi_XC_Auto_TunePhase()1515 const MS_U16 u16PhaseStep = (u16PhaseRange + 63) / 64; in _MApi_XC_Auto_TunePhase()1522 for (u16CurPhase = 0; u16CurPhase < u16PhaseRange; u16CurPhase += u16PhaseStep) in _MApi_XC_Auto_TunePhase()1542 u16PhaseRange = u16BestPhase + u16PhaseStep; in _MApi_XC_Auto_TunePhase()[all …]