summaryrefslogblamecommitdiffstats
path: root/private/ntos/dlc/sm2c/smlib.c
blob: 6c4f3c9c9f8ae7af5f586238b8bf598235b99e08 (plain) (tree)






















                                                    

//
//      1. Update timer T1 and Ti states
//      2. Update Va (last valid Nr received)
//      3. Call the Window algorithm
//
void UpdateVa( LINKC_TYPE linkC_Param )
{
    // reset the reply timer, if there is no active 
    // command or I-frame outstanding 
    if (linkC.Nr > linkC.Va && linkC.Nr <= linkC.Vs)
    {
        if (linkC.Nr == linkC.Vsa)
        {
            // stop T1, restart Ti
            RestartT1( );
            
        }
        linkC.Status.Ti_On = 1;
    }
    if (linkC.Status.Vp == 0 || 
        
}