LibDriver OV2640
Loading...
Searching...
No Matches
ov2640 sensor driver function

ov2640 sensor driver modules More...

Collaboration diagram for ov2640 sensor driver function:

Data Structures

struct  ov2640_handle_s
 ov2640 handle structure definition More...
struct  ov2640_info_s
 ov2640 information structure definition More...

Typedefs

typedef struct ov2640_handle_s ov2640_handle_t
 ov2640 handle structure definition
typedef struct ov2640_info_s ov2640_info_t
 ov2640 information structure definition

Enumerations

enum  ov2640_bool_t { OV2640_BOOL_FALSE = 0x00 , OV2640_BOOL_TRUE = 0x01 }
 ov2640 bool enumeration definition More...
enum  ov2640_dummy_frame_t { OV2640_DUMMY_FRAME_NONE = 0x00 , OV2640_DUMMY_FRAME_1 = 0x01 , OV2640_DUMMY_FRAME_3 = 0x02 , OV2640_DUMMY_FRAME_7 = 0x03 }
 ov2640 dummy frame enumeration definition More...
enum  ov2640_mode_t { OV2640_MODE_NORMAL = 0x00 , OV2640_MODE_STANDBY = 0x01 }
 ov2640 mode enumeration definition More...
enum  ov2640_band_t { OV2640_BAND_60HZ = 0x00 , OV2640_BAND_50HZ = 0x01 }
 ov2640 band enumeration definition More...
enum  ov2640_pin_status_t { OV2640_PIN_STATUS_TRI_STATE = 0x00 , OV2640_PIN_STATUS_LAST_STATE = 0x01 }
 ov2640 pin status enumeration definition More...
enum  ov2640_output_drive_t { OV2640_OUTPUT_DRIVE_1_CAPABILITY = 0x00 , OV2640_OUTPUT_DRIVE_3_CAPABILITY = 0x01 , OV2640_OUTPUT_DRIVE_2_CAPABILITY = 0x02 , OV2640_OUTPUT_DRIVE_4_CAPABILITY = 0x03 }
 ov2640 output drive enumeration definition More...
enum  ov2640_resolution_t { OV2640_RESOLUTION_UXGA = 0x00 , OV2640_RESOLUTION_CIF = 0x01 , OV2640_RESOLUTION_SVGA = 0x04 }
 ov2640 resolution enumeration definition More...
enum  ov2640_control_t { OV2640_CONTROL_MANUAL = 0x00 , OV2640_CONTROL_AUTO = 0x01 }
 ov2640 control enumeration definition More...
enum  ov2640_agc_gain_t {
  OV2640_AGC_2X = 0x00 , OV2640_AGC_4X = 0x01 , OV2640_AGC_8X = 0x02 , OV2640_AGC_16X = 0x03 ,
  OV2640_AGC_32X = 0x04 , OV2640_AGC_64X = 0x05 , OV2640_AGC_128X = 0x06
}
 ov2640 agc gain enumeration definition More...
enum  ov2640_edge_t { OV2640_EDGE_FALLING = 0x00 , OV2640_EDGE_RISING = 0x01 }
 ov2640 edge enumeration definition More...
enum  ov2640_polarity_t { OV2640_POLARITY_POSITIVE = 0x00 , OV2640_POLARITY_NEGATIVE = 0x01 }
 ov2640 polarity enumeration definition More...
enum  ov2640_pclk_t { OV2640_PCLK_NO_EFFECT = 0x00 , OV2640_PCLK_DIVIDE_2 = 0x01 , OV2640_PCLK_DIVIDE_4 = 0x02 }
 ov2640 pclk enumeration definition More...

Functions

uint8_t ov2640_info (ov2640_info_t *info)
 get chip's information
uint8_t ov2640_init (ov2640_handle_t *handle)
 initialize the chip
uint8_t ov2640_deinit (ov2640_handle_t *handle)
 close the chip
uint8_t ov2640_table_init (ov2640_handle_t *handle)
 table init
uint8_t ov2640_table_jpeg_init (ov2640_handle_t *handle)
 table jpeg init
uint8_t ov2640_table_rgb565_init (ov2640_handle_t *handle)
 table rgb565 init
uint8_t ov2640_set_agc_gain (ov2640_handle_t *handle, uint16_t gain)
 set agc gain
uint8_t ov2640_get_agc_gain (ov2640_handle_t *handle, uint16_t *gain)
 get agc gain
uint8_t ov2640_set_dummy_frame (ov2640_handle_t *handle, ov2640_dummy_frame_t frame)
 set dummy frame
uint8_t ov2640_get_dummy_frame (ov2640_handle_t *handle, ov2640_dummy_frame_t *frame)
 get dummy frame
uint8_t ov2640_set_vertical_window_line_start (ov2640_handle_t *handle, uint16_t start)
 set vertical window line start
uint8_t ov2640_get_vertical_window_line_start (ov2640_handle_t *handle, uint16_t *start)
 get vertical window line start
uint8_t ov2640_set_vertical_window_line_end (ov2640_handle_t *handle, uint16_t end)
 set vertical window line end
uint8_t ov2640_get_vertical_window_line_end (ov2640_handle_t *handle, uint16_t *end)
 get vertical window line end
uint8_t ov2640_set_horizontal_mirror (ov2640_handle_t *handle, ov2640_bool_t enable)
 enable or disable horizontal mirror
uint8_t ov2640_get_horizontal_mirror (ov2640_handle_t *handle, ov2640_bool_t *enable)
 get horizontal mirror status
uint8_t ov2640_set_vertical_flip (ov2640_handle_t *handle, ov2640_bool_t enable)
 enable or disable vertical flip
uint8_t ov2640_get_vertical_flip (ov2640_handle_t *handle, ov2640_bool_t *enable)
 get vertical flip status
uint8_t ov2640_set_aec (ov2640_handle_t *handle, uint16_t aec)
 set aec
uint8_t ov2640_get_aec (ov2640_handle_t *handle, uint16_t *aec)
 get aec
uint8_t ov2640_set_frame_exposure_pre_charge_row_number (ov2640_handle_t *handle, uint8_t num)
 set frame exposure pre charge row number
uint8_t ov2640_get_frame_exposure_pre_charge_row_number (ov2640_handle_t *handle, uint8_t *num)
 get frame exposure pre charge row number
uint8_t ov2640_set_mode (ov2640_handle_t *handle, ov2640_mode_t mode)
 set mode
uint8_t ov2640_get_mode (ov2640_handle_t *handle, ov2640_mode_t *mode)
 get mode
uint8_t ov2640_set_power_reset_pin_remap (ov2640_handle_t *handle, ov2640_bool_t enable)
 enable or disable power reset pin remap
uint8_t ov2640_get_power_reset_pin_remap (ov2640_handle_t *handle, ov2640_bool_t *enable)
 get power reset pin remap status
uint8_t ov2640_set_output_drive (ov2640_handle_t *handle, ov2640_output_drive_t select)
 set output drive
uint8_t ov2640_get_output_drive (ov2640_handle_t *handle, ov2640_output_drive_t *select)
 get output drive
uint8_t ov2640_set_band (ov2640_handle_t *handle, ov2640_band_t band)
 set band
uint8_t ov2640_get_band (ov2640_handle_t *handle, ov2640_band_t *band)
 get band
uint8_t ov2640_set_auto_band (ov2640_handle_t *handle, ov2640_bool_t enable)
 enable or disable auto band
uint8_t ov2640_get_auto_band (ov2640_handle_t *handle, ov2640_bool_t *enable)
 get auto band status
uint8_t ov2640_set_live_video_after_snapshot (ov2640_handle_t *handle, ov2640_bool_t enable)
 enable or disable live video after snapshot
uint8_t ov2640_get_live_video_after_snapshot (ov2640_handle_t *handle, ov2640_bool_t *enable)
 get live video after snapshot status
uint8_t ov2640_set_clock_output_power_down_pin_status (ov2640_handle_t *handle, ov2640_pin_status_t status)
 set clock output power down pin status
uint8_t ov2640_get_clock_output_power_down_pin_status (ov2640_handle_t *handle, ov2640_pin_status_t *status)
 get clock output power down pin status
uint8_t ov2640_set_clock_rate_double (ov2640_handle_t *handle, ov2640_bool_t enable)
 enable or disable double clock rate
uint8_t ov2640_get_clock_rate_double (ov2640_handle_t *handle, ov2640_bool_t *enable)
 get clock rate double status
uint8_t ov2640_set_clock_divider (ov2640_handle_t *handle, uint8_t divider)
 set clock divider
uint8_t ov2640_get_clock_divider (ov2640_handle_t *handle, uint8_t *divider)
 get clock divider
uint8_t ov2640_soft_reset (ov2640_handle_t *handle)
 soft reset
uint8_t ov2640_set_resolution (ov2640_handle_t *handle, ov2640_resolution_t resolution)
 set resolution
uint8_t ov2640_get_resolution (ov2640_handle_t *handle, ov2640_resolution_t *resolution)
 get resolution
uint8_t ov2640_set_zoom (ov2640_handle_t *handle, ov2640_bool_t enable)
 enable or disable zoom
uint8_t ov2640_get_zoom (ov2640_handle_t *handle, ov2640_bool_t *enable)
 get zoom status
uint8_t ov2640_set_color_bar_test (ov2640_handle_t *handle, ov2640_bool_t enable)
 enable or disable color bar test
uint8_t ov2640_get_color_bar_test (ov2640_handle_t *handle, ov2640_bool_t *enable)
 get color bar test status
uint8_t ov2640_set_band_filter (ov2640_handle_t *handle, ov2640_bool_t enable)
 enable or disable band filter
uint8_t ov2640_get_band_filter (ov2640_handle_t *handle, ov2640_bool_t *enable)
 get band filter status
uint8_t ov2640_set_agc_control (ov2640_handle_t *handle, ov2640_control_t control)
 set agc control
uint8_t ov2640_get_agc_control (ov2640_handle_t *handle, ov2640_control_t *control)
 get agc control
uint8_t ov2640_set_exposure_control (ov2640_handle_t *handle, ov2640_control_t control)
 set exposure control
uint8_t ov2640_get_exposure_control (ov2640_handle_t *handle, ov2640_control_t *control)
 get exposure control
uint8_t ov2640_set_agc_gain_ceiling (ov2640_handle_t *handle, ov2640_agc_gain_t agc)
 set agc
uint8_t ov2640_get_agc_gain_ceiling (ov2640_handle_t *handle, ov2640_agc_gain_t *agc)
 get agc
uint8_t ov2640_set_chsync_href_swap (ov2640_handle_t *handle, ov2640_bool_t enable)
 enable or disable chsync href swap
uint8_t ov2640_get_chsync_href_swap (ov2640_handle_t *handle, ov2640_bool_t *enable)
 get chsync href swap status
uint8_t ov2640_set_href_chsync_swap (ov2640_handle_t *handle, ov2640_bool_t enable)
 enable or disable href chsync swap
uint8_t ov2640_get_href_chsync_swap (ov2640_handle_t *handle, ov2640_bool_t *enable)
 get href chsync swap status
uint8_t ov2640_set_pclk_output_qualified_by_href (ov2640_handle_t *handle, ov2640_bool_t enable)
 enable or disable pclk output qualified by href
uint8_t ov2640_get_pclk_output_qualified_by_href (ov2640_handle_t *handle, ov2640_bool_t *enable)
 get pclk output qualified by href status
uint8_t ov2640_set_pclk_edge (ov2640_handle_t *handle, ov2640_edge_t edge)
 set pclk edge
uint8_t ov2640_get_pclk_edge (ov2640_handle_t *handle, ov2640_edge_t *edge)
 get pclk edge
uint8_t ov2640_set_href_polarity (ov2640_handle_t *handle, ov2640_polarity_t polarity)
 set href polarity
uint8_t ov2640_get_href_polarity (ov2640_handle_t *handle, ov2640_polarity_t *polarity)
 get href polarity
uint8_t ov2640_set_vsync_polarity (ov2640_handle_t *handle, ov2640_polarity_t polarity)
 set vsync polarity
uint8_t ov2640_get_vsync_polarity (ov2640_handle_t *handle, ov2640_polarity_t *polarity)
 get vsync polarity
uint8_t ov2640_set_hsync_polarity (ov2640_handle_t *handle, ov2640_polarity_t polarity)
 set hsync polarity
uint8_t ov2640_get_hsync_polarity (ov2640_handle_t *handle, ov2640_polarity_t *polarity)
 get hsync polarity
uint8_t ov2640_set_luminance_signal_high_range (ov2640_handle_t *handle, uint8_t range)
 set luminance signal high range
uint8_t ov2640_get_luminance_signal_high_range (ov2640_handle_t *handle, uint8_t *range)
 get luminance signal high range
uint8_t ov2640_set_luminance_signal_low_range (ov2640_handle_t *handle, uint8_t range)
 set luminance signal low range
uint8_t ov2640_get_luminance_signal_low_range (ov2640_handle_t *handle, uint8_t *range)
 get luminance signal low range
uint8_t ov2640_set_fast_mode_large_step_range (ov2640_handle_t *handle, uint8_t high_threshold, uint8_t low_threshold)
 set fast mode large step range
uint8_t ov2640_get_fast_mode_large_step_range (ov2640_handle_t *handle, uint8_t *high_threshold, uint8_t *low_threshold)
 get fast mode large step range
uint8_t ov2640_set_line_interval_adjust (ov2640_handle_t *handle, uint16_t adjust)
 set line interval adjust
uint8_t ov2640_get_line_interval_adjust (ov2640_handle_t *handle, uint16_t *adjust)
 get line interval adjust
uint8_t ov2640_set_hsync_position_and_width_end_point (ov2640_handle_t *handle, uint16_t position)
 set hsync position and width end point
uint8_t ov2640_get_hsync_position_and_width_end_point (ov2640_handle_t *handle, uint16_t *position)
 get hsync position and width end point
uint8_t ov2640_set_hsync_position_and_width_start_point (ov2640_handle_t *handle, uint16_t position)
 set hsync position and width start point
uint8_t ov2640_get_hsync_position_and_width_start_point (ov2640_handle_t *handle, uint16_t *position)
 get hsync position and width start point
uint8_t ov2640_set_vsync_pulse_width (ov2640_handle_t *handle, uint16_t width)
 set vsync pulse width
uint8_t ov2640_get_vsync_pulse_width (ov2640_handle_t *handle, uint16_t *width)
 get vsync pulse width
uint8_t ov2640_set_luminance_average (ov2640_handle_t *handle, uint8_t average)
 set luminance average
uint8_t ov2640_get_luminance_average (ov2640_handle_t *handle, uint8_t *average)
 get luminance average
uint8_t ov2640_set_horizontal_window_start (ov2640_handle_t *handle, uint16_t start)
 set horizontal window start
uint8_t ov2640_get_horizontal_window_start (ov2640_handle_t *handle, uint16_t *start)
 get horizontal window start
uint8_t ov2640_set_horizontal_window_end (ov2640_handle_t *handle, uint16_t end)
 set horizontal window end
uint8_t ov2640_get_horizontal_window_end (ov2640_handle_t *handle, uint16_t *end)
 get horizontal window end
uint8_t ov2640_set_pclk (ov2640_handle_t *handle, ov2640_pclk_t pclk)
 set pclk
uint8_t ov2640_get_pclk (ov2640_handle_t *handle, ov2640_pclk_t *pclk)
 get pclk
uint8_t ov2640_set_zoom_window_horizontal_start_point (ov2640_handle_t *handle, ov2640_bool_t enable)
 enable or disable zoom window horizontal start point
uint8_t ov2640_get_zoom_window_horizontal_start_point (ov2640_handle_t *handle, ov2640_bool_t *enable)
 get zoom window horizontal start point status
uint8_t ov2640_set_frame_length_adjustment (ov2640_handle_t *handle, uint16_t frame)
 set frame length adjustment
uint8_t ov2640_get_frame_length_adjustment (ov2640_handle_t *handle, uint16_t *frame)
 get frame length adjustment
uint8_t ov2640_set_zoom_mode_vertical_window_start_point (ov2640_handle_t *handle, uint16_t point)
 set zoom mode vertical window start point
uint8_t ov2640_get_zoom_mode_vertical_window_start_point (ov2640_handle_t *handle, uint16_t *point)
 get zoom mode vertical window start point
uint8_t ov2640_set_flash_light (ov2640_handle_t *handle, uint8_t control)
 set flash light
uint8_t ov2640_get_flash_light (ov2640_handle_t *handle, uint8_t *control)
 get flash light
uint8_t ov2640_set_50hz_banding_aec (ov2640_handle_t *handle, uint16_t aec)
 set 50hz banding aec
uint8_t ov2640_get_50hz_banding_aec (ov2640_handle_t *handle, uint16_t *aec)
 get 50hz banding aec
uint8_t ov2640_set_60hz_banding_aec (ov2640_handle_t *handle, uint16_t aec)
 set 60hz banding aec
uint8_t ov2640_get_60hz_banding_aec (ov2640_handle_t *handle, uint16_t *aec)
 get 60hz banding aec
uint8_t ov2640_set_16_zone_average_weight_option (ov2640_handle_t *handle, uint32_t avg)
 set 16 zone average weight option
uint8_t ov2640_get_16_zone_average_weight_option (ov2640_handle_t *handle, uint32_t *avg)
 get 16 zone average weight option
uint8_t ov2640_set_histogram_algorithm_low_level (ov2640_handle_t *handle, uint8_t level)
 set histogram algorithm low level
uint8_t ov2640_get_histogram_algorithm_low_level (ov2640_handle_t *handle, uint8_t *level)
 get histogram algorithm low level
uint8_t ov2640_set_histogram_algorithm_high_level (ov2640_handle_t *handle, uint8_t level)
 set histogram algorithm high level
uint8_t ov2640_get_histogram_algorithm_high_level (ov2640_handle_t *handle, uint8_t *level)
 get histogram algorithm high level

Detailed Description

ov2640 sensor driver modules

Typedef Documentation

◆ ov2640_handle_t

ov2640 handle structure definition

◆ ov2640_info_t

typedef struct ov2640_info_s ov2640_info_t

ov2640 information structure definition

Enumeration Type Documentation

◆ ov2640_agc_gain_t

ov2640 agc gain enumeration definition

Enumerator
OV2640_AGC_2X 

2x

OV2640_AGC_4X 

4x

OV2640_AGC_8X 

8x

OV2640_AGC_16X 

16x

OV2640_AGC_32X 

32x

OV2640_AGC_64X 

64x

OV2640_AGC_128X 

128x

Definition at line 139 of file driver_ov2640.h.

◆ ov2640_band_t

ov2640 band enumeration definition

Enumerator
OV2640_BAND_60HZ 

60hz

OV2640_BAND_50HZ 

50hz

Definition at line 91 of file driver_ov2640.h.

◆ ov2640_bool_t

ov2640 bool enumeration definition

Enumerator
OV2640_BOOL_FALSE 

false

OV2640_BOOL_TRUE 

true

Definition at line 62 of file driver_ov2640.h.

◆ ov2640_control_t

ov2640 control enumeration definition

Enumerator
OV2640_CONTROL_MANUAL 

manual

OV2640_CONTROL_AUTO 

auto

Definition at line 130 of file driver_ov2640.h.

◆ ov2640_dummy_frame_t

ov2640 dummy frame enumeration definition

Enumerator
OV2640_DUMMY_FRAME_NONE 

none dummy frame

OV2640_DUMMY_FRAME_1 

1 dummy frame

OV2640_DUMMY_FRAME_3 

3 dummy frame

OV2640_DUMMY_FRAME_7 

7 dummy frame

Definition at line 71 of file driver_ov2640.h.

◆ ov2640_edge_t

ov2640 edge enumeration definition

Enumerator
OV2640_EDGE_FALLING 

falling

OV2640_EDGE_RISING 

rising

Definition at line 153 of file driver_ov2640.h.

◆ ov2640_mode_t

ov2640 mode enumeration definition

Enumerator
OV2640_MODE_NORMAL 

normal mode

OV2640_MODE_STANDBY 

standby mode

Definition at line 82 of file driver_ov2640.h.

◆ ov2640_output_drive_t

ov2640 output drive enumeration definition

Enumerator
OV2640_OUTPUT_DRIVE_1_CAPABILITY 

1 capability

OV2640_OUTPUT_DRIVE_3_CAPABILITY 

3 capability

OV2640_OUTPUT_DRIVE_2_CAPABILITY 

2 capability

OV2640_OUTPUT_DRIVE_4_CAPABILITY 

4 capability

Definition at line 109 of file driver_ov2640.h.

◆ ov2640_pclk_t

ov2640 pclk enumeration definition

Enumerator
OV2640_PCLK_NO_EFFECT 

no effect

OV2640_PCLK_DIVIDE_2 

divide by 2

OV2640_PCLK_DIVIDE_4 

divide by 4

Definition at line 171 of file driver_ov2640.h.

◆ ov2640_pin_status_t

ov2640 pin status enumeration definition

Enumerator
OV2640_PIN_STATUS_TRI_STATE 

tri state

OV2640_PIN_STATUS_LAST_STATE 

last state

Definition at line 100 of file driver_ov2640.h.

◆ ov2640_polarity_t

ov2640 polarity enumeration definition

Enumerator
OV2640_POLARITY_POSITIVE 

positive

OV2640_POLARITY_NEGATIVE 

negative

Definition at line 162 of file driver_ov2640.h.

◆ ov2640_resolution_t

ov2640 resolution enumeration definition

Enumerator
OV2640_RESOLUTION_UXGA 

uxga mode

OV2640_RESOLUTION_CIF 

cif mode

OV2640_RESOLUTION_SVGA 

svga mode

Definition at line 120 of file driver_ov2640.h.

Function Documentation

◆ ov2640_deinit()

uint8_t ov2640_deinit ( ov2640_handle_t * handle)

close the chip

Parameters
[in]*handlepointer to an ov2640 handle structure
Returns
status code
  • 0 success
  • 1 iic deinit failed
  • 2 handle is NULL
  • 3 handle is not initialized
  • 4 soft reset failed
  • 5 power down failed
Note
none

Definition at line 774 of file driver_ov2640.c.

◆ ov2640_get_16_zone_average_weight_option()

uint8_t ov2640_get_16_zone_average_weight_option ( ov2640_handle_t * handle,
uint32_t * avg )

get 16 zone average weight option

Parameters
[in]*handlepointer to an ov2640 handle structure
[out]*avgpointer to an avg buffer
Returns
status code
  • 0 success
  • 1 get 16 zone average weight option failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 5302 of file driver_ov2640.c.

◆ ov2640_get_50hz_banding_aec()

uint8_t ov2640_get_50hz_banding_aec ( ov2640_handle_t * handle,
uint16_t * aec )

get 50hz banding aec

Parameters
[in]*handlepointer to an ov2640 handle structure
[out]*aecpointer to an aec buffer
Returns
status code
  • 0 success
  • 1 get 50hz banding aec failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 5091 of file driver_ov2640.c.

◆ ov2640_get_60hz_banding_aec()

uint8_t ov2640_get_60hz_banding_aec ( ov2640_handle_t * handle,
uint16_t * aec )

get 60hz banding aec

Parameters
[in]*handlepointer to an ov2640 handle structure
[out]*aecpointer to an aec buffer
Returns
status code
  • 0 success
  • 1 get 60hz banding aec failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 5196 of file driver_ov2640.c.

◆ ov2640_get_aec()

uint8_t ov2640_get_aec ( ov2640_handle_t * handle,
uint16_t * aec )

get aec

Parameters
[in]*handlepointer to an ov2640 handle structure
[out]*aecpointer to an aec buffer
Returns
status code
  • 0 success
  • 1 get aec failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 1603 of file driver_ov2640.c.

◆ ov2640_get_agc_control()

uint8_t ov2640_get_agc_control ( ov2640_handle_t * handle,
ov2640_control_t * control )

get agc control

Parameters
[in]*handlepointer to an ov2640 handle structure
[out]*controlpointer to a control buffer
Returns
status code
  • 0 success
  • 1 get agc control failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 2892 of file driver_ov2640.c.

◆ ov2640_get_agc_gain()

uint8_t ov2640_get_agc_gain ( ov2640_handle_t * handle,
uint16_t * gain )

get agc gain

Parameters
[in]*handlepointer to an ov2640 handle structure
[out]*gainpointer to a gain buffer
Returns
status code
  • 0 success
  • 1 get agc gain failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 1033 of file driver_ov2640.c.

◆ ov2640_get_agc_gain_ceiling()

uint8_t ov2640_get_agc_gain_ceiling ( ov2640_handle_t * handle,
ov2640_agc_gain_t * agc )

get agc

Parameters
[in]*handlepointer to an ov2640 handle structure
[out]*agcpointer to an agc buffer
Returns
status code
  • 0 success
  • 1 get agc failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 3056 of file driver_ov2640.c.

◆ ov2640_get_auto_band()

uint8_t ov2640_get_auto_band ( ov2640_handle_t * handle,
ov2640_bool_t * enable )

get auto band status

Parameters
[in]*handlepointer to an ov2640 handle structure
[out]*enablepointer to a bool value buffer
Returns
status code
  • 0 success
  • 1 get auto band failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 2102 of file driver_ov2640.c.

◆ ov2640_get_band()

uint8_t ov2640_get_band ( ov2640_handle_t * handle,
ov2640_band_t * band )

get band

Parameters
[in]*handlepointer to an ov2640 handle structure
[out]*bandpointer to a band buffer
Returns
status code
  • 0 success
  • 1 get band failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 2020 of file driver_ov2640.c.

◆ ov2640_get_band_filter()

uint8_t ov2640_get_band_filter ( ov2640_handle_t * handle,
ov2640_bool_t * enable )

get band filter status

Parameters
[in]*handlepointer to an ov2640 handle structure
[out]*enablepointer to a value buffer
Returns
status code
  • 0 success
  • 1 get band filter failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 2810 of file driver_ov2640.c.

◆ ov2640_get_chsync_href_swap()

uint8_t ov2640_get_chsync_href_swap ( ov2640_handle_t * handle,
ov2640_bool_t * enable )

get chsync href swap status

Parameters
[in]*handlepointer to an ov2640 handle structure
[out]*enablepointer to a value buffer
Returns
status code
  • 0 success
  • 1 get chsync href swap failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 3138 of file driver_ov2640.c.

◆ ov2640_get_clock_divider()

uint8_t ov2640_get_clock_divider ( ov2640_handle_t * handle,
uint8_t * divider )

get clock divider

Parameters
[in]*handlepointer to an ov2640 handle structure
[out]*dividerpointer to a divider buffer
Returns
status code
  • 0 success
  • 1 get clock divider failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 2437 of file driver_ov2640.c.

◆ ov2640_get_clock_output_power_down_pin_status()

uint8_t ov2640_get_clock_output_power_down_pin_status ( ov2640_handle_t * handle,
ov2640_pin_status_t * status )

get clock output power down pin status

Parameters
[in]*handlepointer to an ov2640 handle structure
[out]*statuspointer to a pin status buffer
Returns
status code
  • 0 success
  • 1 get clock output power down pin status failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 2266 of file driver_ov2640.c.

◆ ov2640_get_clock_rate_double()

uint8_t ov2640_get_clock_rate_double ( ov2640_handle_t * handle,
ov2640_bool_t * enable )

get clock rate double status

Parameters
[in]*handlepointer to an ov2640 handle structure
[out]*enablepointer to a bool value buffer
Returns
status code
  • 0 success
  • 1 get clock rate double failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 2348 of file driver_ov2640.c.

◆ ov2640_get_color_bar_test()

uint8_t ov2640_get_color_bar_test ( ov2640_handle_t * handle,
ov2640_bool_t * enable )

get color bar test status

Parameters
[in]*handlepointer to an ov2640 handle structure
[out]*enablepointer to a value buffer
Returns
status code
  • 0 success
  • 1 get color bar test failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 2728 of file driver_ov2640.c.

◆ ov2640_get_dummy_frame()

uint8_t ov2640_get_dummy_frame ( ov2640_handle_t * handle,
ov2640_dummy_frame_t * frame )

get dummy frame

Parameters
[in]*handlepointer to an ov2640 handle structure
[out]*framepointer to a frame buffer
Returns
status code
  • 0 success
  • 1 get dummy frame failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 1123 of file driver_ov2640.c.

◆ ov2640_get_exposure_control()

uint8_t ov2640_get_exposure_control ( ov2640_handle_t * handle,
ov2640_control_t * control )

get exposure control

Parameters
[in]*handlepointer to an ov2640 handle structure
[out]*controlpointer to a control buffer
Returns
status code
  • 0 success
  • 1 get exposure control failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 2974 of file driver_ov2640.c.

◆ ov2640_get_fast_mode_large_step_range()

uint8_t ov2640_get_fast_mode_large_step_range ( ov2640_handle_t * handle,
uint8_t * high_threshold,
uint8_t * low_threshold )

get fast mode large step range

Parameters
[in]*handlepointer to an ov2640 handle structure
[out]*high_thresholdpointer to a high threshold buffer
[out]*low_thresholdpointer to a low threshold buffer
Returns
status code
  • 0 success
  • 1 get fast mode large step range failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 3864 of file driver_ov2640.c.

◆ ov2640_get_flash_light()

uint8_t ov2640_get_flash_light ( ov2640_handle_t * handle,
uint8_t * control )

get flash light

Parameters
[in]*handlepointer to an ov2640 handle structure
[out]*controlpointer to a control buffer
Returns
status code
  • 0 success
  • 1 get flash light failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 4994 of file driver_ov2640.c.

◆ ov2640_get_frame_exposure_pre_charge_row_number()

uint8_t ov2640_get_frame_exposure_pre_charge_row_number ( ov2640_handle_t * handle,
uint8_t * num )

get frame exposure pre charge row number

Parameters
[in]*handlepointer to an ov2640 handle structure
[out]*numpointer to a pre charge row number buffer
Returns
status code
  • 0 success
  • 1 get frame exposure pre charge row number failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 1694 of file driver_ov2640.c.

◆ ov2640_get_frame_length_adjustment()

uint8_t ov2640_get_frame_length_adjustment ( ov2640_handle_t * handle,
uint16_t * frame )

get frame length adjustment

Parameters
[in]*handlepointer to an ov2640 handle structure
[out]*framepointer to a frame buffer
Returns
status code
  • 0 success
  • 1 get frame length adjustment failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 4807 of file driver_ov2640.c.

◆ ov2640_get_histogram_algorithm_high_level()

uint8_t ov2640_get_histogram_algorithm_high_level ( ov2640_handle_t * handle,
uint8_t * level )

get histogram algorithm high level

Parameters
[in]*handlepointer to an ov2640 handle structure
[out]*levelpointer to a high level buffer
Returns
status code
  • 0 success
  • 1 get histogram algorithm high level failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 5474 of file driver_ov2640.c.

◆ ov2640_get_histogram_algorithm_low_level()

uint8_t ov2640_get_histogram_algorithm_low_level ( ov2640_handle_t * handle,
uint8_t * level )

get histogram algorithm low level

Parameters
[in]*handlepointer to an ov2640 handle structure
[out]*levelpointer to a low level buffer
Returns
status code
  • 0 success
  • 1 get histogram algorithm low level failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 5400 of file driver_ov2640.c.

◆ ov2640_get_horizontal_mirror()

uint8_t ov2640_get_horizontal_mirror ( ov2640_handle_t * handle,
ov2640_bool_t * enable )

get horizontal mirror status

Parameters
[in]*handlepointer to an ov2640 handle structure
[out]*enablepointer to a bool value buffer
Returns
status code
  • 0 success
  • 1 get horizontal mirror failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 1415 of file driver_ov2640.c.

◆ ov2640_get_horizontal_window_end()

uint8_t ov2640_get_horizontal_window_end ( ov2640_handle_t * handle,
uint16_t * end )

get horizontal window end

Parameters
[in]*handlepointer to an ov2640 handle structure
[out]*endpointer to a horizontal window end buffer
Returns
status code
  • 0 success
  • 1 get horizontal window end failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 4546 of file driver_ov2640.c.

◆ ov2640_get_horizontal_window_start()

uint8_t ov2640_get_horizontal_window_start ( ov2640_handle_t * handle,
uint16_t * start )

get horizontal window start

Parameters
[in]*handlepointer to an ov2640 handle structure
[out]*startpointer to a horizontal window start buffer
Returns
status code
  • 0 success
  • 1 get horizontal window start failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 4441 of file driver_ov2640.c.

◆ ov2640_get_href_chsync_swap()

uint8_t ov2640_get_href_chsync_swap ( ov2640_handle_t * handle,
ov2640_bool_t * enable )

get href chsync swap status

Parameters
[in]*handlepointer to an ov2640 handle structure
[out]*enablepointer to a value buffer
Returns
status code
  • 0 success
  • 1 get href chsync swap failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 3220 of file driver_ov2640.c.

◆ ov2640_get_href_polarity()

uint8_t ov2640_get_href_polarity ( ov2640_handle_t * handle,
ov2640_polarity_t * polarity )

get href polarity

Parameters
[in]*handlepointer to an ov2640 handle structure
[out]*polaritypointer to a polarity buffer
Returns
status code
  • 0 success
  • 1 get href polarity failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 3466 of file driver_ov2640.c.

◆ ov2640_get_hsync_polarity()

uint8_t ov2640_get_hsync_polarity ( ov2640_handle_t * handle,
ov2640_polarity_t * polarity )

get hsync polarity

Parameters
[in]*handlepointer to an ov2640 handle structure
[out]*polaritypointer to a polarity buffer
Returns
status code
  • 0 success
  • 1 get hsync polarity failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 3630 of file driver_ov2640.c.

◆ ov2640_get_hsync_position_and_width_end_point()

uint8_t ov2640_get_hsync_position_and_width_end_point ( ov2640_handle_t * handle,
uint16_t * position )

get hsync position and width end point

Parameters
[in]*handlepointer to an ov2640 handle structure
[out]*positionpointer to a position buffer
Returns
status code
  • 0 success
  • 1 get hsync position and width end point failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 4067 of file driver_ov2640.c.

◆ ov2640_get_hsync_position_and_width_start_point()

uint8_t ov2640_get_hsync_position_and_width_start_point ( ov2640_handle_t * handle,
uint16_t * position )

get hsync position and width start point

Parameters
[in]*handlepointer to an ov2640 handle structure
[out]*positionpointer to a position buffer
Returns
status code
  • 0 success
  • 1 get hsync position and width start point failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 4172 of file driver_ov2640.c.

◆ ov2640_get_line_interval_adjust()

uint8_t ov2640_get_line_interval_adjust ( ov2640_handle_t * handle,
uint16_t * adjust )

get line interval adjust

Parameters
[in]*handlepointer to an ov2640 handle structure
[out]*adjustpointer to a line interval adjust buffer
Returns
status code
  • 0 success
  • 1 get line interval adjust failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 3962 of file driver_ov2640.c.

◆ ov2640_get_live_video_after_snapshot()

uint8_t ov2640_get_live_video_after_snapshot ( ov2640_handle_t * handle,
ov2640_bool_t * enable )

get live video after snapshot status

Parameters
[in]*handlepointer to an ov2640 handle structure
[out]*enablepointer to a bool value buffer
Returns
status code
  • 0 success
  • 1 get live video after snapshot failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 2184 of file driver_ov2640.c.

◆ ov2640_get_luminance_average()

uint8_t ov2640_get_luminance_average ( ov2640_handle_t * handle,
uint8_t * average )

get luminance average

Parameters
[in]*handlepointer to an ov2640 handle structure
[out]*averagepointer to a luminance average buffer
Returns
status code
  • 0 success
  • 1 get luminance average failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 4344 of file driver_ov2640.c.

◆ ov2640_get_luminance_signal_high_range()

uint8_t ov2640_get_luminance_signal_high_range ( ov2640_handle_t * handle,
uint8_t * range )

get luminance signal high range

Parameters
[in]*handlepointer to an ov2640 handle structure
[out]*rangepointer to a range buffer
Returns
status code
  • 0 success
  • 1 get luminance signal high range failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 3704 of file driver_ov2640.c.

◆ ov2640_get_luminance_signal_low_range()

uint8_t ov2640_get_luminance_signal_low_range ( ov2640_handle_t * handle,
uint8_t * range )

get luminance signal low range

Parameters
[in]*handlepointer to an ov2640 handle structure
[out]*rangepointer to a range buffer
Returns
status code
  • 0 success
  • 1 get luminance signal low range failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 3776 of file driver_ov2640.c.

◆ ov2640_get_mode()

uint8_t ov2640_get_mode ( ov2640_handle_t * handle,
ov2640_mode_t * mode )

get mode

Parameters
[in]*handlepointer to an ov2640 handle structure
[out]*modepointer to a mode buffer
Returns
status code
  • 0 success
  • 1 get mode failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 1774 of file driver_ov2640.c.

◆ ov2640_get_output_drive()

uint8_t ov2640_get_output_drive ( ov2640_handle_t * handle,
ov2640_output_drive_t * select )

get output drive

Parameters
[in]*handlepointer to an ov2640 handle structure
[out]*selectpointer to an output drive buffer
Returns
status code
  • 0 success
  • 1 get output drive failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 1938 of file driver_ov2640.c.

◆ ov2640_get_pclk()

uint8_t ov2640_get_pclk ( ov2640_handle_t * handle,
ov2640_pclk_t * pclk )

get pclk

Parameters
[in]*handlepointer to an ov2640 handle structure
[out]*pclkpointer to a pclk buffer
Returns
status code
  • 0 success
  • 1 get pclk failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 4636 of file driver_ov2640.c.

◆ ov2640_get_pclk_edge()

uint8_t ov2640_get_pclk_edge ( ov2640_handle_t * handle,
ov2640_edge_t * edge )

get pclk edge

Parameters
[in]*handlepointer to an ov2640 handle structure
[out]*edgepointer to an edge buffer
Returns
status code
  • 0 success
  • 1 get pclk edge failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 3384 of file driver_ov2640.c.

◆ ov2640_get_pclk_output_qualified_by_href()

uint8_t ov2640_get_pclk_output_qualified_by_href ( ov2640_handle_t * handle,
ov2640_bool_t * enable )

get pclk output qualified by href status

Parameters
[in]*handlepointer to an ov2640 handle structure
[out]*enablepointer to a value buffer
Returns
status code
  • 0 success
  • 1 get pclk output qualified by href failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 3302 of file driver_ov2640.c.

◆ ov2640_get_power_reset_pin_remap()

uint8_t ov2640_get_power_reset_pin_remap ( ov2640_handle_t * handle,
ov2640_bool_t * enable )

get power reset pin remap status

Parameters
[in]*handlepointer to an ov2640 handle structure
[out]*enablepointer to a bool value buffer
Returns
status code
  • 0 success
  • 1 get power reset pin remap failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 1856 of file driver_ov2640.c.

◆ ov2640_get_resolution()

uint8_t ov2640_get_resolution ( ov2640_handle_t * handle,
ov2640_resolution_t * resolution )

get resolution

Parameters
[in]*handlepointer to an ov2640 handle structure
[out]*resolutionpointer to a resolution buffer
Returns
status code
  • 0 success
  • 1 get resolution failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 2564 of file driver_ov2640.c.

◆ ov2640_get_vertical_flip()

uint8_t ov2640_get_vertical_flip ( ov2640_handle_t * handle,
ov2640_bool_t * enable )

get vertical flip status

Parameters
[in]*handlepointer to an ov2640 handle structure
[out]*enablepointer to a bool value buffer
Returns
status code
  • 0 success
  • 1 get vertical flip failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 1497 of file driver_ov2640.c.

◆ ov2640_get_vertical_window_line_end()

uint8_t ov2640_get_vertical_window_line_end ( ov2640_handle_t * handle,
uint16_t * end )

get vertical window line end

Parameters
[in]*handlepointer to an ov2640 handle structure
[out]*endpointer to an end buffer
Returns
status code
  • 0 success
  • 1 get vertical window line end failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 1325 of file driver_ov2640.c.

◆ ov2640_get_vertical_window_line_start()

uint8_t ov2640_get_vertical_window_line_start ( ov2640_handle_t * handle,
uint16_t * start )

get vertical window line start

Parameters
[in]*handlepointer to an ov2640 handle structure
[out]*startpointer to a start buffer
Returns
status code
  • 0 success
  • 1 get vertical window line start failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 1220 of file driver_ov2640.c.

◆ ov2640_get_vsync_polarity()

uint8_t ov2640_get_vsync_polarity ( ov2640_handle_t * handle,
ov2640_polarity_t * polarity )

get vsync polarity

Parameters
[in]*handlepointer to an ov2640 handle structure
[out]*polaritypointer to a polarity buffer
Returns
status code
  • 0 success
  • 1 get vsync polarity failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 3548 of file driver_ov2640.c.

◆ ov2640_get_vsync_pulse_width()

uint8_t ov2640_get_vsync_pulse_width ( ov2640_handle_t * handle,
uint16_t * width )

get vsync pulse width

Parameters
[in]*handlepointer to an ov2640 handle structure
[out]*widthpointer to a width buffer
Returns
status code
  • 0 success
  • 1 get vsync pulse width failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 4262 of file driver_ov2640.c.

◆ ov2640_get_zoom()

uint8_t ov2640_get_zoom ( ov2640_handle_t * handle,
ov2640_bool_t * enable )

get zoom status

Parameters
[in]*handlepointer to an ov2640 handle structure
[out]*enablepointer to a value buffer
Returns
status code
  • 0 success
  • 1 get zoom failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 2646 of file driver_ov2640.c.

◆ ov2640_get_zoom_mode_vertical_window_start_point()

uint8_t ov2640_get_zoom_mode_vertical_window_start_point ( ov2640_handle_t * handle,
uint16_t * point )

get zoom mode vertical window start point

Parameters
[in]*handlepointer to an ov2640 handle structure
[out]*pointpointer to a point buffer
Returns
status code
  • 0 success
  • 1 get zoom mode vertical window start point failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 4912 of file driver_ov2640.c.

◆ ov2640_get_zoom_window_horizontal_start_point()

uint8_t ov2640_get_zoom_window_horizontal_start_point ( ov2640_handle_t * handle,
ov2640_bool_t * enable )

get zoom window horizontal start point status

Parameters
[in]*handlepointer to an ov2640 handle structure
[out]*enablepointer to a value buffer
Returns
status code
  • 0 success
  • 1 get zoom window horizontal start point failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 4718 of file driver_ov2640.c.

◆ ov2640_info()

uint8_t ov2640_info ( ov2640_info_t * info)

get chip's information

Parameters
[out]*infopointer to an ov2640 info structure
Returns
status code
  • 0 success
  • 2 handle is NULL
Note
none

Definition at line 12364 of file driver_ov2640.c.

◆ ov2640_init()

uint8_t ov2640_init ( ov2640_handle_t * handle)

initialize the chip

Parameters
[in]*handlepointer to an ov2640 handle structure
Returns
status code
  • 0 success
  • 1 sccb initialization failed
  • 2 handle is NULL
  • 3 linked functions is NULL
  • 4 gpio init failed
  • 5 hardware reset failed
  • 6 soft reset failed
  • 7 manufacturer id is invalid
  • 8 product id is invalid
Note
none

Definition at line 537 of file driver_ov2640.c.

◆ ov2640_set_16_zone_average_weight_option()

uint8_t ov2640_set_16_zone_average_weight_option ( ov2640_handle_t * handle,
uint32_t avg )

set 16 zone average weight option

Parameters
[in]*handlepointer to an ov2640 handle structure
[in]avgset avg
Returns
status code
  • 0 success
  • 1 set 16 zone average weight option failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 5241 of file driver_ov2640.c.

◆ ov2640_set_50hz_banding_aec()

uint8_t ov2640_set_50hz_banding_aec ( ov2640_handle_t * handle,
uint16_t aec )

set 50hz banding aec

Parameters
[in]*handlepointer to an ov2640 handle structure
[in]aecset aec
Returns
status code
  • 0 success
  • 1 set 50hz banding aec failed
  • 2 handle is NULL
  • 3 handle is not initialized
  • 4 aec > 0x3FF
Note
none

Definition at line 5032 of file driver_ov2640.c.

◆ ov2640_set_60hz_banding_aec()

uint8_t ov2640_set_60hz_banding_aec ( ov2640_handle_t * handle,
uint16_t aec )

set 60hz banding aec

Parameters
[in]*handlepointer to an ov2640 handle structure
[in]aecset aec
Returns
status code
  • 0 success
  • 1 set 60hz banding aec failed
  • 2 handle is NULL
  • 3 handle is not initialized
  • 4 aec > 0x3FF
Note
none

Definition at line 5137 of file driver_ov2640.c.

◆ ov2640_set_aec()

uint8_t ov2640_set_aec ( ov2640_handle_t * handle,
uint16_t aec )

set aec

Parameters
[in]*handlepointer to an ov2640 handle structure
[in]aecset param
Returns
status code
  • 0 success
  • 1 set aec failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 1534 of file driver_ov2640.c.

◆ ov2640_set_agc_control()

uint8_t ov2640_set_agc_control ( ov2640_handle_t * handle,
ov2640_control_t control )

set agc control

Parameters
[in]*handlepointer to an ov2640 handle structure
[in]controlset control
Returns
status code
  • 0 success
  • 1 set agc control failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 2847 of file driver_ov2640.c.

◆ ov2640_set_agc_gain()

uint8_t ov2640_set_agc_gain ( ov2640_handle_t * handle,
uint16_t gain )

set agc gain

Parameters
[in]*handlepointer to an ov2640 handle structure
[in]gainset gain
Returns
status code
  • 0 success
  • 1 set agc gain failed
  • 2 handle is NULL
  • 3 handle is not initialized
  • 4 gain > 0x3FF
Note
gain = (bit[7] + 1) * (bit[6] + 1) * (bit[5] + 1) * (bit[4] + 1) * (1 + bit[3:0]) / 16

Definition at line 975 of file driver_ov2640.c.

◆ ov2640_set_agc_gain_ceiling()

uint8_t ov2640_set_agc_gain_ceiling ( ov2640_handle_t * handle,
ov2640_agc_gain_t agc )

set agc

Parameters
[in]*handlepointer to an ov2640 handle structure
[in]agcset agc
Returns
status code
  • 0 success
  • 1 set agc failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 3011 of file driver_ov2640.c.

◆ ov2640_set_auto_band()

uint8_t ov2640_set_auto_band ( ov2640_handle_t * handle,
ov2640_bool_t enable )

enable or disable auto band

Parameters
[in]*handlepointer to an ov2640 handle structure
[in]enablebool value
Returns
status code
  • 0 success
  • 1 set auto band failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 2057 of file driver_ov2640.c.

◆ ov2640_set_band()

uint8_t ov2640_set_band ( ov2640_handle_t * handle,
ov2640_band_t band )

set band

Parameters
[in]*handlepointer to an ov2640 handle structure
[in]bandset band
Returns
status code
  • 0 success
  • 1 set band failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 1975 of file driver_ov2640.c.

◆ ov2640_set_band_filter()

uint8_t ov2640_set_band_filter ( ov2640_handle_t * handle,
ov2640_bool_t enable )

enable or disable band filter

Parameters
[in]*handlepointer to an ov2640 handle structure
[in]enablebool value
Returns
status code
  • 0 success
  • 1 set band filter failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 2765 of file driver_ov2640.c.

◆ ov2640_set_chsync_href_swap()

uint8_t ov2640_set_chsync_href_swap ( ov2640_handle_t * handle,
ov2640_bool_t enable )

enable or disable chsync href swap

Parameters
[in]*handlepointer to an ov2640 handle structure
[in]enablebool value
Returns
status code
  • 0 success
  • 1 set chsync href swap failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 3093 of file driver_ov2640.c.

◆ ov2640_set_clock_divider()

uint8_t ov2640_set_clock_divider ( ov2640_handle_t * handle,
uint8_t divider )

set clock divider

Parameters
[in]*handlepointer to an ov2640 handle structure
[in]dividerset divider
Returns
status code
  • 0 success
  • 1 set clock divider failed
  • 2 handle is NULL
  • 3 handle is not initialized
  • 4 divider > 0x3F
Note
none

Definition at line 2386 of file driver_ov2640.c.

◆ ov2640_set_clock_output_power_down_pin_status()

uint8_t ov2640_set_clock_output_power_down_pin_status ( ov2640_handle_t * handle,
ov2640_pin_status_t status )

set clock output power down pin status

Parameters
[in]*handlepointer to an ov2640 handle structure
[in]statusset pin status
Returns
status code
  • 0 success
  • 1 set clock output power down pin status failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 2221 of file driver_ov2640.c.

◆ ov2640_set_clock_rate_double()

uint8_t ov2640_set_clock_rate_double ( ov2640_handle_t * handle,
ov2640_bool_t enable )

enable or disable double clock rate

Parameters
[in]*handlepointer to an ov2640 handle structure
[in]enablebool value
Returns
status code
  • 0 success
  • 1 set clock rate double failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 2303 of file driver_ov2640.c.

◆ ov2640_set_color_bar_test()

uint8_t ov2640_set_color_bar_test ( ov2640_handle_t * handle,
ov2640_bool_t enable )

enable or disable color bar test

Parameters
[in]*handlepointer to an ov2640 handle structure
[in]enablebool value
Returns
status code
  • 0 success
  • 1 set color bar test failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 2683 of file driver_ov2640.c.

◆ ov2640_set_dummy_frame()

uint8_t ov2640_set_dummy_frame ( ov2640_handle_t * handle,
ov2640_dummy_frame_t frame )

set dummy frame

Parameters
[in]*handlepointer to an ov2640 handle structure
[in]frameset frame
Returns
status code
  • 0 success
  • 1 set dummy frame failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 1078 of file driver_ov2640.c.

◆ ov2640_set_exposure_control()

uint8_t ov2640_set_exposure_control ( ov2640_handle_t * handle,
ov2640_control_t control )

set exposure control

Parameters
[in]*handlepointer to an ov2640 handle structure
[in]controlset control
Returns
status code
  • 0 success
  • 1 set exposure control failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 2929 of file driver_ov2640.c.

◆ ov2640_set_fast_mode_large_step_range()

uint8_t ov2640_set_fast_mode_large_step_range ( ov2640_handle_t * handle,
uint8_t high_threshold,
uint8_t low_threshold )

set fast mode large step range

Parameters
[in]*handlepointer to an ov2640 handle structure
[in]high_thresholdset high threshold
[in]low_thresholdset low threshold
Returns
status code
  • 0 success
  • 1 set fast mode large step range failed
  • 2 handle is NULL
  • 3 handle is not initialized
  • 4 high_threshold > 0xF
  • 5 low_threshold > 0xF
Note
none

Definition at line 3814 of file driver_ov2640.c.

◆ ov2640_set_flash_light()

uint8_t ov2640_set_flash_light ( ov2640_handle_t * handle,
uint8_t control )

set flash light

Parameters
[in]*handlepointer to an ov2640 handle structure
[in]controlset control
Returns
status code
  • 0 success
  • 1 set flash light failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 4957 of file driver_ov2640.c.

◆ ov2640_set_frame_exposure_pre_charge_row_number()

uint8_t ov2640_set_frame_exposure_pre_charge_row_number ( ov2640_handle_t * handle,
uint8_t num )

set frame exposure pre charge row number

Parameters
[in]*handlepointer to an ov2640 handle structure
[in]numpre charge row number
Returns
status code
  • 0 success
  • 1 set frame exposure pre charge row number failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 1657 of file driver_ov2640.c.

◆ ov2640_set_frame_length_adjustment()

uint8_t ov2640_set_frame_length_adjustment ( ov2640_handle_t * handle,
uint16_t frame )

set frame length adjustment

Parameters
[in]*handlepointer to an ov2640 handle structure
[in]frameset frame
Returns
status code
  • 0 success
  • 1 set frame length adjustment failed
  • 2 handle is NULL
  • 3 handle is not initialized
  • 4 frame > 0x3FF
Note
none

Definition at line 4756 of file driver_ov2640.c.

◆ ov2640_set_histogram_algorithm_high_level()

uint8_t ov2640_set_histogram_algorithm_high_level ( ov2640_handle_t * handle,
uint8_t level )

set histogram algorithm high level

Parameters
[in]*handlepointer to an ov2640 handle structure
[in]levelhigh level
Returns
status code
  • 0 success
  • 1 set histogram algorithm high level failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 5437 of file driver_ov2640.c.

◆ ov2640_set_histogram_algorithm_low_level()

uint8_t ov2640_set_histogram_algorithm_low_level ( ov2640_handle_t * handle,
uint8_t level )

set histogram algorithm low level

Parameters
[in]*handlepointer to an ov2640 handle structure
[in]levellow level
Returns
status code
  • 0 success
  • 1 set histogram algorithm low level failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 5363 of file driver_ov2640.c.

◆ ov2640_set_horizontal_mirror()

uint8_t ov2640_set_horizontal_mirror ( ov2640_handle_t * handle,
ov2640_bool_t enable )

enable or disable horizontal mirror

Parameters
[in]*handlepointer to an ov2640 handle structure
[in]enablebool value
Returns
status code
  • 0 success
  • 1 set horizontal mirror failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 1370 of file driver_ov2640.c.

◆ ov2640_set_horizontal_window_end()

uint8_t ov2640_set_horizontal_window_end ( ov2640_handle_t * handle,
uint16_t end )

set horizontal window end

Parameters
[in]*handlepointer to an ov2640 handle structure
[in]endhorizontal window end
Returns
status code
  • 0 success
  • 1 set horizontal window end failed
  • 2 handle is NULL
  • 3 handle is not initialized
  • 4 end > 0x7FF
Note
none

Definition at line 4487 of file driver_ov2640.c.

◆ ov2640_set_horizontal_window_start()

uint8_t ov2640_set_horizontal_window_start ( ov2640_handle_t * handle,
uint16_t start )

set horizontal window start

Parameters
[in]*handlepointer to an ov2640 handle structure
[in]starthorizontal window start
Returns
status code
  • 0 success
  • 1 set horizontal window start failed
  • 2 handle is NULL
  • 3 handle is not initialized
  • 4 start > 0x7FF
Note
none

Definition at line 4382 of file driver_ov2640.c.

◆ ov2640_set_href_chsync_swap()

uint8_t ov2640_set_href_chsync_swap ( ov2640_handle_t * handle,
ov2640_bool_t enable )

enable or disable href chsync swap

Parameters
[in]*handlepointer to an ov2640 handle structure
[in]enablebool value
Returns
status code
  • 0 success
  • 1 set href chsync swap failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 3175 of file driver_ov2640.c.

◆ ov2640_set_href_polarity()

uint8_t ov2640_set_href_polarity ( ov2640_handle_t * handle,
ov2640_polarity_t polarity )

set href polarity

Parameters
[in]*handlepointer to an ov2640 handle structure
[in]polarityset polarity
Returns
status code
  • 0 success
  • 1 set href polarity failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 3421 of file driver_ov2640.c.

◆ ov2640_set_hsync_polarity()

uint8_t ov2640_set_hsync_polarity ( ov2640_handle_t * handle,
ov2640_polarity_t polarity )

set hsync polarity

Parameters
[in]*handlepointer to an ov2640 handle structure
[in]polarityset polarity
Returns
status code
  • 0 success
  • 1 set hsync polarity failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 3585 of file driver_ov2640.c.

◆ ov2640_set_hsync_position_and_width_end_point()

uint8_t ov2640_set_hsync_position_and_width_end_point ( ov2640_handle_t * handle,
uint16_t position )

set hsync position and width end point

Parameters
[in]*handlepointer to an ov2640 handle structure
[in]positionset position
Returns
status code
  • 0 success
  • 1 set hsync position and width end point failed
  • 2 handle is NULL
  • 3 handle is not initialized
  • 4 position > 0x3FF
Note
none

Definition at line 4008 of file driver_ov2640.c.

◆ ov2640_set_hsync_position_and_width_start_point()

uint8_t ov2640_set_hsync_position_and_width_start_point ( ov2640_handle_t * handle,
uint16_t position )

set hsync position and width start point

Parameters
[in]*handlepointer to an ov2640 handle structure
[in]positionset position
Returns
status code
  • 0 success
  • 1 set hsync position and width start point failed
  • 2 handle is NULL
  • 3 handle is not initialized
  • 4 position > 0x3FF
Note
none

Definition at line 4113 of file driver_ov2640.c.

◆ ov2640_set_line_interval_adjust()

uint8_t ov2640_set_line_interval_adjust ( ov2640_handle_t * handle,
uint16_t adjust )

set line interval adjust

Parameters
[in]*handlepointer to an ov2640 handle structure
[in]adjustset line interval adjust
Returns
status code
  • 0 success
  • 1 set line interval adjust failed
  • 2 handle is NULL
  • 3 handle is not initialized
  • 4 adjust > 0xFFF
Note
none

Definition at line 3903 of file driver_ov2640.c.

◆ ov2640_set_live_video_after_snapshot()

uint8_t ov2640_set_live_video_after_snapshot ( ov2640_handle_t * handle,
ov2640_bool_t enable )

enable or disable live video after snapshot

Parameters
[in]*handlepointer to an ov2640 handle structure
[in]enablebool value
Returns
status code
  • 0 success
  • 1 set live video after snapshot failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 2139 of file driver_ov2640.c.

◆ ov2640_set_luminance_average()

uint8_t ov2640_set_luminance_average ( ov2640_handle_t * handle,
uint8_t average )

set luminance average

Parameters
[in]*handlepointer to an ov2640 handle structure
[in]averageluminance average
Returns
status code
  • 0 success
  • 1 set luminance average failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 4307 of file driver_ov2640.c.

◆ ov2640_set_luminance_signal_high_range()

uint8_t ov2640_set_luminance_signal_high_range ( ov2640_handle_t * handle,
uint8_t range )

set luminance signal high range

Parameters
[in]*handlepointer to an ov2640 handle structure
[in]rangeset range
Returns
status code
  • 0 success
  • 1 set luminance signal high range failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 3667 of file driver_ov2640.c.

◆ ov2640_set_luminance_signal_low_range()

uint8_t ov2640_set_luminance_signal_low_range ( ov2640_handle_t * handle,
uint8_t range )

set luminance signal low range

Parameters
[in]*handlepointer to an ov2640 handle structure
[in]rangeset range
Returns
status code
  • 0 success
  • 1 set luminance signal low range failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 3739 of file driver_ov2640.c.

◆ ov2640_set_mode()

uint8_t ov2640_set_mode ( ov2640_handle_t * handle,
ov2640_mode_t mode )

set mode

Parameters
[in]*handlepointer to an ov2640 handle structure
[in]modeset mode
Returns
status code
  • 0 success
  • 1 set mode failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 1729 of file driver_ov2640.c.

◆ ov2640_set_output_drive()

uint8_t ov2640_set_output_drive ( ov2640_handle_t * handle,
ov2640_output_drive_t select )

set output drive

Parameters
[in]*handlepointer to an ov2640 handle structure
[in]selectoutput drive
Returns
status code
  • 0 success
  • 1 set output drive failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 1893 of file driver_ov2640.c.

◆ ov2640_set_pclk()

uint8_t ov2640_set_pclk ( ov2640_handle_t * handle,
ov2640_pclk_t pclk )

set pclk

Parameters
[in]*handlepointer to an ov2640 handle structure
[in]pclkset pclk
Returns
status code
  • 0 success
  • 1 set pclk failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 4591 of file driver_ov2640.c.

◆ ov2640_set_pclk_edge()

uint8_t ov2640_set_pclk_edge ( ov2640_handle_t * handle,
ov2640_edge_t edge )

set pclk edge

Parameters
[in]*handlepointer to an ov2640 handle structure
[in]edgepclk edge
Returns
status code
  • 0 success
  • 1 set pclk edge failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 3339 of file driver_ov2640.c.

◆ ov2640_set_pclk_output_qualified_by_href()

uint8_t ov2640_set_pclk_output_qualified_by_href ( ov2640_handle_t * handle,
ov2640_bool_t enable )

enable or disable pclk output qualified by href

Parameters
[in]*handlepointer to an ov2640 handle structure
[in]enablebool value
Returns
status code
  • 0 success
  • 1 set pclk output qualified by href failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 3257 of file driver_ov2640.c.

◆ ov2640_set_power_reset_pin_remap()

uint8_t ov2640_set_power_reset_pin_remap ( ov2640_handle_t * handle,
ov2640_bool_t enable )

enable or disable power reset pin remap

Parameters
[in]*handlepointer to an ov2640 handle structure
[in]enablebool value
Returns
status code
  • 0 success
  • 1 set power reset pin remap failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 1811 of file driver_ov2640.c.

◆ ov2640_set_resolution()

uint8_t ov2640_set_resolution ( ov2640_handle_t * handle,
ov2640_resolution_t resolution )

set resolution

Parameters
[in]*handlepointer to an ov2640 handle structure
[in]resolutionset resolution
Returns
status code
  • 0 success
  • 1 set resolution failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 2519 of file driver_ov2640.c.

◆ ov2640_set_vertical_flip()

uint8_t ov2640_set_vertical_flip ( ov2640_handle_t * handle,
ov2640_bool_t enable )

enable or disable vertical flip

Parameters
[in]*handlepointer to an ov2640 handle structure
[in]enablebool value
Returns
status code
  • 0 success
  • 1 set vertical flip failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 1452 of file driver_ov2640.c.

◆ ov2640_set_vertical_window_line_end()

uint8_t ov2640_set_vertical_window_line_end ( ov2640_handle_t * handle,
uint16_t end )

set vertical window line end

Parameters
[in]*handlepointer to an ov2640 handle structure
[in]endset end
Returns
status code
  • 0 success
  • 1 set vertical window line end failed
  • 2 handle is NULL
  • 3 handle is not initialized
  • 4 end > 0x3FF
Note
none

Definition at line 1266 of file driver_ov2640.c.

◆ ov2640_set_vertical_window_line_start()

uint8_t ov2640_set_vertical_window_line_start ( ov2640_handle_t * handle,
uint16_t start )

set vertical window line start

Parameters
[in]*handlepointer to an ov2640 handle structure
[in]startset start
Returns
status code
  • 0 success
  • 1 set vertical window line start failed
  • 2 handle is NULL
  • 3 handle is not initialized
  • 4 start > 0x3FF
Note
none

Definition at line 1161 of file driver_ov2640.c.

◆ ov2640_set_vsync_polarity()

uint8_t ov2640_set_vsync_polarity ( ov2640_handle_t * handle,
ov2640_polarity_t polarity )

set vsync polarity

Parameters
[in]*handlepointer to an ov2640 handle structure
[in]polarityset polarity
Returns
status code
  • 0 success
  • 1 set vsync polarity failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 3503 of file driver_ov2640.c.

◆ ov2640_set_vsync_pulse_width()

uint8_t ov2640_set_vsync_pulse_width ( ov2640_handle_t * handle,
uint16_t width )

set vsync pulse width

Parameters
[in]*handlepointer to an ov2640 handle structure
[in]widthset width
Returns
status code
  • 0 success
  • 1 set vsync pulse width failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 4217 of file driver_ov2640.c.

◆ ov2640_set_zoom()

uint8_t ov2640_set_zoom ( ov2640_handle_t * handle,
ov2640_bool_t enable )

enable or disable zoom

Parameters
[in]*handlepointer to an ov2640 handle structure
[in]enablebool value
Returns
status code
  • 0 success
  • 1 set zoom failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 2601 of file driver_ov2640.c.

◆ ov2640_set_zoom_mode_vertical_window_start_point()

uint8_t ov2640_set_zoom_mode_vertical_window_start_point ( ov2640_handle_t * handle,
uint16_t point )

set zoom mode vertical window start point

Parameters
[in]*handlepointer to an ov2640 handle structure
[in]pointset point
Returns
status code
  • 0 success
  • 1 set zoom mode vertical window start point failed
  • 2 handle is NULL
  • 3 handle is not initialized
  • 4 point > 0x3FF
Note
none

Definition at line 4853 of file driver_ov2640.c.

◆ ov2640_set_zoom_window_horizontal_start_point()

uint8_t ov2640_set_zoom_window_horizontal_start_point ( ov2640_handle_t * handle,
ov2640_bool_t enable )

enable or disable zoom window horizontal start point

Parameters
[in]*handlepointer to an ov2640 handle structure
[in]enablebool value
Returns
status code
  • 0 success
  • 1 set zoom window horizontal start point failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 4673 of file driver_ov2640.c.

◆ ov2640_soft_reset()

uint8_t ov2640_soft_reset ( ov2640_handle_t * handle)

soft reset

Parameters
[in]*handlepointer to an ov2640 handle structure
Returns
status code
  • 0 success
  • 1 soft reset failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 2473 of file driver_ov2640.c.

◆ ov2640_table_init()

uint8_t ov2640_table_init ( ov2640_handle_t * handle)

table init

Parameters
[in]*handlepointer to an ov2640 handle structure
Returns
status code
  • 0 success
  • 1 table init failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 846 of file driver_ov2640.c.

◆ ov2640_table_jpeg_init()

uint8_t ov2640_table_jpeg_init ( ov2640_handle_t * handle)

table jpeg init

Parameters
[in]*handlepointer to an ov2640 handle structure
Returns
status code
  • 0 success
  • 1 table jpeg init failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 888 of file driver_ov2640.c.

◆ ov2640_table_rgb565_init()

uint8_t ov2640_table_rgb565_init ( ov2640_handle_t * handle)

table rgb565 init

Parameters
[in]*handlepointer to an ov2640 handle structure
Returns
status code
  • 0 success
  • 1 table rgb565 init failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 930 of file driver_ov2640.c.