27
Advanced LAN Bypass User Manual
Chapter 3
L
IBLBPCU
-ADVANCED
LAN BYPASS
LIBRARY
Returns 0 on success or the following error codes in the event of an error:
3.7.3.3
lbp_err lbp_get_last_event_action(int segment, int *last_event, int *last_action)
Returns the last event and the last action (i.e., the current state of bypass relays) on
a specific segment.
Returns 0 on success or the following error codes in the event of an error:
3.7.3.4
lbp_err lbp_set_current_action(int segment, int action)
Manually sets an immediate action on a specific segment.
This function can be used to perform a certain action on a specific segment (e.g., to
switch the bypass relays into bypass mode manually without affecting any event-
action definitions).
The "Do not change" action is not supported in this function.
Action:
Returns 0 on success or the following error codes in the event of an error:
Table 3.11: API Function "lbp_set_action" 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.12: API Function "get_last_event_action" 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
#define BYPASS
1
#define DISCONNECT 2
#define CONNECT 3
Table 3.13: API Function "lbp_set_current_action" 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
Содержание LAN Bypass
Страница 1: ...User Manual Advantech Advanced LAN Bypass...
Страница 4: ...Advanced LAN Bypass User Manual iv...
Страница 10: ...Advanced LAN Bypass User Manual x...
Страница 11: ...Chapter 1 1 ADVANCED LAN BYPASS...
Страница 14: ...Advanced LAN Bypass User Manual 4...
Страница 15: ...Chapter 2 2 OVERVIEW...
Страница 26: ...Advanced LAN Bypass User Manual 16...
Страница 27: ...Chapter 3 3 LIBLBPCU ADVANCED LAN BYPASS LIBRARY...
Страница 51: ...Chapter 4 4 LBPCU...
Страница 79: ...Appendix A A OS limitation...
Страница 81: ...71 Advanced LAN Bypass User Manual Appendix A OS limitation...