Paparazzi UAS
v5.10_stable-5-g83a0da5-dirty
Paparazzi is a free software Unmanned Aircraft System.
|
Initialization and configuration of the MT9F002 CMOS Chip. More...
Go to the source code of this file.
Data Structures | |
struct | mt9f002_t |
Enumerations | |
enum | mt9f002_interface { MT9F002_MIPI, MT9F002_HiSPi, MT9F002_PARALLEL } |
Functions | |
void | mt9f002_init (struct mt9f002_t *mt) |
Initialisation of the Aptina MT9F002 CMOS sensor (front camera) More... | |
Initialization and configuration of the MT9F002 CMOS Chip.
Definition in file mt9f002.h.
struct mt9f002_t |
Data Fields | ||
---|---|---|
uint16_t | frame_length | Calculated frame length of blanking. |
float | gain_blue | Gain for the Blue pixels [1.5 -> 63.50]. |
float | gain_green1 | Gain for the GreenR pixels [1.5 -> 63.50]. |
float | gain_green2 | Gain for the GreenB pixels [1.5 -> 63.50]. |
float | gain_red | Gain for the Red pixels [1.5 -> 63.50]. |
struct i2c_periph * | i2c_periph | I2C peripheral used to communicate over. |
struct i2c_transaction | i2c_trans | I2C transaction for comminication with CMOS chip. |
float | input_clk_freq | Input clock frequency. |
enum mt9f002_interface | interface | Interface used to connect. |
uint16_t | line_length | Calculated line length of blanking. |
uint16_t | offset_x | Offset from left in pixels. |
uint16_t | offset_y | Offset from top in pixels. |
float | op_pix_clk | Calculated based on PLL. |
uint16_t | op_pix_clk_div | Fixed PLL config from calculator tool. |
uint16_t | op_sys_clk_div | Fixed PLL config from calculator tool. |
uint16_t | output_height | Output height. |
float | output_scaler | Output scale. |
uint16_t | output_width | Output width. |
uint16_t | pll_multiplier | Fixed PLL config from calculator tool. |
uint16_t | pre_pll_clk_div | Fixed PLL config from calculator tool. |
float | real_exposure | Real exposure time in ms. |
float | real_fps | Real calculated FPS. |
uint8_t | row_speed_10_8 | Fixed PLL config from calculator tool. |
uint8_t | rowSpeed_2_0 | Fixed PLL config from calculator tool. |
uint16_t | scaled_height | Height after corrected scaling. |
uint16_t | scaled_width | Width after corrected scaling. |
uint8_t | shift_vt_pix_clk_div | Fixed PLL config from calculator tool. |
float | target_exposure | Target exposure time in ms. |
float | target_fps | FPS wanted. |
float | vt_pix_clk | Calculated based on PLL. |
uint16_t | vt_pix_clk_div | Fixed PLL config from calculator tool. |
uint16_t | vt_sys_clk_div | Fixed PLL config from calculator tool. |
enum mt9f002_interface |
void mt9f002_init | ( | struct mt9f002_t * | mt | ) |
Initialisation of the Aptina MT9F002 CMOS sensor (front camera)
Definition at line 788 of file mt9f002.c.
References mt9f002_t::i2c_trans, I2CTransDone, mt9f002_t::interface, MT9F002_HiSPi, MT9F002_MIPI, mt9f002_mipi_stage1(), mt9f002_mipi_stage2(), mt9f002_mipi_stage3(), MT9F002_MODE_SELECT, mt9f002_parallel_stage1(), mt9f002_parallel_stage2(), MT9F002_SCALE_M, MT9F002_SCALER_N, MT9F002_SCALING_MODE, mt9f002_set_blanking(), mt9f002_set_exposure(), mt9f002_set_gains(), mt9f002_set_pll(), MT9F002_SOFTWARE_RESET, MT9F002_X_ADDR_END, MT9F002_X_ADDR_START, MT9F002_X_OUTPUT_SIZE, MT9F002_Y_ADDR_END, MT9F002_Y_ADDR_START, MT9F002_Y_OUTPUT_SIZE, mt9f002_t::offset_x, mt9f002_t::offset_y, mt9f002_t::output_height, mt9f002_t::output_scaler, mt9f002_t::output_width, mt9f002_t::scaled_height, mt9f002_t::scaled_width, i2c_transaction::status, and write_reg().
Referenced by board_init2().