ARMEBS4  revision-26.06.2015
Data Structures | Functions
Collaboration diagram for Camera:

Data Structures

struct  camera_t
 

Functions

status_e camera_init (const struct camera_t *cam)
 Initialize camera. More...
 
status_e camera_setup (const struct camera_t *cam, const struct camera_image_options_t *new_options)
 Camera setup. More...
 
status_e camera_one_shot_start (const struct camera_t *cam, void(*done_handler)(status_e, const struct camera_t *), void *dst, size_t size)
 Camera take one shot. More...
 
status_e camera_one_shot_wait (const struct camera_t *cam)
 Camera wait one shot finished. More...
 
status_e camera_one_shot_status (const struct camera_t *cam)
 Camera wait one shot status. More...
 
status_e camera_continuous_start (const struct camera_t *cam, void *(*next_handler)(const struct camera_t *), void(*done_handler)(status_e status, const struct camera_t *), size_t size)
 Start continuous capture of camera images. More...
 
status_e camera_continuous_stop (const struct camera_t *cam)
 Camera stop continous capture. More...
 
uint32_t camera_get_image_size (const struct camera_t *cam)
 Compute image byte size using current parameters. More...
 

Detailed Description

Function Documentation

status_e camera_init ( const struct camera_t cam)
status_e camera_setup ( const struct camera_t cam,
const struct camera_image_options_t *  new_options 
)

Camera setup.

Parameters
camthe camera
new_optionsthe new options
Returns
NO_ERROR for no problem

Definition at line 342 of file stm32_camera.c.

References camera_continuous_start(), camera_continuous_stop(), and NO_ERROR.

Here is the call graph for this function:

status_e camera_one_shot_start ( const struct camera_t cam,
void(*)(status_e, const struct camera_t *)  done_handler,
void *  dst,
size_t  size 
)

Camera take one shot.

Parameters
camthe camera
done_handlerthe handler when image is taken, can be NULL
dstwhere to put the data
sizethe size of the data
Returns
NO_ERROR for no problem

Definition at line 485 of file stm32_camera.c.

References memset(), and NO_ERROR.

Here is the call graph for this function:

status_e camera_one_shot_wait ( const struct camera_t cam)

Camera wait one shot finished.

Parameters
camthe camera
Returns
NO_ERROR for no problem

Definition at line 455 of file stm32_camera.c.

References ERROR_TIMEOUT, time_elapsed(), and time_set_timeout_ms().

Here is the call graph for this function:

status_e camera_one_shot_status ( const struct camera_t cam)

Camera wait one shot status.

Returns
ERROR_AGAIN when not finished, NO_ERROR for no problem

Definition at line 472 of file stm32_camera.c.

References ERROR_AGAIN.

status_e camera_continuous_start ( const struct camera_t cam,
void *(*)(const struct camera_t *)  next_handler,
void(*)(status_e status, const struct camera_t *)  done_handler,
size_t  size 
)

Start continuous capture of camera images.

Parameters
*camthe camera
*next_handler
*done_handler
size
Returns
NO_ERROR for no problem

Definition at line 409 of file stm32_camera.c.

References ERROR_BAD_PARAM, memset(), and NO_ERROR.

Referenced by camera_setup().

Here is the call graph for this function:

Here is the caller graph for this function:

status_e camera_continuous_stop ( const struct camera_t cam)

Camera stop continous capture.

Returns
NO_ERROR for no problem

Definition at line 373 of file stm32_camera.c.

References NO_ERROR, time_elapsed(), and time_set_timeout_ms().

Referenced by camera_setup().

Here is the call graph for this function:

Here is the caller graph for this function:

uint32_t camera_get_image_size ( const struct camera_t cam)

Compute image byte size using current parameters.

Returns
byte size of the image

Definition at line 536 of file stm32_camera.c.