Advanced LAN Bypass User Manual
38
3.7.10.4
lbp_get_disconnect_led(int segment, unsigned char *duty, unsigned char
*period)
Gets the ON duty cycle and the total ON/OFF period of LED indication for a DISCON-
NECT action.
Returns 0 on success or the following error codes in the event of an error:
3.7.11
Master/Slave Mode
3.7.11.1
lbp_set_master_slave_mode(int segment, int master_slave_mode, int
master_slave_config)
Enables or disables master/slave mode and sets the necessary parameters.
The mster_slave_mode settings are defined as follows:
The master_slave_config parameter is set with the bit masks defined below:
Returns 0 on success or the following error codes in the event of an error.
Table 3.42: API Function "lbp_get_disconnect_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
/* Mode for Master Slave Normal. */
#define NORMAL_MODE 0x00
#define SLAVE_MODE 0x01
#define MASTER_MODE 0x02
Table 3.43: Parameter master_slave_config
Parameter master_slave_config bitmasks
Meaning
Bit 0
Disable toggle pin or not
0b = Do not disable (Default)
1b = Disable toggle pin
Table 3.44: API Function "lbp_set_master_slave_mode" 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
Содержание 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...