Advanced LAN Bypass User Manual
36
3.7.9.2
lbp_get_bypass_ctrl_type(int segment, int *bp_ctrl_type)
Gets the bypass control type.
The macros are defined as:
Returns 0 on success or the following error codes in the event of an error:
3.7.10
LBP Bypass LED
3.7.10.1
lbp_set_bypass_led(int segment, unsigned char duty, unsigned char period)
Sets the ON duty cycle and the total ON/OFF period of LED indication for a BYPASS
action.
The duty settings are defined as follows:
The period settings are defined as follows:
Returns 0 on success or the following error codes in the event of an error:
/* Bypass control type. */
#define COPPER_BP_TYPE 0xFF
#define FIBER_BP_TYPE 0x00
Table 3.34: API Function "lbp_get_bypass_ctrl_type" 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
LBP_ERR_COMMAND_NOT_SUPPORT
0x96
Table 3.35: Parameter Duty
Value
Meaning
0 ~ 100
Duty of the LED
Table 3.36: Parameter Period
Value
Meaning
0 ~ 255
Period, 100 ms per unit
Table 3.37: API Function "lbp_set_bypass_led" 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
LBP_ERR_COMMAND_NOT_SUPPORT
0x96
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...