48 #include "../Common/camera.h" 76 #define OV9655_ID 0x96 82 #define OV9655_SENSOR_PIDH 0x0A 83 #define OV9655_SENSOR_PIDL 0x0B 84 #define OV9655_SENSOR_COM7 0x12 85 #define OV9655_SENSOR_TSLB 0x3A 86 #define OV9655_SENSOR_MTX1 0x4F 87 #define OV9655_SENSOR_MTX2 0x50 88 #define OV9655_SENSOR_MTX3 0x51 89 #define OV9655_SENSOR_MTX4 0x52 90 #define OV9655_SENSOR_MTX5 0x53 91 #define OV9655_SENSOR_MTX6 0x54 92 #define OV9655_SENSOR_BRTN 0x55 93 #define OV9655_SENSOR_CNST1 0x56 94 #define OV9655_SENSOR_CNST2 0x57 99 #define OV9655_BRIGHTNESS_LEVEL0 0xB0 100 #define OV9655_BRIGHTNESS_LEVEL1 0x98 101 #define OV9655_BRIGHTNESS_LEVEL2 0x00 102 #define OV9655_BRIGHTNESS_LEVEL3 0x18 103 #define OV9655_BRIGHTNESS_LEVEL4 0x30 105 #define OV9655_BLACK_WHITE_BW 0xCC000000000000 106 #define OV9655_BLACK_WHITE_NEGATIVE 0xEC808000008080 107 #define OV9655_BLACK_WHITE_BW_NEGATIVE 0xEC000000000000 108 #define OV9655_BLACK_WHITE_NORMAL 0xCC808000008080 110 #define OV9655_CONTRAST_LEVEL0 0x30 111 #define OV9655_CONTRAST_LEVEL1 0x38 112 #define OV9655_CONTRAST_LEVEL2 0x40 113 #define OV9655_CONTRAST_LEVEL3 0x50 114 #define OV9655_CONTRAST_LEVEL4 0x60 116 #define OV9655_COLOR_EFFECT_NONE 0xCC808000008080 117 #define OV9655_COLOR_EFFECT_ANTIQUE 0xCC000020F00000 118 #define OV9655_COLOR_EFFECT_BLUE 0xCC000000000060 119 #define OV9655_COLOR_EFFECT_GREEN 0xCC000000008000 120 #define OV9655_COLOR_EFFECT_RED 0xCC600000000000 128 void ov9655_Init(uint16_t DeviceAddr, uint32_t resolution);
129 void ov9655_Config(uint16_t DeviceAddr, uint32_t feature, uint32_t value, uint32_t BR_value);
void CAMERA_IO_Write(uint8_t addr, uint8_t reg, uint8_t value)
CAMERA_DrvTypeDef ov9655_drv
void CAMERA_Delay(uint32_t delay)
void ov9655_Config(uint16_t DeviceAddr, uint32_t feature, uint32_t value, uint32_t BR_value)
Configures the OV9655 camera feature.
uint8_t CAMERA_IO_Read(uint8_t addr, uint8_t reg)
uint16_t ov9655_ReadID(uint16_t DeviceAddr)
Read the OV9655 Camera identity.
void ov9655_Init(uint16_t DeviceAddr, uint32_t resolution)
Initializes the OV9655 CAMERA component.
void CAMERA_IO_Init(void)