請先看『使用說明』
LAN By Pass Utility under Windows
From LEXWiKi
(Difference between revisions)
(New page: Category:AllowPages == LAN By Pass Utility Download == Binary:[http://LanByPass_v1.0_Bin.rar LanByPass_v1.0_Bin.rar]<br /> Source:[http://LanByPass_v1.0_Src.rar LanByPass_v1.0_Src.ra...) |
(→How to Use The Utility) |
||
Line 10: | Line 10: | ||
== How to Use The Utility == | == How to Use The Utility == | ||
[[Image:Lan_by_pass.jpg]]<br /> | [[Image:Lan_by_pass.jpg]]<br /> | ||
+ | <br /> | ||
1. Loop Time: Loop time is means "the time of delay before LAN by pass be enabled".<br /> | 1. Loop Time: Loop time is means "the time of delay before LAN by pass be enabled".<br /> | ||
2. Enable: Enable LAN by pass function.<br /> | 2. Enable: Enable LAN by pass function.<br /> |
Revision as of 14:55, 20 October 2011
Contents |
LAN By Pass Utility Download
Binary:LanByPass_v1.0_Bin.rar
Source:LanByPass_v1.0_Src.rar
How to Use The Utility
1. Loop Time: Loop time is means "the time of delay before LAN by pass be enabled".
2. Enable: Enable LAN by pass function.
3. Disable: Disable LAN by pass function.
4. Loop Test: Do LAN by pass loop test as below picture.
Introdution
Generic F75111 Definition
//For F75111 Controller #define WDT_I2CADD 0x9C #define WDTimer 0x37 #define WDT_Ctrl 0x36 #define config 0x03 //For WDT control register #define STS_WD_TMOUT_Clear 0x40 #define WDTimer_Enable 0x20
Enable Function
void EnableLanByPass() { WriteI2CByte(WDT_I2CADD, config, 0x03); WriteI2CByte(WDT_I2CADD, WDTimer, gLoopTime); WriteI2CByte(WDT_I2CADD, WDT_Ctrl, STS_WD_TMOUT_Clear | WDTimer_Enable); }
Disable Function
- The LAN by pass disable function is also "initial function".
void InitialWDTimeoutStatus() //It is also Disable Function { WriteI2CByte(WDT_I2CADD, config, 0x03); WriteI2CByte(WDT_I2CADD, WDT_Ctrl, STS_WD_TMOUT_Clear); }
Loop Test Function
int RunLoopTestThread() { for(int i=gLoopTime;i>=2;i--) { if((i==2) && (gThreadContinue)) { WriteI2CByte(WDT_I2CADD, WDTimer, gLoopTime); i=gLoopTime; } Sleep(1000); } return 0; }