#include <trigger.h>
Public Member Functions | |
bool | enumSources (dc1394camera_t *camera, dc1394trigger_sources_t &sources) |
externalTriggerPowerState_ (DC1394_OFF) | |
dc1394switch_t | getExternalTriggerPowerState (dc1394camera_t *camera) |
dc1394trigger_mode_t | getMode (dc1394camera_t *camera) |
dc1394trigger_polarity_t | getPolarity (dc1394camera_t *camera) |
dc1394switch_t | getSoftwareTriggerPowerState (dc1394camera_t *camera) |
dc1394trigger_source_t | getSource (dc1394camera_t *camera) |
bool | initialize (Config *newconfig) |
bool | isPowered () |
bool | reconfigure (Config *newconfig) |
bool | setExternalTriggerPowerState (dc1394camera_t *camera, dc1394switch_t &state) |
bool | setMode (dc1394camera_t *camera, dc1394trigger_mode_t &mode) |
bool | setPolarity (dc1394camera_t *camera, dc1394trigger_polarity_t &polarity) |
bool | setSoftwareTriggerPowerState (dc1394camera_t *camera, dc1394switch_t &state) |
bool | setSource (dc1394camera_t *camera, dc1394trigger_source_t &source) |
Trigger (dc1394camera_t *camera) | |
const std::string | triggerModeName (dc1394trigger_mode_t mode) |
const std::string | triggerPolarityName (dc1394trigger_polarity_t polarity) |
const std::string | triggerSourceName (dc1394trigger_source_t source) |
Private Member Functions | |
bool | checkTriggerSource (dc1394trigger_source_t source) |
bool | findTriggerMode (std::string str) |
bool | findTriggerPolarity (std::string str) |
bool | findTriggerSource (std::string str) |
Private Attributes | |
dc1394camera_t * | camera_ |
dc1394switch_t | externalTriggerPowerState_ |
dc1394trigger_mode_t | triggerMode_ |
dc1394trigger_polarity_t | triggerPolarity_ |
dc1394trigger_source_t | triggerSource_ |
dc1394trigger_sources_t | triggerSources_ |
Static Private Attributes | |
static const std::string | trigger_mode_names_ [DC1394_TRIGGER_MODE_NUM] |
driver parameter names, corresponding to DC1394 trigger modes | |
static const std::string | trigger_polarity_names_ [DC1394_TRIGGER_ACTIVE_NUM] = {"active_low", "active_high", } |
driver parameter names, corresponding to DC1394 trigger sources | |
static const std::string | trigger_source_names_ [DC1394_TRIGGER_SOURCE_NUM] |
driver parameter names, corresponding to DC1394 trigger sources |
Trigger::Trigger | ( | dc1394camera_t * | camera | ) | [inline] |
bool Trigger::checkTriggerSource | ( | dc1394trigger_source_t | source | ) | [private] |
Definition at line 115 of file trigger.cpp.
bool Trigger::enumSources | ( | dc1394camera_t * | camera, |
dc1394trigger_sources_t & | sources | ||
) |
Get supported external trigger sources.
camera | points to DC1394 camera struct |
Definition at line 128 of file trigger.cpp.
Trigger::externalTriggerPowerState_ | ( | DC1394_OFF | ) | [inline] |
bool Trigger::findTriggerMode | ( | std::string | str | ) | [private] |
Definition at line 52 of file trigger.cpp.
bool Trigger::findTriggerPolarity | ( | std::string | str | ) | [private] |
Definition at line 100 of file trigger.cpp.
bool Trigger::findTriggerSource | ( | std::string | str | ) | [private] |
Definition at line 79 of file trigger.cpp.
dc1394switch_t Trigger::getExternalTriggerPowerState | ( | dc1394camera_t * | camera | ) |
Get external trigger power state.
camera | points to DC1394 camera struct. |
Definition at line 236 of file trigger.cpp.
dc1394trigger_mode_t Trigger::getMode | ( | dc1394camera_t * | camera | ) |
Get current trigger mode.
camera | points to DC1394 camera struct. |
Definition at line 325 of file trigger.cpp.
dc1394trigger_polarity_t Trigger::getPolarity | ( | dc1394camera_t * | camera | ) |
Get external trigger polarity.
camera | points to DC1394 camera struct. |
Definition at line 159 of file trigger.cpp.
dc1394switch_t Trigger::getSoftwareTriggerPowerState | ( | dc1394camera_t * | camera | ) |
Get software trigger power state.
camera | points to DC1394 camera struct. |
Definition at line 281 of file trigger.cpp.
dc1394trigger_source_t Trigger::getSource | ( | dc1394camera_t * | camera | ) |
Get current trigger source.
camera | points to DC1394 camera struct. |
Definition at line 370 of file trigger.cpp.
bool Trigger::initialize | ( | Config * | newconfig | ) |
enumerates trigger sources and configures triggering parameters according to config values
newconfig | [in,out] configuration parameters, updated to conform with device restrictions. |
Definition at line 508 of file trigger.cpp.
bool Trigger::isPowered | ( | ) | [inline] |
bool Trigger::reconfigure | ( | Config * | newconfig | ) |
reconfigures triggering parameters according to config values
newconfig | [in,out] configuration parameters, updated to conform with device restrictions. |
Definition at line 417 of file trigger.cpp.
bool Trigger::setExternalTriggerPowerState | ( | dc1394camera_t * | camera, |
dc1394switch_t & | state | ||
) |
Set external trigger power state.
camera | points to DC1394 camera struct | |
[in,out] | state | Config parameter for this option, updated if the camera does not support the requested value |
Definition at line 257 of file trigger.cpp.
bool Trigger::setMode | ( | dc1394camera_t * | camera, |
dc1394trigger_mode_t & | mode | ||
) |
Set external trigger mode.
camera | points to DC1394 camera struct | |
[in,out] | mode | Config parameter for this option, updated if the camera does not support the requested value |
Definition at line 346 of file trigger.cpp.
bool Trigger::setPolarity | ( | dc1394camera_t * | camera, |
dc1394trigger_polarity_t & | polarity | ||
) |
Set external trigger polarity.
camera | points to DC1394 camera struct | |
[in,out] | polarity | Config parameter for this option, updated if the camera does not support the requested value |
Definition at line 196 of file trigger.cpp.
bool Trigger::setSoftwareTriggerPowerState | ( | dc1394camera_t * | camera, |
dc1394switch_t & | state | ||
) |
Set software trigger power state.
camera | points to DC1394 camera struct | |
[in,out] | state | Config parameter for this option, updated if the camera does not support the requested value |
Definition at line 301 of file trigger.cpp.
bool Trigger::setSource | ( | dc1394camera_t * | camera, |
dc1394trigger_source_t & | source | ||
) |
Set external trigger source.
camera | points to DC1394 camera struct | |
[in,out] | source | Config parameter for this option, updated if the camera does not support the requested value |
Definition at line 391 of file trigger.cpp.
const std::string Trigger::triggerModeName | ( | dc1394trigger_mode_t | mode | ) | [inline] |
const std::string Trigger::triggerPolarityName | ( | dc1394trigger_polarity_t | polarity | ) | [inline] |
const std::string Trigger::triggerSourceName | ( | dc1394trigger_source_t | source | ) | [inline] |
dc1394camera_t* Trigger::camera_ [private] |
dc1394switch_t Trigger::externalTriggerPowerState_ [private] |
const std::string Trigger::trigger_mode_names_ [static, private] |
const std::string Trigger::trigger_polarity_names_ = {"active_low", "active_high", } [static, private] |
const std::string Trigger::trigger_source_names_ [static, private] |
dc1394trigger_mode_t Trigger::triggerMode_ [private] |
dc1394trigger_polarity_t Trigger::triggerPolarity_ [private] |
dc1394trigger_source_t Trigger::triggerSource_ [private] |
dc1394trigger_sources_t Trigger::triggerSources_ [private] |