📄 cczr32212.h
字号:
//cczr32212.h#ifndef ZR_I2C_ADDR#define ZR_I2C_ADDR 0x60#endif#define ZR32212_PARTID 0x34/* i2c register names - ZR32212 */#define P_ZR2_PARTID 0x00 /* Part ID ZR32112 0x30, ZR32212 - 0x34 */#define P_ZR2_CNTRL 0x01 /* control (soft ARST, ARO, etc) - 0x02 */#define P_ZR2_PWRDN 0x02 /* power down, - 0x1f, should write 0 for normal operation */#define P_ZR2_POLAR 0x03 /* output signals format/polarity - 0x00 */#define P_ZR2_TSTOPT 0x04 /* test(ramp) and option (mclc/2) modes - 0x00 */#define P_ZR2_EXTLNT 0x05 /* extended line time (~virt. width) - 0x00 */#define P_ZR2_VIDEO 0x06 /* 0 - still, 1 - video - 0x00 */#define P_ZR2_ISMOD 0x07 /* Image Scan Modes (should be stopped!!) - 0x00 *//* * direction V 0x20 * direction H 0x10 * decimation 0x0c 0 - no, 4 - :2, 8 - :4, c - :8 * color 0x01 (0 - color, 1 - mono) - use "R" gain to control all */#define P_ZR2_WSCLH 0x08 /* Start of Output Window Column Number (hi) - 0x00 */#define P_ZR2_WSCLL 0x09 /* Start of Output Window Column Number (lo) - 0x00 */#define P_ZR2_WSRWH 0x0a /* Start of Output Window Row Number (hi) - 0x00 */#define P_ZR2_WSRWL 0x0b /* Start of Output Window Row Number (lo) - 0x00 */#define P_ZR2_WDTHH 0x0c /* Output Window Width (hi) - 0x05 */#define P_ZR2_WDTHL 0x0d /* Output Window Width (lo) - 0x08 */#define P_ZR2_HGHTH 0x0e /* Output Window Height (hi) - 0x03 */#define P_ZR2_HGHTL 0x0f /* Output Window Height (lo) - 0xc8 */#define P_ZR2_VEXPH 0x10 /* Video Mode Exposure Time (hi, bits 2:0) - 0x03 */#define P_ZR2_VEXPL 0x11 /* Video Mode Exposure Time (lo, bits 7:0) - 0xc8 */#define P_ZR2_GAINR 0x12 /* Analog Gain Red - 0x00 */#define P_ZR2_GAING 0x13 /* Analog Gain Green (red line) - 0x00 */#define P_ZR2_GAINB 0x15 /* Analog Gain Blue - bug in datasheet (0x14) - 0x00 */#define P_ZR2_GAINGB 0x14 /* Analog Gain Green (blue line) - bug in D.S. (0x15) - 0x00 */void ccamInitWndSizeZR32212 (void) ;int init_ZR32212(void);int program_ZR32212(void);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -