Main Page | Modules | Namespace List | Data Structures | Directories | File List | Namespace Members | Data Fields | Globals

CAMconfig.c File Reference

#include "CAMconfig.h"
#include "CAMdefault.h"

Defines

#define CAM_REG_RESET   0x12
 defines for some well known sccb registers
#define CAM_REG_CAM_ID_HI   0x0a
#define CAM_REG_CAM_ID_LO   0x0b
#define DEBUG_PRINTF(s)
#define CAM_MASK_RESET_BIT   (1 << 7)

Functions

T_ERROR_CODE cam_setup (T_CAMERA_HANDLE *pa_phCamera, T_GPIO_MASK pa_sio_cMask, T_GPIO_MASK pa_sio_dMask, T_GPIO_MASK pa_pwdnMask, unsigned char pa_cDevAddr, unsigned short *pa_pConfigParams, unsigned long pa_nCoreClk, void *pa_Generic)
T_ERROR_CODE cam_close (T_CAMERA_HANDLE pa_hCamera)

Define Documentation

#define CAM_MASK_RESET_BIT   (1 << 7)
 

#define CAM_REG_CAM_ID_HI   0x0a
 

#define CAM_REG_CAM_ID_LO   0x0b
 

#define CAM_REG_RESET   0x12
 

defines for some well known sccb registers

#define DEBUG_PRINTF  ) 
 


Function Documentation

T_ERROR_CODE cam_close T_CAMERA_HANDLE  pa_hCamera  ) 
 

Parameters:
pa_hCamera camera handle
Returns:
ERR_NONE on success, appropriate error code otherwise
frees resources allocated by the camera, closes the sccb connection

T_ERROR_CODE cam_setup T_CAMERA_HANDLE pa_phCamera,
T_GPIO_MASK  pa_sio_cMask,
T_GPIO_MASK  pa_sio_dMask,
T_GPIO_MASK  pa_pwdnMask,
unsigned char  pa_cDevAddr,
unsigned short *  pa_pConfigParams,
unsigned long  pa_nCoreClk,
void *  pa_Generic
 

Parameters:
pa_phCamera pointer to created camera handle
pa_sio_cMask gpio flag where the sccb clock pin is connected
pa_sio_dMask gpio flag where the sccb data pin is connected
pa_pwdnMask gpio flag where the power down pin is connected (0 if not connected)
pa_cDevAddr sccb device address of the camera module
pa_pConfigParams pointer to configuration array (holding register address/value pairs)
pa_nCoreClk current core clock frequency
pa_Generic generic parameter for future use - set to 0
Returns:
ERR_NONE on success, appropriate error code otherwise
initialized the sccb, checks for a supported camera, initializes it with the parameters specified with pa_pConfigParams and creates a camera handle


Generated on Thu Mar 2 16:11:30 2006 for VDK Blacksheep by  doxygen 1.4.1