Appiko
Data Structures | Enumerations | Functions
Camera Trigger

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...
 

Detailed Description

The image below gives the flow of how camera triggering takes place.

Enumeration Type Documentation

◆ cam_trigger_list_t

@breif List of Triggers available to application.

Enumerator
CAM_TRIGGER_SINGLE_SHOT 

Global Single Shot Trigger

CAM_TRIGGER_MULTI_SHOT 

Global Multi Shot Trigger

CAM_TRIGGER_LONG_PRESS 

Global Long Press Trigger

CAM_TRIGGER_VIDEO 

Global Video Trigger

CAM_TRIGGER_HALF_PRESS 

Global Half Press Trigger

CAM_TRIGGER_NO_PRESS 

Global No Press Trigger

Definition at line 66 of file cam_trigger.h.

Function Documentation

◆ cam_trigger()

void cam_trigger ( uint32_t  setup_number)
Parameters
setup_numberSetup which is to be used to trigger the camera.

Definition at line 524 of file cam_trigger.c.

◆ cam_trigger_init()

void cam_trigger_init ( cam_trigger_setup_t cam_trigger_setup)
Parameters
cam_trigger_setupPointer 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.

◆ cam_trigger_is_on()

bool cam_trigger_is_on ( void  )
Returns
Status of cam_trigger module
Return values
true: cam_trigger module is already running
false: cam_trigger module is not running

Definition at line 563 of file cam_trigger.c.

◆ cam_trigger_set_trigger()

void cam_trigger_set_trigger ( cam_trigger_config_t cam_trigger)
Parameters
cam_triggerStructure 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.