gc032a_regs.h 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. /*
  2. * GC032A register definitions.
  3. */
  4. #ifndef __GC032A_REG_REGS_H__
  5. #define __GC032A_REG_REGS_H__
  6. #define SENSOR_ID_HIGH 0XF0
  7. #define SENSOR_ID_LOW 0XF1
  8. #define PAD_VB_HIZ_MODE 0XF2
  9. #define SYNC_OUTPUT 0XF3
  10. #define I2C_CONFIG 0XF4
  11. #define PLL_MODE1 0XF7
  12. #define PLL_MODE2 0XF8
  13. #define CM_MODE 0XF9
  14. #define ISP_DIV_MODE 0XFA
  15. #define I2C_DEVICE_ID 0XFB
  16. #define ANALOG_PWC 0XFC
  17. #define ISP_DIV_MODE2 0XFD
  18. #define RESET_RELATED 0XFE // Bit[7]: Software reset
  19. // Bit[6]: cm reset
  20. // Bit[5]: spi reset
  21. // Bit[4]: CISCTL_restart_n
  22. // Bit[3]: PLL_rst
  23. // Bit[2:0]: page select
  24. // 000:page0
  25. // 001:page1
  26. // 010:page2
  27. // 011:page3
  28. //----page0-----------------------------
  29. #define P0_EXPOSURE_HIGH 0X03
  30. #define P0_EXPOSURE_LOW 0X04
  31. #define P0_HB_HIGH 0X05
  32. #define P0_HB_LOW 0X06
  33. #define P0_VB_HIGH 0X07
  34. #define P0_VB_LOW 0X08
  35. #define P0_ROW_START_HIGH 0X09
  36. #define P0_ROW_START_LOW 0X0A
  37. #define P0_COLUMN_START_HIGH 0X0B
  38. #define P0_COLUMN_START_LOW 0X0C
  39. #define P0_WINDOW_HEIGHT_HIGH 0X0D
  40. #define P0_WINDOW_HEIGHT_LOW 0X0E
  41. #define P0_WINDOW_WIDTH_HIGH 0X0F
  42. #define P0_WINDOW_WIDTH_LOW 0X10
  43. #define P0_SH_DELAY 0X11
  44. #define P0_VS_ST 0X12
  45. #define P0_VS_ET 0X13
  46. #define P0_CISCTL_MODE1 0X17
  47. #define P0_BLOCK_ENABLE_1 0X40
  48. #define P0_AAAA_ENABLE 0X42
  49. #define P0_SPECIAL_EFFECT 0X43
  50. #define P0_SYNC_MODE 0X46
  51. #define P0_GAIN_CODE 0X48
  52. #define P0_DEBUG_MODE2 0X4C
  53. #define P0_WIN_MODE 0X50
  54. #define P0_OUT_WIN_Y1_HIGH 0X51
  55. #define P0_OUT_WIN_Y1_LOW 0X52
  56. #define P0_OUT_WIN_X1_HIGH 0X53
  57. #define P0_OUT_WIN_X1_LOW 0X54
  58. #define P0_OUT_WIN_HEIGHT_HIGH 0X55
  59. #define P0_OUT_WIN_HEIGHT_LOW 0X56
  60. #define P0_OUT_WIN_WIDTH_HIGH 0X57
  61. #define P0_OUT_WIN_WIDTH_LOW 0X58
  62. #define P0_GLOBAL_SATURATION 0XD0
  63. #define P0_SATURATION_CB 0XD1
  64. #define P0_SATURATION_CR 0XD2
  65. #define P0_LUMA_CONTRAST 0XD3
  66. #define P0_CONTRAST_CENTER 0XD4
  67. #define P0_LUMA_OFFSET 0XD5
  68. #define P0_FIXED_CB 0XDA
  69. #define P0_FIXED_CR 0XDB
  70. //----page3-----------------------------
  71. #define P3_IMAGE_WIDTH_LOW 0X5B
  72. #define P3_IMAGE_WIDTH_HIGH 0X5C
  73. #define P3_IMAGE_HEIGHT_LOW 0X5D
  74. #define P3_IMAGE_HEIGHT_HIGH 0X5E
  75. #endif //__GC032A_REG_REGS_H__