23 Advanced LAN Bypass User ManualChapter 3 LIBLBPCU -ADVANCED LAN BYPASS LIBRARY3.6 How to Use the APIThe following flow summarizes how to use the LBP library: Call the lbp_open function to allocate and initialize resources Perform functions or operations on the bypass segment(s) Call the lbp_close function to properly release the allocated resources3.7 API Functions3.7.1 LBPCU Open/Close3.7.1.1 lbp_err lbp_check_conf_file(char * conf_file)Checks the configuration file.This function will automatically be called by lbp_open(). It is deprecated as a directfunction call but is kept for backwards compatibility.Returns 0 on success or the following error codes in the case of an error:3.7.1.2 lbp_err lbp_open(int segment)Opens the communication interface for a specified bypass segment.This function needs to be called before executing any other function on the specificLAN bypass segment.Returns 0 on success or the following error codes in the case of an error:lbp_set_bypass_ctrl_type 3.7.9.1 00.10 00.08 00.04lbp_get_bypass_ctrl_type 3.7.9.2 00.10 00.08 00.04lbp_get_bl_fw_version 3.7.2.5 00.16 00.10 00.05lbp_set_bypass_led 3.7.10.1 00.18 00.12 00.06lbp_get_bypass_led 3.7.10.2 00.18 00.12 00.06lbp_set_disconnect_led 3.7.10.3 00.18 00.12 00.06lbp_get_disconnect_led 3.7.10.4 00.18 00.12 00.06lbp_set_master_slave_mode 3.7.11.1 01.10 01.10 00.08lbp_get_master_slave_mode 3.7.11.2 01.10 01.10 00.08lbp_set_master_led 3.7.11.3 01.10 01.10 00.08lbp_get_master_led 3.7.11.4 01.10 01.10 00.08lbp_scan_event_init 3.7.12.1 01.16 01.14 00.08lbp_scan_event_detach 3.7.12.2 01.16 01.14 00.08Table 3.2: API Function "lbp_check_conf_file" Error CodesName Error CodeLBP_ERR_OPEN_FILE 0x80LBP_ERR_CONF_FILE_FORMAT 0x81LBP_ERR_CONF_GET_PCI_DEVICE 0x82LBP_ERR_PARAM_OUT_OF_BOUND 0x93LBP_ERR_PARAM_NULL_POINTER 0x94