![]() |
ARMEBS4
revision-26.06.2015
|
![]() |
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... | |
Initialize camera.
cam | the camera |
Definition at line 273 of file stm32_camera.c.
References Camera_DMA_IRQ_Handler(), DCMI_IRQn, DMA2_Stream1_IRQn, gpio_setup(), gpio_setup_list(), NO_ERROR, NVIC_InitTypeDef::NVIC_IRQChannel, NVIC_InitTypeDef::NVIC_IRQChannelCmd, NVIC_InitTypeDef::NVIC_IRQChannelPreemptionPriority, and NVIC_InitTypeDef::NVIC_IRQChannelSubPriority.
status_e camera_setup | ( | const struct camera_t * | cam, |
const struct camera_image_options_t * | new_options | ||
) |
Camera setup.
cam | the camera |
new_options | the new options |
Definition at line 342 of file stm32_camera.c.
References camera_continuous_start(), camera_continuous_stop(), and NO_ERROR.
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.
cam | the camera |
done_handler | the handler when image is taken, can be NULL |
dst | where to put the data |
size | the size of the data |
Definition at line 485 of file stm32_camera.c.
References memset(), and NO_ERROR.
Camera wait one shot finished.
cam | the camera |
Definition at line 455 of file stm32_camera.c.
References ERROR_TIMEOUT, time_elapsed(), and time_set_timeout_ms().
Camera wait one shot status.
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.
*cam | the camera |
*next_handler | |
*done_handler | |
size |
Definition at line 409 of file stm32_camera.c.
References ERROR_BAD_PARAM, memset(), and NO_ERROR.
Referenced by camera_setup().
Camera stop continous capture.
Definition at line 373 of file stm32_camera.c.
References NO_ERROR, time_elapsed(), and time_set_timeout_ms().
Referenced by camera_setup().
uint32_t camera_get_image_size | ( | const struct camera_t * | cam | ) |
Compute image byte size using current parameters.
Definition at line 536 of file stm32_camera.c.