User Guide

ArduCAM USB Camera SDK User Guide
www.ArduCAM.com
5
4.2.1 General Function
4.2.1.1 unsigned int ArduCam_autoopen( ArduCamHandle &useHandle,
ArduCamCfg* useCfg )
This function is used auto open the supported cameras when it find the first camera on the
USB bus, which matched the vendor code of the camera in ArduCamCfg structure.
Param 1: handle to the USB camera instance
Param 2: ArduCamCfg structure instance
Return vale: error code
4.2.1.2 unsigned int ArduCam_scan( ArduCamIndexinfo* pstUsbIdxArray )
Scan how many supported cameras available on the USB bus, and record the camera index
and camera serial number in Param 1.
Param 1: list of the supported ArduCAM USB camera
Return vale: number of supported cameras
4.2.1.3 unsigned int ArduCam_open( ArduCamHandle &useHandle, ArduCamCfg*
useCfg, unsigned long usbIdx )
It is commonly used with scan method and open the camera with the camera index.
Param 1: handle to the USB camera instance
Param 2: ArduCamCfg structure instance
Param 3: index of the camera
Return vale: error code
4.2.1.4 unsigned int ArduCam_close( ArduCamHandle useHandle );
Close the current camera by the camera handle.
Param 1: handle to the USB camera instance
Return vale: error code
4.2.1.5 unsigned int ArduCam_getSensorCfg( ArduCamHandle useHandle,
ArduCamCfg* useCfg );
Get the configuration parameter of the USB camera instance.
Param1: handle to the USB camera instance
Param1: pointer of configuration parameter structure
Return value: error code
4.2.1.6 Recommend Operation Procedure
Single Camera
Multiple Cameras
scan
open(1)
……
open(n)
Processing…
...
Processing…
close(1)
close(n)
……