Advanced LAN Bypass User Manual
28
3.7.4
LBP Watchdog
3.7.4.1
lbp_err lbp_set_wdt_counter(int segment, int time_100ms)
Sets the initial countdown value (100 ms per count) of the WDT.
The WDT is a 16-bit counter with a maximum value of 65535.
The setting is non-volatile and will be used as the initial value whenever the WDT is
started or restarted. The default value is 0x0100 (25.6 s).
Returns 0 on success or the following error codes in the event of an error:
3.7.4.2
lbp_err lbp_get_wdt_status(int segment, int *wdt_status, int *init_time_100ms,
int *current_time_100ms)
Retrieves the current WDT status.
Additional predefined macros (see Section 3.4) are available for evaluation of the
returned value.
Returns 0 on success or the following error codes in the event of an error:
3.7.4.3
lbp_err lbp_reset_start_wdt(int segment)
Resets the WDT counter to the initial countdown value (see Section 3.7.4.1) and
starts the timer.
Returns 0 on success or the following error codes in the event of an error:
Table 3.14: API Function "lbp_set_wdt_counter" Error Codes
Name
Error Code
LBP_ERR_INTERFACE_OPEN
0x89
LBP_ERR_FW_NRDY
0x8A
LBP_ERR_FW_CS
0x8B
LBP_ERR_PARAM_OUT_OF_BOUND 0x93
LBP_ERR_LBP_INIT
0x95
Table 3.15: API Function "lbp_get_wdt_status" Error Codes
Name
Error Code
LBP_ERR_INTERFACE_OPEN
0x89
LBP_ERR_FW_NRDY
0x8A
LBP_ERR_FW_CS
0x8B
LBP_ERR_PARAM_OUT_OF_BOUND
0x93
LBP_ERR_PARAM_NULL_POINTER
0x94
LBP_ERR_LBP_INIT
0x95
Table 3.16: API Function "lbp_reset_start_wdt" Error Codes
Name
Error Code
LBP_ERR_INTERFACE_OPEN
0x89
LBP_ERR_FW_NRDY
0x8A
LBP_ERR_FW_CS
0x8B
LBP_ERR_PARAM_OUT_OF_BOUND 0x93
LBP_ERR_LBP_INIT
0x95
Summary of Contents for LAN Bypass
Page 1: ...User Manual Advantech Advanced LAN Bypass...
Page 4: ...Advanced LAN Bypass User Manual iv...
Page 10: ...Advanced LAN Bypass User Manual x...
Page 11: ...Chapter 1 1 ADVANCED LAN BYPASS...
Page 14: ...Advanced LAN Bypass User Manual 4...
Page 15: ...Chapter 2 2 OVERVIEW...
Page 26: ...Advanced LAN Bypass User Manual 16...
Page 27: ...Chapter 3 3 LIBLBPCU ADVANCED LAN BYPASS LIBRARY...
Page 51: ...Chapter 4 4 LBPCU...
Page 79: ...Appendix A A OS limitation...
Page 81: ...71 Advanced LAN Bypass User Manual Appendix A OS limitation...