#include <trigger.h>
|
static const std::string | trigger_mode_names_ [DC1394_TRIGGER_MODE_NUM] |
| driver parameter names, corresponding to DC1394 trigger modes More...
|
|
static const std::string | trigger_polarity_names_ [DC1394_TRIGGER_ACTIVE_NUM] = {"active_low", "active_high", } |
| driver parameter names, corresponding to DC1394 trigger sources More...
|
|
static const std::string | trigger_source_names_ [DC1394_TRIGGER_SOURCE_NUM] |
| driver parameter names, corresponding to DC1394 trigger sources More...
|
|
Definition at line 55 of file trigger.h.
Trigger::Trigger |
( |
dc1394camera_t * |
camera | ) |
|
|
inline |
Constructor
- Parameters
-
camera | address of DC1394 camera structure. |
Definition at line 84 of file trigger.h.
bool Trigger::checkTriggerSource |
( |
dc1394trigger_source_t |
source | ) |
|
|
private |
bool Trigger::enumSources |
( |
dc1394camera_t * |
camera, |
|
|
dc1394trigger_sources_t & |
sources |
|
) |
| |
Get supported external trigger sources.
- Parameters
-
camera | points to DC1394 camera struct |
- Returns
- true if successful
Definition at line 128 of file trigger.cpp.
bool Trigger::findTriggerMode |
( |
std::string |
str | ) |
|
|
private |
bool Trigger::findTriggerPolarity |
( |
std::string |
str | ) |
|
|
private |
bool Trigger::findTriggerSource |
( |
std::string |
str | ) |
|
|
private |
dc1394switch_t Trigger::getExternalTriggerPowerState |
( |
dc1394camera_t * |
camera | ) |
|
Get external trigger power state.
- Parameters
-
camera | points to DC1394 camera struct. |
- Returns
- DC1394_ON for external trigger; DC1394_OFF for internal trigger.
Definition at line 236 of file trigger.cpp.
dc1394trigger_mode_t Trigger::getMode |
( |
dc1394camera_t * |
camera | ) |
|
Get current trigger mode.
- Parameters
-
camera | points to DC1394 camera struct. |
- Returns
- corresponding dc1394trigger_mode_t enum value selected, if successful; DC1394_TRIGGER_MODE_NUM if not.
Definition at line 325 of file trigger.cpp.
dc1394trigger_polarity_t Trigger::getPolarity |
( |
dc1394camera_t * |
camera | ) |
|
Get external trigger polarity.
- Parameters
-
camera | points to DC1394 camera struct. |
- Returns
- corresponding dc1394trigger_polarity_t enum value selected, if successful; DC1394_TRIGGER_ACTIVE_NUM if not.
Definition at line 159 of file trigger.cpp.
dc1394switch_t Trigger::getSoftwareTriggerPowerState |
( |
dc1394camera_t * |
camera | ) |
|
Get software trigger power state.
- Parameters
-
camera | points to DC1394 camera struct. |
- Returns
- DC1394_ON if software trigger is on; DC1394_OFF if not.
Definition at line 281 of file trigger.cpp.
dc1394trigger_source_t Trigger::getSource |
( |
dc1394camera_t * |
camera | ) |
|
Get current trigger source.
- Parameters
-
camera | points to DC1394 camera struct. |
- Returns
- corresponding dc1394trigger_source_t enum value selected, if successful; DC1394_TRIGGER_SOURCE_NUM if not.
Definition at line 370 of file trigger.cpp.
bool Trigger::initialize |
( |
Config * |
newconfig | ) |
|
enumerates trigger sources and configures triggering parameters according to config values
- Parameters
-
newconfig | [in,out] configuration parameters, updated to conform with device restrictions. |
- Returns
- true if successful; false if not
Definition at line 508 of file trigger.cpp.
bool Trigger::isPowered |
( |
| ) |
|
|
inline |
Checks whether external trigger power is ON or OFF. This method uses cached value, which is updated every time the settings are changed by user
- Returns
- true if external trigger power is ON; false if not
Definition at line 133 of file trigger.h.
bool Trigger::reconfigure |
( |
Config * |
newconfig | ) |
|
reconfigures triggering parameters according to config values
- Parameters
-
newconfig | [in,out] configuration parameters, updated to conform with device restrictions. |
- Returns
- true if successful; false if not
Definition at line 417 of file trigger.cpp.
bool Trigger::setExternalTriggerPowerState |
( |
dc1394camera_t * |
camera, |
|
|
dc1394switch_t & |
state |
|
) |
| |
Set external trigger power state.
- Parameters
-
| camera | points to DC1394 camera struct |
[in,out] | state | Config parameter for this option, updated if the camera does not support the requested value |
- Returns
- true if set successfully, false if not.
Definition at line 257 of file trigger.cpp.
bool Trigger::setMode |
( |
dc1394camera_t * |
camera, |
|
|
dc1394trigger_mode_t & |
mode |
|
) |
| |
Set external trigger mode.
- Parameters
-
| camera | points to DC1394 camera struct |
[in,out] | mode | Config parameter for this option, updated if the camera does not support the requested value |
- Returns
- true if set successfully, false if not.
Definition at line 346 of file trigger.cpp.
bool Trigger::setPolarity |
( |
dc1394camera_t * |
camera, |
|
|
dc1394trigger_polarity_t & |
polarity |
|
) |
| |
Set external trigger polarity.
- Parameters
-
| camera | points to DC1394 camera struct |
[in,out] | polarity | Config parameter for this option, updated if the camera does not support the requested value |
- Returns
- true if polarity set successfully, false if not.
Definition at line 196 of file trigger.cpp.
bool Trigger::setSoftwareTriggerPowerState |
( |
dc1394camera_t * |
camera, |
|
|
dc1394switch_t & |
state |
|
) |
| |
Set software trigger power state.
- Parameters
-
| camera | points to DC1394 camera struct |
[in,out] | state | Config parameter for this option, updated if the camera does not support the requested value |
- Returns
- true if set successfully, false if not.
Definition at line 301 of file trigger.cpp.
bool Trigger::setSource |
( |
dc1394camera_t * |
camera, |
|
|
dc1394trigger_source_t & |
source |
|
) |
| |
Set external trigger source.
- Parameters
-
| camera | points to DC1394 camera struct |
[in,out] | source | Config parameter for this option, updated if the camera does not support the requested value |
- Returns
- true if set successfully, false if not.
Definition at line 391 of file trigger.cpp.
const std::string Trigger::triggerModeName |
( |
dc1394trigger_mode_t |
mode | ) |
|
|
inline |
Return driver parameter name of DC1394 trigger_mode.
- Parameters
-
mode | DC1394 trigger mode number |
- Returns
- corresponding parameter name ("" if not a valid mode)
Definition at line 93 of file trigger.h.
const std::string Trigger::triggerPolarityName |
( |
dc1394trigger_polarity_t |
polarity | ) |
|
|
inline |
Return driver parameter name of DC1394 trigger_polarity.
- Parameters
-
mode | DC1394 trigger polarity |
- Returns
- corresponding parameter name ("" if not a valid mode)
Definition at line 119 of file trigger.h.
const std::string Trigger::triggerSourceName |
( |
dc1394trigger_source_t |
source | ) |
|
|
inline |
Return driver parameter name of DC1394 trigger_source.
- Parameters
-
mode | DC1394 trigger source number |
- Returns
- corresponding parameter name ("" if not a valid mode)
Definition at line 106 of file trigger.h.
dc1394camera_t* Trigger::camera_ |
|
private |
dc1394switch_t Trigger::externalTriggerPowerState_ |
|
private |
const std::string Trigger::trigger_mode_names_ |
|
staticprivate |
Initial value:= {"mode_0", "mode_1", "mode_2", "mode_3", "mode_4",
"mode_5", "mode_14", "mode_15", }
driver parameter names, corresponding to DC1394 trigger modes
Definition at line 59 of file trigger.h.
const std::string Trigger::trigger_polarity_names_ = {"active_low", "active_high", } |
|
staticprivate |
driver parameter names, corresponding to DC1394 trigger sources
Definition at line 63 of file trigger.h.
const std::string Trigger::trigger_source_names_ |
|
staticprivate |
Initial value:= {"source_0", "source_1", "source_2",
"source_3", "source_software", }
driver parameter names, corresponding to DC1394 trigger sources
Definition at line 61 of file trigger.h.
dc1394trigger_mode_t Trigger::triggerMode_ |
|
private |
dc1394trigger_polarity_t Trigger::triggerPolarity_ |
|
private |
dc1394trigger_source_t Trigger::triggerSource_ |
|
private |
dc1394trigger_sources_t Trigger::triggerSources_ |
|
private |
The documentation for this class was generated from the following files:
camera1394
Author(s): Jack O'Quin, Ken Tossell, Patrick Beeson, Nate Koenig, Andrew Howard, Damien Douxchamps, Dan Dennedy
autogenerated on Mon Jun 10 2019 12:52:31