Appiko
|
Driver triggers the camera according to configuration sent by application. This Driver uses out_pattern_gen module. More...
Data Structures | |
struct | cam_trigger_config_t |
Structure to store information related to camera trigger. More... | |
struct | cam_trigger_setup_t |
Structure to store information corresponding to hardware and application. More... | |
Enumerations | |
enum | cam_trigger_list_t { CAM_TRIGGER_SINGLE_SHOT, CAM_TRIGGER_MULTI_SHOT, CAM_TRIGGER_LONG_PRESS, CAM_TRIGGER_VIDEO, CAM_TRIGGER_HALF_PRESS, CAM_TRIGGER_NO_PRESS } |
Functions | |
void | cam_trigger_init (cam_trigger_setup_t *cam_trigger_setup) |
Function to initiate output pins. More... | |
void | cam_trigger_set_trigger (cam_trigger_config_t *cam_trigger) |
Function to set a camera trigger. More... | |
void | cam_trigger (uint32_t setup_number) |
Function to trigger the camera with given setup number. More... | |
void | cam_trigger_stop (void) |
Function to stop camera trigger. | |
bool | cam_trigger_is_on (void) |
Function to check status of cam_trigger module. More... | |
The image below gives the flow of how camera triggering takes place.
enum cam_trigger_list_t |
@breif List of Triggers available to application.
Definition at line 66 of file cam_trigger.h.
void cam_trigger | ( | uint32_t | setup_number | ) |
setup_number | Setup which is to be used to trigger the camera. |
Definition at line 524 of file cam_trigger.c.
void cam_trigger_init | ( | cam_trigger_setup_t * | cam_trigger_setup | ) |
cam_trigger_setup | Pointer to cam_trigger module setup cam_trigger_setup_t |
Definition at line 469 of file cam_trigger.c.
References cam_trigger_setup_t::cam_trigger_done_handler, cam_trigger_setup_t::focus_pin, out_gen_init(), and cam_trigger_setup_t::trigger_pin.
bool cam_trigger_is_on | ( | void | ) |
true | : cam_trigger module is already running |
false | : cam_trigger module is not running |
Definition at line 563 of file cam_trigger.c.
void cam_trigger_set_trigger | ( | cam_trigger_config_t * | cam_trigger | ) |
cam_trigger | Structure pointer to the structure storing camera trigger related information. |
Definition at line 483 of file cam_trigger.c.
References CAM_TRIGGER_VIDEO, cam_trigger_config_t::trig_mode, cam_trigger_config_t::trig_param1, and cam_trigger_config_t::trig_param2.