本文介绍一下上下电时序:
power_setting_a跟power_down_setting_a结构体数组都是包含在power_setting_array这个大的结构体下面的,而power_setting_array又是在sensor_slave_info这个大的结构体下面;
struct camera_sensor_slave_info sensor_slave_info
struct camera_sensor_slave_info {
char sensor_name[32];
unsigned short slave_addr;
enum camera_i2c_freq_mode i2c_freq_mode;
enum camera_i2c_reg_addr_type addr_type;
enum camera_i2c_data_type data_type;
struct sensor_id_info_t sensor_id_info;
struct camera_power_setting_array power_setting_array;
unsigned char is init_params_valid;
struct camera_alt_slave_info sensor_alt_slave_info;
};
在驱动文件中有:
static sensor_lib_t sensor_lib_ptr =
{
.sensor_slave_info =
{
.sensor_name = SENSOR_MODEL,
.slave_addr = 0x20,
.i2c_freq_mode = SENSOR_I2C_MODE_FAST,
.addr_type