- |
USB 2.0 USB 3.x GigE |
Syntax
INT is_Configuration (UINT nCommand, void* pParam, UINT cbSizeOfParam)
Description
Enables or disables the configuration for the ETH daemon for detecting or configuring misconfigured cameras.
The nCommand input parameter is used to select the function mode. The pParam input parameter depends on the selected function mode. If you select functions for setting or returning a value, pParam contains a pointer to a variable of the UINT type. The size of the memory area to which pParam refers is specified in the cbSizeOfParam input parameter.
Input parameters
hCam |
Camera handle |
pParam |
Pointer to a function parameter, whose function depends on nCommand. |
cbSizeOfParam |
Size (in bytes) of the memory area to which pParam refers. |
Contents of the CONFIGURATION_SEL structure
INT |
IS_CONFIG_ETH_CONFIGURATION_MODE_ON |
Enables the configuration mode for the ETH daemon. |
INT |
IS_CONFIG_ETH_CONFIGURATION_MODE_OFF |
Disables the configuration mode for the ETH daemon. |
UINT nEnable = IS_CONFIG_ETH_CONFIGURATION_MODE_ON;
INT nRet = is_Configuration(IS_CONFIG_ETH_CONFIGURATION_MODE_CMD_SET_ENABLE, (void*)&nEnable, sizeof(nEnable));
if (nRet == IS_SUCCESS){
// ETH configuration mode is activated
// All cameras can be seen and configured (Capture- or FreezeVideo is not allowed
// only IP configuration)
…
}
nEnable = IS_CONFIG_ETH_CONFIGURATION_MODE_OFF;
is_Configuration(IS_CONFIG_ETH_CONFIGURATION_MODE_CMD_SET_ENABLE, (void*)&nEnable, sizeof(nEnable));
if (nRet == IS_SUCCESS){
// ETH configuration mode is deactivated
// Cameras can be used in normal Mode
…
}