PicoCamera
0.2.0
Camera library for RP2040 with an esp32-camera compatible API
GitHub
Toggle main menu visibility
载入中...
搜索中...
未找到
gc2145_regs.h
1
/*
2
* This file is part of the PicoCamera project.
3
* https://github.com/umeiko/PicoCamera
4
*
5
* Author: umeko <umeko@stu.xmu.edu.cn>
6
* License: MIT
7
*/
8
9
/*
10
* GC2145 register definitions (8-bit register addresses).
11
* Ported from esp32-camera's private_include/gc2145_regs.h (Apache-2.0).
12
*/
13
#ifndef __GC2145_REGS_H__
14
#define __GC2145_REGS_H__
15
16
#define CHIP_ID_HIGH 0XF0
17
#define CHIP_ID_LOW 0XF1
18
#define PLL_MODE1 0XF7
19
#define PLL_MODE2 0XF8
20
#define CM_MODE 0XF9
21
#define CLK_DIV_MODE 0XFA
22
#define RESET_RELATED 0xfe
// Bit[7]: Software reset
23
// Bit[6]: cm reset
24
// Bit[5]: mipi reset
25
// Bit[4]: CISCTL_restart_n
26
// Bit[3]: NA
27
// Bit[2:0]: page select
28
// 000:page0
29
// 001:page1
30
// 010:page2
31
// 011:page3
32
33
//-page0----------------
34
35
#define P0_EXPOSURE_HIGH 0X03
36
#define P0_EXPOSURE_LOW 0X04
37
#define P0_HB_HIGH 0X05
38
#define P0_HB_LOW 0X06
39
#define P0_VB_HIGH 0X07
40
#define P0_VB_LOW 0X08
41
#define P0_ROW_START_HIGH 0X09
42
#define P0_ROW_START_LOW 0X0A
43
#define P0_COL_START_HIGH 0X0B
44
#define P0_COL_START_LOW 0X0C
45
46
#define P0_WIN_HEIGHT_HIGH 0X0D
47
#define P0_WIN_HEIGHT_LOW 0X0E
48
#define P0_WIN_WIDTH_HIGH 0X0F
49
#define P0_WIN_WIDTH_LOW 0X10
50
#define P0_ANALOG_MODE1 0X17
51
#define P0_ANALOG_MODE2 0X18
52
53
#define P0_SPECIAL_EFFECT 0X83
54
#define P0_OUTPUT_FORMAT 0x84
// Format select
55
// Bit[7]:YUV420 row switch
56
// Bit[6]:YUV420 col switch
57
// Bit[7]:YUV420_legacy
58
// Bit[4:0]:output data mode
59
// 5'h00 Cb Y Cr Y
60
// 5'h01 Cr Y Cb Y
61
// 5'h02 Y Cb Y Cr
62
// 5'h03 Y Cr Y Cb
63
// 5'h04 LSC bypass, C/Y
64
// 5'h05 LSC bypass, Y/C
65
// 5'h06 RGB 565
66
// 5'h0f bypass 10bits
67
// 5'h17 switch odd/even column /row to controls output Bayer pattern
68
// 00 RGBG
69
// 01 RGGB
70
// 10 BGGR
71
// 11 GBRG
72
// 5'h18 DNDD out mode
73
// 5'h19 LSC out mode
74
// 5;h1b EEINTP out mode
75
#define P0_FRAME_START 0X85
76
#define P0_SYNC_MODE 0X86
77
#define P0_MODULE_GATING 0X88
78
#define P0_BYPASS_MODE 0X89
79
#define P0_DEBUG_MODE2 0X8C
80
#define P0_DEBUG_MODE3 0X8D
81
#define P0_CROP_ENABLE 0X90
82
#define P0_OUT_WIN_Y1_HIGH 0X91
83
#define P0_OUT_WIN_Y1_LOW 0X92
84
#define P0_OUT_WIN_X1_HIGH 0X93
85
#define P0_OUT_WIN_X1_LOW 0X94
86
#define P0_OUT_WIN_HEIGHT_HIGH 0X95
87
#define P0_OUT_WIN_HEIGHT_LOW 0X96
88
#define P0_OUT_WIN_WIDTH_HIGH 0X97
89
#define P0_OUT_WIN_WIDTH_LOW 0X98
90
#define P0_SUBSAMPLE 0X99
91
#define P0_SUBSAMPLE_MODE 0X9A
92
93
94
#endif
// __GC2145_REGS_H__
English version
制作者
doxygen
1.18.0