IMVTrigger
The IMVTrigger interface is used to control the trigger functionality of several MontiVision filters.
| get_UseTrigger | Returns whether or not the trigger functionality is used. |
| put_UseTrigger | Activates/deactivates the trigger functionality. |
| get_TriggerMode | Returns the trigger mode. |
| put_TriggerMode | Sets the trigger mode. |
| Trigger | Sets the trigger event. |
Header file: iMVTrigger.h
Interface definition language file: iMVTrigger.idl
Interface ID: IID_IMVTrigger
HRESULT get_UseTrigger( [out, retval] int *piUseTrigger );
Returns TRUE (1) if the trigger is enabled currently and FALSE (0) otherwise.
Parameter:
| piUseTrigger | A pointer to an integer value that receives the trigger flag as integer. |
HRESULT put_UseTrigger( [in ] int iUseTrigger );
Enables or disables the trigger.
Parameter:
| iUseTrigger | Enables or disables the trigger as integer. The value TRUE (1) enables and FALSE (0) disables the trigger. |
HRESULT get_TriggerMode( [out, retval] int *piTriggerMode );
Returns the current trigger mode, either 'trigger on falling edge' or 'trigger on rising edge'.
Parameter:
| piTriggerMode | A pointer to an integer value that receives the trigger mode as MV_TRIGGER_MODE. |
HRESULT put_TriggerMode( [in ] int iTriggerMode );
Sets the trigger mode, either either 'trigger on falling edge' or 'trigger on rising edge'.
Parameter:
| iTriggerMode | Sets the trigger mode as MV_TRIGGER_MODE. |
HRESULT Trigger();
Sets the trigger event.
Filter specific structures and enumerators
typedef enum _MV_TRIGGER_MODE
{
MV_TRIGGER_RISING_EDGE= 0,
MV_TRIGGER_FALLING_EDGE
} MV_TRIGGER_MODE;