从SOD到OOD(整板资源管理,system manager,成员函数定义,整板初始化相关)
作者:互联网
1)整板硬件初始化相关。
SystemManager::SystemManager() :
xcmos_(&cam_uart_, &sys_timer_),
xmotor_(&mcu_uart_, this),
xhost_(&host_uart_, this),
xaf_(this),
xaec_(this),
xin_(SYS_IN_0_REGS_ADDR, 0x1000),
xout_(SYS_OUT_0_REGS_ADDR, 0x1000),
xbayer_write_(BAYER_IP_REGS_ADDR, 0x1000),
xbayer_video_(VIDEO_IP_REGS_ADDR, 0x1000),
xbayer_photo_(PHOTO_IP_REGS_ADDR, 0x1000),
xcrop_(CROP_ACCL_REGS_ADDR, 0x1000),
xaf_accl_(AUTO_FOCUS_REGS_ADDR, 0x1000),
// xinfo_(RGB_INFO_REGS_ADDR, 0x1000),
xclahe_(CLAHE_ACCL_REGS_ADDR, 0x1000),
boot_state_(0),
state_timestamp_(0),
debug_mode_(0)
{
max_dzoom_scale_ = 2.581;
min_dzoom_scale_ = 1.0;
video_frame_count_ = 0;
sensor_frame_count_ = 0;
focus_motor_reach_ = 0;
photo_stamp_ = 0;
photo_over_mode_ = 0;
zoom_speed_ = 1;
dehazing_mode_ = 0;
hdr_mode_ = 0;
zoom_status_ = 0;
brightness_mode_ = 0;
brightness_value_ = 0;
contrast_mode_ = 0;
contrast_value_ = 0;
saturation_mode_ = 1;
saturation_value_ = 22000;
awb_mode_ = 0;
focus_radio_ = 1024;
}
标签:整板,0x1000,OOD,SOD,REGS,mode,photo,ADDR 来源: https://blog.csdn.net/weixin_42418557/article/details/118697333