HPM SDK
HPMicro Software Development Kit
hpm_ov7725.c File Reference
#include "hpm_ov7725.h"

Functions

hpm_stat_t ov7725_read_register (camera_context_t *context, uint8_t reg, uint8_t *buf)
 ov7725 read register More...
 
hpm_stat_t ov7725_write_register (camera_context_t *context, uint8_t reg, uint8_t val)
 ov7725 write register More...
 
hpm_stat_t ov7725_load_settings (camera_context_t *context, uint8_t *reg_values, uint32_t count)
 ov7725 load set of register-value pairs More...
 
hpm_stat_t ov7725_software_reset (camera_context_t *context)
 ov7725 reset More...
 
hpm_stat_t ov7725_check_chip_id (camera_context_t *context)
 ov7725 check chip id More...
 
static hpm_stat_t ov7725_set_framesize (camera_context_t *context, uint16_t width, uint16_t height)
 
hpm_stat_t ov7725_set_pixel_format (camera_context_t *context, display_pixel_format_t pixel_format)
 
hpm_stat_t ov7725_init (camera_context_t *context, camera_config_t *ov_config)
 ov7725 initialization routine More...
 
void ov7725_power_up (camera_context_t *context)
 ov7725 power up More...
 

Variables

static const uint8_t ov7725_default_regs [][2]
 
static const uint8_t ov7725_default_yuv_regs [][2]
 

Function Documentation

◆ ov7725_set_framesize()

static hpm_stat_t ov7725_set_framesize ( camera_context_t context,
uint16_t  width,
uint16_t  height 
)
static

◆ ov7725_set_pixel_format()

hpm_stat_t ov7725_set_pixel_format ( camera_context_t context,
display_pixel_format_t  pixel_format 
)

Variable Documentation

◆ ov7725_default_regs

const uint8_t ov7725_default_regs[][2]
static
Initial value:
= {
{ (0x0DU) , 0x41},
{ (0x17U) , 0x22},
{ (0x18U) , 0xa4},
{ (0x19U) , 0x07},
{ (0x1AU) , 0xf0},
{ (0x32U) , 0x00},
{ (0x29U) , 0xA0},
{ (0x2CU) , 0xF0},
{ (0x3DU) , 0x03},
{ (0x2AU) , 0x00},
{ (0x42U) , 0x7F},
{ (0x4DU) , 0x09},
{ (0x63U) , 0xE0},
{ (0x64U) , 0xFF},
{ (0x65U) , 0x20},
{ (0x66U) , 0x00},
{ (0x67U) , 0x00},
{ (0x13U) , 0xF8},
{ (0x0FU) , 0xC5},
{ (0x14U) , 0x11},
{ (0x15U) , (0x02U) | (0x20U) },
{ (0x22U) , 0x7F},
{ (0x23U) , 0x03},
{ (0x24U) , 0x70},
{ (0x25U) , 0x43},
{ (0x26U) , 0xA1},
{ (0x2BU) , 0x00},
{ (0x6BU) , 0xAA},
{ (0x13U) , 0xFF},
{ (0x7EU) , 0x0C},
{ (0x7FU) , 0x16},
{ (0x80U) , 0x2A},
{ (0x81U) , 0x4E},
{ (0x82U) , 0x61},
{ (0x83U) , 0x6F},
{ (0x84U) , 0x7B},
{ (0x85U) , 0x86},
{ (0x86U) , 0x8E},
{ (0x87U) , 0x97},
{ (0x88U) , 0xA4},
{ (0x89U) , 0xAF},
{ (0x8AU) , 0xC5},
{ (0x8BU) , 0xD7},
{ (0x8CU) , 0xE8},
{ (0x8DU) , 0x20},
{ (0x90U) , 0x05},
{ (0x92U) , 0x03},
{ (0x93U) , 0x00},
{ (0x91U) , 0x01},
{ (0x94U) , 0xB0},
{ (0x95U) , 0x9D},
{ (0x96U) , 0x13},
{ (0x97U) , 0x16},
{ (0x98U) , 0x7B},
{ (0x99U) , 0x91},
{ (0x9AU) , 0x1E},
{ (0x9BU) , 0x08},
{ (0x9CU) , 0x20},
{ (0x9EU) , 0x81},
{ (0xA6U) , ( (0x04U) | (0x02U) )},
{ (0x33U) , 0x00},
{ (0x34U) , 0x00},
{ (0x22U) , 0x7F},
{ (0x23U) , 0x03},
{ (0x4AU) , 0x10},
{ (0x49U) , 0x10},
{ (0x4BU) , 0x14},
{ (0x4CU) , 0x17},
{ (0x46U) , 0x05},
{ (0x0EU) , 0x65},
}

◆ ov7725_default_yuv_regs

const uint8_t ov7725_default_yuv_regs[][2]
static
Initial value:
= {
{ (0x3DU) , 0x03},
{ (0x17U) , 0x22},
{ (0x18U) , 0xa4},
{ (0x19U) , 0x07},
{ (0x1AU) , 0xf0},
{ (0x32U) , 0x00},
{ (0x29U) , 0xa0},
{ (0x2CU) , 0xf0},
{ (0x2AU) , 0x00},
{ (0x11U) , 0x01},
{ (0x42U) , 0x7f},
{ (0x4DU) , 0x09},
{ (0x63U) , 0xe0},
{ (0x64U) , 0xff},
{ (0x65U) , 0x20},
{ (0x66U) , 0x00},
{ (0x67U) , 0x48},
{ (0x13U) , 0xf0},
{ (0x0DU) , 0x41},
{ (0x0FU) , 0xc5},
{ (0x14U) , 0x11},
{ (0x22U) , 0x7f},
{ (0x23U) , 0x03},
{ (0x24U) , 0x40},
{ (0x25U) , 0x30},
{ (0x26U) , 0xa1},
{ (0x2BU) , 0x00},
{ (0x6BU) , 0xaa},
{ (0x13U) , 0xff},
{ (0x90U) , 0x05},
{ (0x91U) , 0x01},
{ (0x92U) , 0x03},
{ (0x93U) , 0x00},
{ (0x94U) , 0xb0},
{ (0x95U) , 0x9d},
{ (0x96U) , 0x13},
{ (0x97U) , 0x16},
{ (0x98U) , 0x7b},
{ (0x99U) , 0x91},
{ (0x9AU) , 0x1e},
{ (0x9BU) , 0x08},
{ (0x9CU) , 0x20},
{ (0x9EU) , 0x81},
{ (0xA6U) , 0x06},
{ (0x7EU) , 0x0c},
{ (0x7FU) , 0x16},
{ (0x80U) , 0x2a},
{ (0x81U) , 0x4e},
{ (0x82U) , 0x61},
{ (0x83U) , 0x6f},
{ (0x84U) , 0x7b},
{ (0x85U) , 0x86},
{ (0x86U) , 0x8e},
{ (0x87U) , 0x97},
{ (0x88U) , 0xa4},
{ (0x89U) , 0xaf},
{ (0x8AU) , 0xc5},
{ (0x8BU) , 0xd7},
{ (0x8CU) , 0xe8},
{ (0x8DU) , 0x20},
{ (0x33U) , 0x00},
{ (0x22U) , 0x7f},
{ (0x23U) , 0x03},
{ (0x4AU) , 0x10},
{ (0x49U) , 0x10},
{ (0x4BU) , 0x14},
{ (0x4CU) , 0x17},
{ (0x46U) , 0x05},
{ (0x0EU) , 0x65},
}