ArduCAM USB Camera SDK User Guide Rev 1.
ArduCAM USB Camera SDK User Guide Table of Contents 1 2 3 3.1 3.2 3.3 4 4.1 Introduction ............................................................................................................................. 3 USB SDK Library ................................................................................................................... 3 Demo Code ............................................................................................................................... 3 Thread.cpp ........
ArduCAM USB Camera SDK User Guide unsigned short u16Addr, unsigned char u8Len, unsigned char* pu8Data );............. 7 4.2.5.2 unsigned int ArduCam_readUserData( ArduCamHandle useHandle, unsigned short u16Addr, unsigned char u8Len, unsigned char* pu8Data ) .............. 7 4.2.6 Camera Board Configuration ................................................................................ 7 4.2.6.
ArduCAM USB Camera SDK User Guide 1 Introduction This user guide describes the detail software operation of ArduCAM USB camera shield based on SDK library. The latest SDK library and examples can be downloaded from the https://github.com/arducam. 2 USB SDK Library The ArdCAM USB SDK library is designed for both ArduCAM USB2.0 and USB3.0 camera boards. It is binary from library which composed by *.lib and *.dll files. The x86 is compiled for 32bit system and the x64 is compiled for 64bit system.
ArduCAM USB Camera SDK User Guide typedef enum { I2C_MODE_8_8 I2C_MODE_8_16 I2C_MODE_16_8 I2C_MODE_16_16 }i2c_mode; = 0, = 1, = 2, =3 4.1.2 ArduCamIndexinfo Data Structure Members u8UsbIndex: Uint8, USB interface index u8SerialNum[16]: Uint8[], USB camera serial number The ArduCamIndexinfo data structure is useful when multiple cameras connected, it helps to find the corresponding camera with index and serial number. 4.
ArduCAM USB Camera SDK User Guide 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.
ArduCAM USB Camera SDK User Guide 4.2.2 Image Capture Function 4.2.2.1 unsigned int ArduCam_beginCaptureImage( ArduCamHandle useHandle ) Create and prepare the image capture task list. Param 1: handle to the USB camera instance Return value: error code 4.2.2.2 unsigned int ArduCam_captureImage( ArduCamHandle useHandle ) Launch an image capture task. Param 1: handle to the USB camera instance Return value: error code 4.2.2.
ArduCAM USB Camera SDK User Guide long regAddr, unsigned long val ) Write the sensor register. Param 1: handle to the USB camera instance Param 2: the register address to be written Param 3: value to be written Return value: error code 4.2.4.2 unsigned int ArduCam_readSensorReg( ArduCamHandle useHandle, unsigned long regAddr, unsigned long* pval ) Read the sensor register. Param 1: handle to the USB camera instance Param 2: the register address to be read Param 3: read value Return value: error code 4.2.
ArduCAM USB Camera SDK User Guide Return value: error code 8 www.ArduCAM.
ArduCAM USB Camera SDK User Guide 5 Vendor Command Code The vendor command code is used to configure the hardware or firmware registers. The USB2.0 and USB3.0 vendor command code lists as below: 5.1 VRCMD Code USB2.
ArduCAM USB Camera SDK User Guide 6 Error Code The error code of the SDK library is defined in the following table.