IPU CMOS Sensor interface functions. More...
Functions | |
int32_t | ipu_csi_init_interface (uint16_t width, uint16_t height, uint32_t pixel_fmt, ipu_csi_signal_cfg_t sig) |
void | ipu_csi_flash_strobe (bool flag) |
int32_t | ipu_csi_enable_mclk (int src, bool flag, bool wait) |
int | ipu_csi_read_mclk_flag (void) |
void | ipu_csi_get_window_size (uint32_t *width, uint32_t *height, uint32_t dummy) |
void | ipu_csi_set_window_size (uint32_t width, uint32_t height, uint32_t dummy) |
void | ipu_csi_set_window_pos (uint32_t left, uint32_t top, uint32_t dummy) |
int32_t | ipu_csi_get_sensor_protocol (uint32_t csi) |
IPU CMOS Sensor interface functions.
int32_t ipu_csi_enable_mclk | ( | int | src, | |
bool | flag, | |||
bool | wait | |||
) |
ipu_csi_enable_mclk
src | enum define which source to control the clk CSI_MCLK_VF CSI_MCLK_ENC CSI_MCLK_RAW CSI_MCLK_I2C | |
flag | true to enable mclk, false to disable mclk | |
wait | true to wait 100ms make clock stable, false not wait |
void ipu_csi_flash_strobe | ( | bool | flag | ) |
ipu_csi_flash_strobe
flag | true to turn on flash strobe |
Referenced by mxc_v4l2_s_ctrl().
int32_t ipu_csi_get_sensor_protocol | ( | uint32_t | csi | ) |
ipu_csi_get_sensor_protocol
csi | csi 0 or csi 1 |
Referenced by csi_enc_setup().
void ipu_csi_get_window_size | ( | uint32_t * | width, | |
uint32_t * | height, | |||
uint32_t | dummy | |||
) |
ipu_csi_get_window_size
width | pointer to window width | |
height | pointer to window height | |
dummy | dummy for IPUv1 to keep the same interface with IPUv3 |
Referenced by prp_enc_setup(), and prpvf_start().
int32_t ipu_csi_init_interface | ( | uint16_t | width, | |
uint16_t | height, | |||
uint32_t | pixel_fmt, | |||
ipu_csi_signal_cfg_t | sig | |||
) |
ipu_csi_init_interface Sets initial values for the CSI registers. The width and height of the sensor and the actual frame size will be set to the same values.
width | Sensor width | |
height | Sensor height | |
pixel_fmt | pixel format | |
sig | ipu_csi_signal_cfg_t structure |
Referenced by mxc_v4l2_s_param(), and mxc_v4l_open().
int ipu_csi_read_mclk_flag | ( | void | ) |
ipu_csi_read_mclk_flag
void ipu_csi_set_window_pos | ( | uint32_t | left, | |
uint32_t | top, | |||
uint32_t | dummy | |||
) |
ipu_csi_set_window_pos
left | uint32 window x start | |
top | uint32 window y start | |
dummy | dummy for IPUv1 to keep the same interface with IPUv3 |
Referenced by init_camera_struct(), mxc_v4l2_s_param(), mxc_v4l_do_ioctl(), and mxc_v4l_open().
void ipu_csi_set_window_size | ( | uint32_t | width, | |
uint32_t | height, | |||
uint32_t | dummy | |||
) |
ipu_csi_set_window_size
width | window width | |
height | window height | |
dummy | dummy for IPUv1 to keep the same interface with IPUv3 |
Referenced by init_camera_struct(), mxc_v4l2_s_param(), mxc_v4l_do_ioctl(), and mxc_v4l_open().
© Freescale Semiconductor, Inc., 2007.
All rights reserved. Freescale Confidential Proprietary NDA Required |
![]() |