⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 csi.h

📁 嵌入式Linux系统下,ov965摄像头驱动.
💻 H
字号:
/*
*
*	MX21 CSI driver
*
*	cliff.wong@motorola.com
*	7 Jun, 04
*/

typedef struct
{
	//control reg 1
	unsigned int swap16_en;
	unsigned int ext_vsync;
	unsigned int eof_int_en;
	unsigned int prp_if_en;
	unsigned int ccir_mode;
	unsigned int cof_int_en;
	unsigned int sf_or_inten;
	unsigned int rf_or_inten;
	unsigned int statff_level;
	unsigned int staff_inten;
	unsigned int rxff_level;
	unsigned int rxff_inten;
	unsigned int sof_pol;
	unsigned int sof_inten;
	unsigned int mclkdiv;
	unsigned int hsync_pol;
	unsigned int ccir_en;
	unsigned int mclken;
	unsigned int fcc;
	unsigned int pack_dir;
	unsigned int gclk_mode;
	unsigned int inv_data;
	unsigned int inv_pclk;
	unsigned int redge;
	
	//system control
	unsigned int module_irq_enable;
	
	//control reg 3
	unsigned int csi_sup;
	unsigned int zero_pack_en;
	unsigned int ecc_int_en;
	unsigned int ecc_auto_en;
	
	//fifo counter
	unsigned int rxcnt;
}CSI_CFG;


typedef struct
{
	int sff_or_int;
	int rff_or_int;
	int statff_int;
	int rxff_int;
	int eof_int;
	int sof_int;
	int f2_int;
	int f1_int;
	int cof_int;
	int ecc_int;
	int drdy;
}CSI_STATUS;


//control commands
#define IOCTL_CSI_READ_CONFIG	10	//arg type: CSI_CFG *
#define IOCTL_CSI_CONFIG		11	//arg type: CSI_CFG *
#define IOCTL_CSI_READ_STATUS	12	//arg type: CSI_STATUS *
#define IOCTL_CSI_GET_FRMCNT	23	//arg type: int *
#define IOCTL_CSI_RST_FRMCNT	14	//arg type: nil
#define IOCTL_DMA_CAPTURE		8
#define IOCTL_STOP_CAPTURE		13
#define IOCTL_SET_FMT			18

#define IOCTL_I2C_R				30
#define IOCTL_I2C_W				31

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -