blob: 6c4f3c9c9f8ae7af5f586238b8bf598235b99e08 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
//
// 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 ||
}
|