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

ov2640 function driver modules More...

Collaboration diagram for ov2640 function driver function:

Enumerations

enum  ov2640_light_mode_t {
  OV2640_LIGHT_MODE_AUTO = 0x1 , OV2640_LIGHT_MODE_SUNNY = 0x2 , OV2640_LIGHT_MODE_CLOUDY = 0x3 , OV2640_LIGHT_MODE_OFFICE = 0x4 ,
  OV2640_LIGHT_MODE_HOME = 0x5
}
 ov2640 light mode enumeration definition More...
enum  ov2640_color_saturation_t {
  OV2640_COLOR_SATURATION_POSITIVE_2 = 0x1 , OV2640_COLOR_SATURATION_POSITIVE_1 = 0x2 , OV2640_COLOR_SATURATION_0 = 0x3 , OV2640_COLOR_SATURATION_NEGATIVE_1 = 0x4 ,
  OV2640_COLOR_SATURATION_NEGATIVE_2 = 0x5
}
 ov2640 color saturation enumeration definition More...
enum  ov2640_brightness_t {
  OV2640_BRIGHTNESS_POSITIVE_2 = 0x1 , OV2640_BRIGHTNESS_POSITIVE_1 = 0x2 , OV2640_BRIGHTNESS_0 = 0x3 , OV2640_BRIGHTNESS_NEGATIVE_1 = 0x4 ,
  OV2640_BRIGHTNESS_NEGATIVE_2 = 0x5
}
 ov2640 brightness enumeration definition More...
enum  ov2640_contrast_t {
  OV2640_CONTRAST_POSITIVE_2 = 0x1 , OV2640_CONTRAST_POSITIVE_1 = 0x2 , OV2640_CONTRAST_0 = 0x3 , OV2640_CONTRAST_NEGATIVE_1 = 0x4 ,
  OV2640_CONTRAST_NEGATIVE_2 = 0x5
}
 ov2640 contrast enumeration definition More...
enum  ov2640_special_effect_t {
  OV2640_SPECIAL_EFFECT_ANTIQUE = 0x1 , OV2640_SPECIAL_EFFECT_BLUISH = 0x2 , OV2640_SPECIAL_EFFECT_GREENISH = 0x3 , OV2640_SPECIAL_EFFECT_REDDISH = 0x4 ,
  OV2640_SPECIAL_EFFECT_BW = 0x5 , OV2640_SPECIAL_EFFECT_NEGATIVE = 0x6 , OV2640_SPECIAL_EFFECT_BW_NEGATIVE = 0x7 , OV2640_SPECIAL_EFFECT_NORMAL = 0x8
}
 ov2640 special effect enumeration definition More...

Functions

uint8_t ov2640_set_light_mode (ov2640_handle_t *handle, ov2640_light_mode_t mode)
 set light mode
uint8_t ov2640_set_color_saturation (ov2640_handle_t *handle, ov2640_color_saturation_t color)
 set color saturation
uint8_t ov2640_set_brightness (ov2640_handle_t *handle, ov2640_brightness_t brightness)
 set brightness
uint8_t ov2640_set_contrast (ov2640_handle_t *handle, ov2640_contrast_t contrast)
 set contrast
uint8_t ov2640_set_special_effect (ov2640_handle_t *handle, ov2640_special_effect_t effect)
 set special effect

Detailed Description

ov2640 function driver modules

Enumeration Type Documentation

◆ ov2640_brightness_t

ov2640 brightness enumeration definition

Enumerator
OV2640_BRIGHTNESS_POSITIVE_2 

brightness +2

OV2640_BRIGHTNESS_POSITIVE_1 

brightness +1

OV2640_BRIGHTNESS_0 

brightness 0

OV2640_BRIGHTNESS_NEGATIVE_1 

brightness -1

OV2640_BRIGHTNESS_NEGATIVE_2 

brightness -2

Definition at line 279 of file driver_ov2640.h.

◆ ov2640_color_saturation_t

ov2640 color saturation enumeration definition

Enumerator
OV2640_COLOR_SATURATION_POSITIVE_2 

saturation +2

OV2640_COLOR_SATURATION_POSITIVE_1 

saturation +1

OV2640_COLOR_SATURATION_0 

saturation 0

OV2640_COLOR_SATURATION_NEGATIVE_1 

saturation -1

OV2640_COLOR_SATURATION_NEGATIVE_2 

saturation -2

Definition at line 267 of file driver_ov2640.h.

◆ ov2640_contrast_t

ov2640 contrast enumeration definition

Enumerator
OV2640_CONTRAST_POSITIVE_2 

contrast +2

OV2640_CONTRAST_POSITIVE_1 

contrast +1

OV2640_CONTRAST_0 

contrast 0

OV2640_CONTRAST_NEGATIVE_1 

contrast -1

OV2640_CONTRAST_NEGATIVE_2 

contrast -2

Definition at line 291 of file driver_ov2640.h.

◆ ov2640_light_mode_t

ov2640 light mode enumeration definition

Enumerator
OV2640_LIGHT_MODE_AUTO 

auto

OV2640_LIGHT_MODE_SUNNY 

sunny

OV2640_LIGHT_MODE_CLOUDY 

cloudy

OV2640_LIGHT_MODE_OFFICE 

office

OV2640_LIGHT_MODE_HOME 

home

Definition at line 255 of file driver_ov2640.h.

◆ ov2640_special_effect_t

ov2640 special effect enumeration definition

Enumerator
OV2640_SPECIAL_EFFECT_ANTIQUE 

antique

OV2640_SPECIAL_EFFECT_BLUISH 

bluish

OV2640_SPECIAL_EFFECT_GREENISH 

greenish

OV2640_SPECIAL_EFFECT_REDDISH 

reddish

OV2640_SPECIAL_EFFECT_BW 

b&w

OV2640_SPECIAL_EFFECT_NEGATIVE 

negative

OV2640_SPECIAL_EFFECT_BW_NEGATIVE 

b&w negative

OV2640_SPECIAL_EFFECT_NORMAL 

normal

Definition at line 303 of file driver_ov2640.h.

Function Documentation

◆ ov2640_set_brightness()

uint8_t ov2640_set_brightness ( ov2640_handle_t * handle,
ov2640_brightness_t brightness )

set brightness

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

Definition at line 11259 of file driver_ov2640.c.

◆ ov2640_set_color_saturation()

uint8_t ov2640_set_color_saturation ( ov2640_handle_t * handle,
ov2640_color_saturation_t color )

set color saturation

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

Definition at line 10996 of file driver_ov2640.c.

◆ ov2640_set_contrast()

uint8_t ov2640_set_contrast ( ov2640_handle_t * handle,
ov2640_contrast_t contrast )

set contrast

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

Definition at line 11522 of file driver_ov2640.c.

◆ ov2640_set_light_mode()

uint8_t ov2640_set_light_mode ( ov2640_handle_t * handle,
ov2640_light_mode_t mode )

set light mode

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

Definition at line 10797 of file driver_ov2640.c.

◆ ov2640_set_special_effect()

uint8_t ov2640_set_special_effect ( ov2640_handle_t * handle,
ov2640_special_effect_t effect )

set special effect

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

Definition at line 11865 of file driver_ov2640.c.