ConOpSys V2970  P004.07
ANVILEX control operating system
Scope_Defines.h
Go to the documentation of this file.
1 //------------------------------------------------------------------------------
2 //! @file Scope_Defines.h
3 //! @brief Scope defines header file.
4 //! @attention No special attention requered.
5 //! @copyright (C) 2015-2020 ANVILEX LLC
6 //! $HeadURL: https://192.168.3.4:8443/svn/P004_07/ConOpSys/Defines/Scope_Defines.h $
7 //! $Revision: 2877 $
8 //! $Date: 2021-10-18 23:04:26 +0500 (Mo, 18 Okt 2021) $
9 //! $Author: minch $
10 //------------------------------------------------------------------------------
11 //
12 // Redistribution and use in source and binary forms, with or without
13 // modification, are permitted provided that the following conditions are met:
14 //
15 // 1. Redistributions of source code must retain the above copyright notice,
16 // this list of conditions and the following disclaimer.
17 //
18 // 2. Redistributions in binary form must reproduce the above copyright notice,
19 // this list of conditions and the following disclaimer in the documentation
20 // and/or other materials provided with the distribution.
21 //
22 // 3. Neither the name of ANVILEX nor the names of its contributors may be
23 // used to endorse or promote products derived from this software without
24 // specific prior written permission.
25 //
26 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
27 // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
28 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
29 // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
30 // LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
31 // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
32 // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
33 // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
34 // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
35 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36 // POSSIBILITY OF SUCH DAMAGE.
37 //------------------------------------------------------------------------------
38 
39 //------------------------------------------------------------------------------
40 // Protecting header files from mutual, recursive inclusion.
41 //------------------------------------------------------------------------------
42 
43 #pragma once
44 
45 //------------------------------------------------------------------------------
46 // Include standard libraries header files
47 //------------------------------------------------------------------------------
48 
49 //------------------------------------------------------------------------------
50 // Include thrid party header files
51 //------------------------------------------------------------------------------
52 
53 //------------------------------------------------------------------------------
54 // Include ConOpSys header files
55 //------------------------------------------------------------------------------
56 
57 #include "Defines.h"
58 
59 //------------------------------------------------------------------------------
60 // Include ConOpSys application header files
61 //------------------------------------------------------------------------------
62 
63 //------------------------------------------------------------------------------
64 // Macros
65 //------------------------------------------------------------------------------
66 
67 //------------------------------------------------------------------------------
68 // Trigger states
69 //------------------------------------------------------------------------------
70 
71 #define SCOPE_TRIGGER_STATE_UNDEFINED ( (U32)0 ) // ANVILEX: Redefine
72 #define SCOPE_TRIGGER_STATE_IDLE ( (U32)1 )
73 #define SCOPE_TRIGGER_STATE_WAIT ( (U32)2 )
74 #define SCOPE_TRIGGER_STATE_TRIGGERED ( (U32)3 )
75 #define SCOPE_TRIGGER_STATE_READY ( (U32)4 )
76 #define SCOPE_TRIGGER_STATE_FORCE ( (U32)5 )
77 #define SCOPE_TRIGGER_STATE_ARM ( (U32)6 )
78 
79 #define SCOPE_TRIGGER_STATE_MINIMUM SCOPE_TRIGGER_STATE_IDLE
80 #define SCOPE_TRIGGER_STATE_MAXIMUM SCOPE_TRIGGER_STATE_ARM
81 #define SCOPE_TRIGGER_STATE_DEFAULT SCOPE_TRIGGER_STATE_IDLE
82 
83 //! @brief Signal recorder trigger state definition
84 typedef enum
85 {
86 
87  //! @brief Trigger state undefined
89 
90  //! @brief Trigger in idle state
92 
93  //! @brief Trigger in wait state
95 
96  //! @brief Trigger in triggered state
98 
99  //! @brief Trigger in ready state
101 
102  //! @brief Trigger in force state
104 
105  //! @brief Trigger in arm state
107 
109 
110 //------------------------------------------------------------------------------
111 // Trigger modes
112 //------------------------------------------------------------------------------
113 
114 #define SCOPE_TRIGGER_MODE_UNDEFINED ( (U32)0 ) // ANVILEX: Redefine
115 #define SCOPE_TRIGGER_MODE_OFF ( (U32)1 )
116 #define SCOPE_TRIGGER_MODE_MATCH ( (U32)2 )
117 #define SCOPE_TRIGGER_MODE_RISING_EDGE ( (U32)3 )
118 #define SCOPE_TRIGGER_MODE_FALLING_EDGE ( (U32)4 )
119 #define SCOPE_TRIGGER_MODE_EDGE ( (U32)5 )
120 #define SCOPE_TRIGGER_MODE_CHANGE ( (U32)6 )
121 #define SCOPE_TRIGGER_MODE_BIT_PATTERN_SET ( (U32)7 )
122 #define SCOPE_TRIGGER_MODE_BIT_PATTERN_CLEAR ( (U32)8 )
123 
124 #define SCOPE_TRIGGER_MODE_MINIMUM SCOPE_TRIGGER_MODE_OFF
125 #define SCOPE_TRIGGER_MODE_MAXIMUM SCOPE_TRIGGER_MODE_BIT_PATTERN_CLEAR
126 #define SCOPE_TRIGGER_MODE_DEFAULT SCOPE_TRIGGER_MODE_OFF
127 
128 //! @brief Signal recorder trigger mode definition
129 typedef enum
130 {
131 
132  //! @brief Trigger mode undefined
134 
135  //! @brief Trigger disabled (manual)
137 
138  //! @brief Trigger on value match
140 
141  //! @brief Trigger on the rising edge of the parameter
143 
144  //! @brief Trigger on the falling edge of the parameter
146 
147  //! @brief Trigger on the rising or faling edge of the parameter
149 
150  //! @brief Trigger on the parameter change
152 
153  //! @brief Trigger on bit pattern set
155 
156  //! @brief Trigger on bit pattern clear
158 
160 
161 //------------------------------------------------------------------------------
162 // End of file
163 //------------------------------------------------------------------------------
ConOpSys data type definitions header file.
#define SCOPE_TRIGGER_MODE_BIT_PATTERN_SET
Definition: Scope_Defines.h:121
#define SCOPE_TRIGGER_STATE_FORCE
Definition: Scope_Defines.h:76
#define SCOPE_TRIGGER_MODE_RISING_EDGE
Definition: Scope_Defines.h:117
TSignal_Recorder_Trigger_Mode
Signal recorder trigger mode definition.
Definition: Scope_Defines.h:130
@ trigger_mode_On_Rising_Edge
Trigger on the rising edge of the parameter.
Definition: Scope_Defines.h:142
@ trigger_mode_On_Falling_Edge
Trigger on the falling edge of the parameter.
Definition: Scope_Defines.h:145
@ trigger_mode_Off
Trigger disabled (manual)
Definition: Scope_Defines.h:136
@ trigger_mode_Undefined
Trigger mode undefined.
Definition: Scope_Defines.h:133
@ trigger_mode_On_Bit_Pattern_Clear
Trigger on bit pattern clear.
Definition: Scope_Defines.h:157
@ trigger_mode_On_Change
Trigger on the parameter change.
Definition: Scope_Defines.h:151
@ trigger_mode_On_Edge
Trigger on the rising or faling edge of the parameter.
Definition: Scope_Defines.h:148
@ trigger_mode_On_Bit_Pattern_Set
Trigger on bit pattern set.
Definition: Scope_Defines.h:154
@ trigger_mode_On_Match
Trigger on value match.
Definition: Scope_Defines.h:139
#define SCOPE_TRIGGER_MODE_UNDEFINED
Definition: Scope_Defines.h:114
#define SCOPE_TRIGGER_MODE_CHANGE
Definition: Scope_Defines.h:120
#define SCOPE_TRIGGER_STATE_IDLE
Definition: Scope_Defines.h:72
TSignal_Recorder_Trigger_State
Signal recorder trigger state definition.
Definition: Scope_Defines.h:85
@ trigger_state_Idle
Trigger in idle state.
Definition: Scope_Defines.h:91
@ trigger_state_Wait
Trigger in wait state.
Definition: Scope_Defines.h:94
@ trigger_state_Arm
Trigger in arm state.
Definition: Scope_Defines.h:106
@ trigger_state_Undefined
Trigger state undefined.
Definition: Scope_Defines.h:88
@ trigger_state_Ready
Trigger in ready state.
Definition: Scope_Defines.h:100
@ trigger_state_Triggered
Trigger in triggered state.
Definition: Scope_Defines.h:97
@ trigger_state_Force
Trigger in force state.
Definition: Scope_Defines.h:103
#define SCOPE_TRIGGER_MODE_OFF
Definition: Scope_Defines.h:115
#define SCOPE_TRIGGER_MODE_FALLING_EDGE
Definition: Scope_Defines.h:118
#define SCOPE_TRIGGER_MODE_EDGE
Definition: Scope_Defines.h:119
#define SCOPE_TRIGGER_STATE_UNDEFINED
Definition: Scope_Defines.h:71
#define SCOPE_TRIGGER_STATE_TRIGGERED
Definition: Scope_Defines.h:74
#define SCOPE_TRIGGER_STATE_ARM
Definition: Scope_Defines.h:77
#define SCOPE_TRIGGER_STATE_WAIT
Definition: Scope_Defines.h:73
#define SCOPE_TRIGGER_STATE_READY
Definition: Scope_Defines.h:75
#define SCOPE_TRIGGER_MODE_MATCH
Definition: Scope_Defines.h:116
#define SCOPE_TRIGGER_MODE_BIT_PATTERN_CLEAR
Definition: Scope_Defines.h:122