38 #include <dc1394/dc1394.h> 40 #include "camera1394/Camera1394Config.h" 41 typedef camera1394::Camera1394Config
Config;
95 if (mode >= DC1394_TRIGGER_MODE_MIN && mode <= DC1394_TRIGGER_MODE_MAX)
96 return trigger_mode_names_[mode - DC1394_TRIGGER_MODE_MIN];
108 if (source >= DC1394_TRIGGER_SOURCE_MIN && source <= DC1394_TRIGGER_SOURCE_MAX)
109 return trigger_source_names_[source - DC1394_TRIGGER_SOURCE_MIN];
121 if (polarity >= DC1394_TRIGGER_ACTIVE_MIN && polarity <= DC1394_TRIGGER_ACTIVE_MAX)
122 return trigger_polarity_names_[polarity - DC1394_TRIGGER_ACTIVE_MIN];
135 return (externalTriggerPowerState_ == DC1394_ON ?
true :
false);
138 bool enumSources(dc1394camera_t *camera, dc1394trigger_sources_t &sources);
139 dc1394trigger_polarity_t
getPolarity(dc1394camera_t *camera);
140 bool setPolarity(dc1394camera_t *camera, dc1394trigger_polarity_t &polarity);
145 dc1394trigger_mode_t
getMode(dc1394camera_t *camera);
146 bool setMode(dc1394camera_t *camera, dc1394trigger_mode_t &mode);
147 dc1394trigger_source_t
getSource(dc1394camera_t *camera);
148 bool setSource(dc1394camera_t *camera, dc1394trigger_source_t &source);
154 #endif // _TRIGGER_H_ bool enumSources(dc1394camera_t *camera, dc1394trigger_sources_t &sources)
dc1394trigger_polarity_t triggerPolarity_
dc1394trigger_source_t triggerSource_
static const std::string trigger_source_names_[DC1394_TRIGGER_SOURCE_NUM]
driver parameter names, corresponding to DC1394 trigger sources
bool findTriggerSource(std::string str)
bool findTriggerPolarity(std::string str)
dc1394switch_t externalTriggerPowerState_
const std::string triggerPolarityName(dc1394trigger_polarity_t polarity)
static const std::string trigger_polarity_names_[DC1394_TRIGGER_ACTIVE_NUM]
driver parameter names, corresponding to DC1394 trigger sources
dc1394trigger_sources_t triggerSources_
bool setPolarity(dc1394camera_t *camera, dc1394trigger_polarity_t &polarity)
const std::string triggerModeName(dc1394trigger_mode_t mode)
dc1394switch_t getSoftwareTriggerPowerState(dc1394camera_t *camera)
const std::string triggerSourceName(dc1394trigger_source_t source)
dc1394trigger_polarity_t getPolarity(dc1394camera_t *camera)
dc1394switch_t getExternalTriggerPowerState(dc1394camera_t *camera)
camera1394::Camera1394Config Config
bool setMode(dc1394camera_t *camera, dc1394trigger_mode_t &mode)
bool reconfigure(Config *newconfig)
dc1394trigger_mode_t triggerMode_
static const std::string trigger_mode_names_[DC1394_TRIGGER_MODE_NUM]
driver parameter names, corresponding to DC1394 trigger modes
bool initialize(Config *newconfig)
Trigger(dc1394camera_t *camera)
bool setExternalTriggerPowerState(dc1394camera_t *camera, dc1394switch_t &state)
bool checkTriggerSource(dc1394trigger_source_t source)
bool findTriggerMode(std::string str)
bool setSoftwareTriggerPowerState(dc1394camera_t *camera, dc1394switch_t &state)
camera1394::Camera1394Config Config
bool setSource(dc1394camera_t *camera, dc1394trigger_source_t &source)
dc1394trigger_mode_t getMode(dc1394camera_t *camera)
dc1394trigger_source_t getSource(dc1394camera_t *camera)