Paparazzi UAS  v5.10_stable-5-g83a0da5-dirty
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
mt9f002.h File Reference

Initialization and configuration of the MT9F002 CMOS Chip. More...

#include "std.h"
#include "mcu_periph/i2c.h"
+ Include dependency graph for mt9f002.h:
+ This graph shows which files directly or indirectly include this file:

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...
 

Detailed Description

Initialization and configuration of the MT9F002 CMOS Chip.

Definition in file mt9f002.h.


Data Structure Documentation

struct mt9f002_t

Definition at line 41 of file mt9f002.h.

+ Collaboration diagram for 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.

Enumeration Type Documentation

Enumerator
MT9F002_MIPI 

MIPI type connection.

MT9F002_HiSPi 

HiSPi type connection.

MT9F002_PARALLEL 

Parallel type connection.

Definition at line 34 of file mt9f002.h.

Function Documentation