xiOpenDevice

Function xiOpenDevice 

Source
pub unsafe extern "C" fn xiOpenDevice(
    DevId: DWORD,
    hDevice: PHANDLE,
) -> XI_RETURN
Expand description

\brief Initialize device

This function prepares the camera’s software for work. It populates structures, runs initializing procedures, allocates resources - prepares the camera for work.

\note Function creates and returns handle of the specified device. To de-initialize the camera and destroy the handler xiCloseDevice should be called.

@param[in] DevId index of the device @param[out] hDevice handle to device @return XI_OK on success, error value otherwise.