nScopeAPI  v0.8
nScopeAPI_trigger.h
Go to the documentation of this file.
1 /*******************************************************
2  nScopeAPI - Multi-Platform library for
3  communication with nScope devices.
4 
5  David Meyer
6 
7  10/23/2014
8 
9  Copyright 2014, All Rights Reserved.
10 
11 ********************************************************/
12 
18 #ifndef NSCOPEAPI_TRIGGER_H__
19 #define NSCOPEAPI_TRIGGER_H__
20 
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24 
25 
38  NSCOPE_API ErrorType nScope_set_trigger_on(ScopeHandle nScope, bool triggerOn);
39 
52  NSCOPE_API ErrorType nScope_get_trigger_on(ScopeHandle nScope, bool* triggerOn);
53 
65  NSCOPE_API ErrorType nScope_set_trigger_source(ScopeHandle nScope, int triggerSource);
66 
78  NSCOPE_API ErrorType nScope_get_trigger_source(ScopeHandle nScope, int* triggerSource);
79 
93 
107 
119  NSCOPE_API ErrorType nScope_set_trigger_level(ScopeHandle nScope, double triggerLevel);
120 
132  NSCOPE_API ErrorType nScope_get_trigger_level(ScopeHandle nScope, double* triggerLevel);
133 
145  NSCOPE_API ErrorType nScope_set_trigger_delay_ms(ScopeHandle nScope, double triggerDelay);
146 
158  NSCOPE_API ErrorType nScope_get_trigger_delay_ms(ScopeHandle nScope, double* triggerDelay);
159 
171  NSCOPE_API ErrorType nScope_set_trigger_delay_us(ScopeHandle nScope, double triggerDelay);
172 
184  NSCOPE_API ErrorType nScope_get_trigger_delay_us(ScopeHandle nScope, double* triggerDelay);
185 
186 #ifdef __cplusplus
187 }
188 #endif
189 
190 #endif
NSCOPE_API ErrorType nScope_set_trigger_on(ScopeHandle nScope, bool triggerOn)
Set the trigger on/off state.
NSCOPE_API ErrorType nScope_get_trigger_delay_ms(ScopeHandle nScope, double *triggerDelay)
Get the trigger delay in milliseconds.
#define NSCOPE_API
Definition: nScopeAPI_defs.h:29
NSCOPE_API ErrorType nScope_get_trigger_edge(ScopeHandle nScope, TriggerEdge *triggerEdge)
Get the trigger edge condition.
NSCOPE_API ErrorType nScope_get_trigger_on(ScopeHandle nScope, bool *triggerOn)
Get the trigger on/off state.
ErrorType
Definition: nScopeAPI_defs.h:42
NSCOPE_API ErrorType nScope_set_trigger_source(ScopeHandle nScope, int triggerSource)
Set the trigger source channel.
TriggerEdge
Definition: nScopeAPI_defs.h:79
NSCOPE_API ErrorType nScope_get_trigger_level(ScopeHandle nScope, double *triggerLevel)
Get the trigger level.
NSCOPE_API ErrorType nScope_set_trigger_delay_ms(ScopeHandle nScope, double triggerDelay)
Set the trigger delay in milliseconds.
struct scopeDev_ * ScopeHandle
Definition: nScopeAPI_defs.h:32
NSCOPE_API ErrorType nScope_set_trigger_level(ScopeHandle nScope, double triggerLevel)
Set the trigger level.
NSCOPE_API ErrorType nScope_set_trigger_edge(ScopeHandle nScope, TriggerEdge triggerEdge)
Set the trigger edge condition.
NSCOPE_API ErrorType nScope_get_trigger_delay_us(ScopeHandle nScope, double *triggerDelay)
Get the trigger delay in microseconds.
NSCOPE_API ErrorType nScope_get_trigger_source(ScopeHandle nScope, int *triggerSource)
Get the trigger source channel.
NSCOPE_API ErrorType nScope_set_trigger_delay_us(ScopeHandle nScope, double triggerDelay)
Set the trigger delay in microseconds.