diff options
author | Adam <you@example.com> | 2020-05-17 05:51:50 +0200 |
---|---|---|
committer | Adam <you@example.com> | 2020-05-17 05:51:50 +0200 |
commit | e611b132f9b8abe35b362e5870b74bce94a1e58e (patch) | |
tree | a5781d2ec0e085eeca33cf350cf878f2efea6fe5 /private/ntos/dlc/sm2c/smlib.c | |
download | NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.gz NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.bz2 NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.lz NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.xz NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.zst NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.zip |
Diffstat (limited to 'private/ntos/dlc/sm2c/smlib.c')
-rw-r--r-- | private/ntos/dlc/sm2c/smlib.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/private/ntos/dlc/sm2c/smlib.c b/private/ntos/dlc/sm2c/smlib.c new file mode 100644 index 000000000..6c4f3c9c9 --- /dev/null +++ b/private/ntos/dlc/sm2c/smlib.c @@ -0,0 +1,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 || + +} |