PicoCamera
0.2.0
Camera library for RP2040 with an esp32-camera compatible API
GitHub
Toggle main menu visibility
Loading...
Searching...
No Matches
gc032a_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
* GC032A register definitions (8-bit register addresses).
11
* Ported from esp32-camera's private_include/gc032a_regs.h (Apache-2.0),
12
* comments preserved as-is.
13
*/
14
#ifndef __GC032A_REGS_H__
15
#define __GC032A_REGS_H__
16
17
#define SENSOR_ID_HIGH 0XF0
18
#define SENSOR_ID_LOW 0XF1
19
#define PAD_VB_HIZ_MODE 0XF2
20
#define SYNC_OUTPUT 0XF3
21
#define I2C_CONFIG 0XF4
22
#define PLL_MODE1 0XF7
23
#define PLL_MODE2 0XF8
24
#define CM_MODE 0XF9
25
#define ISP_DIV_MODE 0XFA
26
#define I2C_DEVICE_ID 0XFB
27
#define ANALOG_PWC 0XFC
28
#define ISP_DIV_MODE2 0XFD
29
#define RESET_RELATED 0XFE
// Bit[7]: Software reset
30
// Bit[6]: cm reset
31
// Bit[5]: spi reset
32
// Bit[4]: CISCTL_restart_n
33
// Bit[3]: PLL_rst
34
// Bit[2:0]: page select
35
// 000:page0
36
// 001:page1
37
// 010:page2
38
// 011:page3
39
40
//----page0-----------------------------
41
#define P0_EXPOSURE_HIGH 0X03
42
#define P0_EXPOSURE_LOW 0X04
43
#define P0_HB_HIGH 0X05
44
#define P0_HB_LOW 0X06
45
#define P0_VB_HIGH 0X07
46
#define P0_VB_LOW 0X08
47
#define P0_ROW_START_HIGH 0X09
48
#define P0_ROW_START_LOW 0X0A
49
#define P0_COLUMN_START_HIGH 0X0B
50
#define P0_COLUMN_START_LOW 0X0C
51
#define P0_WINDOW_HEIGHT_HIGH 0X0D
52
#define P0_WINDOW_HEIGHT_LOW 0X0E
53
#define P0_WINDOW_WIDTH_HIGH 0X0F
54
#define P0_WINDOW_WIDTH_LOW 0X10
55
#define P0_SH_DELAY 0X11
56
#define P0_VS_ST 0X12
57
#define P0_VS_ET 0X13
58
#define P0_CISCTL_MODE1 0X17
59
60
#define P0_BLOCK_ENABLE_1 0X40
61
#define P0_AAAA_ENABLE 0X42
62
#define P0_SPECIAL_EFFECT 0X43
63
#define P0_SYNC_MODE 0X46
64
#define P0_GAIN_CODE 0X48
65
#define P0_DEBUG_MODE2 0X4C
66
#define P0_WIN_MODE 0X50
67
#define P0_OUT_WIN_Y1_HIGH 0X51
68
#define P0_OUT_WIN_Y1_LOW 0X52
69
#define P0_OUT_WIN_X1_HIGH 0X53
70
#define P0_OUT_WIN_X1_LOW 0X54
71
#define P0_OUT_WIN_HEIGHT_HIGH 0X55
72
#define P0_OUT_WIN_HEIGHT_LOW 0X56
73
#define P0_OUT_WIN_WIDTH_HIGH 0X57
74
#define P0_OUT_WIN_WIDTH_LOW 0X58
75
76
#define P0_GLOBAL_SATURATION 0XD0
77
#define P0_SATURATION_CB 0XD1
78
#define P0_SATURATION_CR 0XD2
79
#define P0_LUMA_CONTRAST 0XD3
80
#define P0_CONTRAST_CENTER 0XD4
81
#define P0_LUMA_OFFSET 0XD5
82
#define P0_FIXED_CB 0XDA
83
#define P0_FIXED_CR 0XDB
84
85
//----page3-----------------------------
86
#define P3_IMAGE_WIDTH_LOW 0X5B
87
#define P3_IMAGE_WIDTH_HIGH 0X5C
88
#define P3_IMAGE_HEIGHT_LOW 0X5D
89
#define P3_IMAGE_HEIGHT_HIGH 0X5E
90
91
92
#endif
//__GC032A_REGS_H__
中文文档
Generated by
doxygen
1.18.0