libdc1394: API version 2: Trigger


dc1394_external_trigger_set_polarity()

Arguments:
dc1394camera_t:*camera:A pointer to an initialized camera structure
dc1394trigger_polarity_t:polarity:The polarity of the trigger signal
Returns:   dc1394error_t (error code)

Sets the polarity of the external trigger.


dc1394_external_trigger_get_polarity()

Arguments:
dc1394camera_t:*camera:A pointer to an initialized camera structure
dc1394trigger_polarity_t:*polarity:The polarity of the trigger signal
Returns:   dc1394error_t (error code)

Gets the polarity of the external trigger.


dc1394_external_trigger_has_polarity()

Arguments:
dc1394camera_t:*camera:A pointer to an initialized camera structure
dc1394bool_t:*polarity_capable:Whether the camera supports a change in the external trigger polarity
Returns:   dc1394error_t (error code)

Not every camera supports this feature. You should check for its availability before trying to use this function.


dc1394_external_trigger_set_power()

Arguments:
dc1394camera_t:*camera:A pointer to an initialized camera structure
dc1394switch_t:pwr:Whether to use the external trigger input or not.
Returns:   dc1394error_t (error code)

Switches between internal and external trigger.


dc1394_external_trigger_get_power()

Arguments:
dc1394camera_t:*camera:A pointer to an initialized camera structure
dc1394switch_t:*pwr:Whether the external trigger is used or not
Returns:   dc1394error_t (error code)

Status of the usage of the external trigger input.


dc1394_external_trigger_set_mode()

Arguments:
dc1394camera_t:*camera:A pointer to an initialized camera structure
dc1394trigger_mode_t:mode:A trigger mode
Returns:   dc1394error_t (error code)

You can choose between several trigger modes, defined in the types section. You camera may not support all trigger modes.


dc1394_external_trigger_get_mode()

Arguments:
dc1394camera_t:*camera:A pointer to an initialized camera structure
dc1394trigger_mode_t:*mode:Current trigger mode used
Returns:   dc1394error_t (error code)

Returns the current trigger mode that is used.


dc1394_external_trigger_set_source()

Arguments:
dc1394camera_t:*camera:A pointer to an initialized camera structure
dc1394trigger_source_t:source:A trigger source
Returns:   dc1394error_t (error code)

You can choose between several trigger inputs, defined in the types section. You camera may not support all trigger inputs.


dc1394_external_trigger_get_source()

Arguments:
dc1394camera_t:*camera:A pointer to an initialized camera structure
dc1394trigger_source_t:*source:Current trigger input used
Returns:   dc1394error_t (error code)

Returns the current trigger input that is used.


dc1394_external_trigger_get_supported_sources()

Arguments:
dc1394camera_t:*camera:A pointer to an initialized camera structure
dc1394trigger_sources_t:*sources:
Returns:   dc1394error_t (error code)

dc1394_software_trigger_set_power()

Arguments:
dc1394camera_t:*camera:A pointer to an initialized camera structure
dc1394switch_t:pwr:Whether to use software trigger or not
Returns:   dc1394error_t (error code)

dc1394_software_trigger_get_power()

Arguments:
dc1394camera_t:*camera:A pointer to an initialized camera structure
dc1394switch_t:*pwr:The current state of software triggering.
Returns:   dc1394error_t (error code)