资源简介
sony imx290 驱动,通过SPI配置寄存器, 支持720P 1080P, 2to1WDR , 3to1WDR.
代码片段和文件信息
#if !defined(__IMX290_CMOS_H_)
#define __IMX290_CMOS_H_
#include
#include
#include
#include “hi_comm_sns.h“
#include “hi_comm_video.h“
#include “hi_sns_ctrl.h“
#include “mpi_isp.h“
#include “mpi_ae.h“
#include “mpi_awb.h“
#include “mpi_af.h“
#include “imx290_def.h“
#ifdef __cplusplus
#if __cplusplus
extern “C“{
#endif
#endif /* End of #ifdef __cplusplus */
#define IMX290_ID 290
/****************************************************************************
* local variables *
****************************************************************************/
#define FULL_LINES_MAX (0x3FFFF)
#define SHS1_ADDR (0x220)
#define SHS2_ADDR (0x224)
#define GAIN_ADDR (0x214)
#define HCG_ADDR (0x209)
#define VMAX_ADDR (0x218)
#define HMAX_ADDR (0x21c)
#define RHS1_ADDR (0x230)
#define VMAX_IMX290_1080P30_LINE (1133)
#define VMAX_IMX290_1080P60_LINE (1125)
#define VMAX_IMX290_720P120_LINE (750)
#define VMAX_IMX290_720P60_WDR (750)
#if SENSOR_IMX290_LINE_WDR_12BIT
#define VMAX_IMX290_1080P30_WDR (1125)
#else
#define VMAX_IMX290_1080P30_WDR (1190)
#endif
static HI_U32 gu32BRL = 1109;
static HI_U32 gu32RHS1_Max = (VMAX_IMX290_1080P30_WDR - 1109) * 2 - 21;
static HI_BOOL bInit = HI_FALSE;
HI_BOOL bSensorInit = HI_FALSE;
static HI_U32 gu32FullLinesStd = VMAX_IMX290_1080P30_LINE;
static HI_U32 gu32FullLines = VMAX_IMX290_1080P30_LINE;
static HI_U32 gu32PreFullLines = VMAX_IMX290_1080P30_LINE;
WDR_MODE_E genSensorMode = WDR_MODE_NONE;
HI_U8 gu8SensorImageMode = SENSOR_IMX290_1080P_30FPS_MODE;
static HI_U8 gu8HCGReg = 0x01;
static HI_BOOL gbFPSUp = HI_FALSE;
static HI_BOOL gbVMAXDelay = HI_FALSE;
ISP_SNS_REGS_INFO_S g_stSnsRegsInfo = {0};
ISP_SNS_REGS_INFO_S g_stPreSnsRegsInfo = {0};
static HI_U32 au32WDRIntTime[2] = {0};
#define PATHLEN_MAX 256
#define CMOS_CFG_INI “imx290_cfg.ini“
static char pcName[PATHLEN_MAX] = “configs/imx290_cfg.ini“;
/* 2to1 WDR*/
static ISP_AE_ROUTE_EX_S gstAERouteExAttr =
{
14
{
{2 1024 1024 1024 0}
{9 1024 1024 1024 0} //for ghost
{9 3584 1024 1024 0}
{43 3584 1024 1024 0} //for flicker
{43 5120 1024 1024 0}
{65536 5120 1024 1024 0} //for noise
{65536 5120 1024 4096 0}
{65536 10240 1024 4096 0} //balance sensor input and isp gain
{65536 10240 1024 8192 0}
{65536 14336 1024 8192 0}
{65536 14336 1024 10240 0}
{65536 32768 1024 10240 0}
{65536 32768 1024 16384 0}
{65536 8153234 1024 16384 0}
}
};
static HI_S32 cmos_get_ae_default(AE_SENSOR_DEFAULT_S *pstAeSnsDft)
{
if (HI_NULL == pstAeSnsDft)
{
printf(“null pointer when get ae default value!\n“);
return -1;
}
pstAeSnsDft->u32LinesPer500ms = gu32FullLinesStd * 30 / 2;
pstAeSnsDft->u32FullLinesStd = gu32FullLinesStd
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
....... 59658 2016-01-06 14:17 sony_imx290-spi\imx290_cmos.c
....... 662 2015-07-20 11:23 sony_imx290-spi\imx290_def.h
....... 25459 2015-07-20 13:58 sony_imx290-spi\imx290_sensor_ctl.c
文件 1614 2015-05-05 21:42 sony_imx290-spi\Makefile
目录 0 2017-01-05 10:28 sony_imx290-spi
----------- --------- ---------- ----- ----
87393 5
- 上一篇:计算机专业英语阅读材料(一般考试用的)
- 下一篇:sil9022 sil9034
相关资源
- Automotive SPICE PRM v4.5中文
- 乐鑫esp8266 NONOS SDK 3.0编程使用 SPI 驱动
- ADXL345加速度传感器SPI通信程序
- VHDL控制进行SPI读写
- SPI FLASH 仿真模型
- SPI按键显示接口设计
- dspic33的PWM调试程序
- dspic33f的AD采样程序
- ZigBee 协议在Linux上的实现
- PCAP01_SPI_main编程代码.zip
- 50nm工艺 CMOS bsim4模型
- tdc GPX2芯片配置程序
- SPI协议Verilog实现
- STM32F103X SPI2 DMA 驱动LCD.zip
- RC带通滤波器pspice仿真电路
- SSP作SPI从机实验.rar
- 基于粒子群算法优化Spiking神经网络
- 基于STM32F4xx,MS5611气压传感器使用S
- STCMCU-SPI演程
- ISD1700SPI通讯总结
- HSpice电路仿真软件教程与
- 32位SPI通信FPGA
- STM32-硬件SPI-4004语音播放实验
- OrCAD的PSpice元件库
- SPI通信协议中文版SPIV3
- 基于stm32f103c8t6的已实现模拟iic和模拟
- Hspice 0.18um工艺库
- SPI接口与74HC595的连接原理图
- fpga spi通信程序
- 重写Spinner类,实现点击后弹出带有确
评论
共有 条评论