forked from nasa/fprime
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFpySequencerEvents.fppi
More file actions
286 lines (246 loc) · 7.13 KB
/
FpySequencerEvents.fppi
File metadata and controls
286 lines (246 loc) · 7.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
event InvalidCommand($state: I32) \
severity warning high \
format "Cannot execute command in state {}"
event InvalidSeqRunCall($state: I32) \
severity warning high \
format "Cannot run sequence from a port in state {}"
event InvalidSeqCancelCall($state: I32) \
severity warning high \
format "Cannot cancel sequence from a port in state {}"
event FileOpenError(
filePath: string
errorCode: I32
) \
severity warning high \
format "File open error encountered while opening {}: {}"
event FileWriteError(
writeSize: FwSizeType
filePath: string
errorCode: I32
) \
severity warning high \
format "File write error encountered while writing {} bytes to {}: {}"
event FileReadError(
readStage: FileReadStage
filePath: string
errorCode: I32
) \
severity warning high \
format "File read error encountered while reading {} of file {}: {}"
event EndOfFileError(
readStage: FileReadStage
filePath: string
) \
severity warning high \
format "End of file encountered unexpectedly while reading {} of file {}"
event FileReadDeserializeError(
readStage: FileReadStage
filePath: string
errorCode: I32
buffLeft: U64
buffLength: U64
) \
severity warning high \
format "Deserialize error encountered while reading {} of file {}: {} ({} bytes left out of {})"
event WrongSchemaVersion(
expected: U8
actual: U8
) \
severity warning high \
format "Expected schema version {}, found {}"
event WrongCRC(
expected: U32
actual: U32
) \
severity warning high \
format "Expected CRC {}, actual was {}"
event ExtraBytesInSequence(
remaining: FwSizeType
) \
severity warning high \
format "File had {} extra bytes at the end"
event InsufficientBufferSpace(
bufferSize: U64
filePath: string
) \
severity warning high \
format "Buffer capacity of {} was not big enough for sequence {}"
# runtime
event CommandFailed(
opCode: FwOpcodeType
stmtIdx: U32
filePath: string
response: Fw.CmdResponse
) \
severity warning high \
format "Failed to execute command opcode {} index {} in sequence file {}: response was {}"
event SequenceDone(
filePath: string
) \
severity activity high \
format "Completed sequence file {}"
event SequenceCancelled(
filePath: string
) \
severity activity high \
format "Cancelled sequence file {}"
event SequenceExitedWithError(
filePath: string
errorCode: U8
) \
severity warning high \
format "Sequence {} exited with error code {}"
event UnknownSequencerDirective(
$opcode: U8
stmtIdx: U32
filePath: string
) \
severity warning high \
format "Unknown sequencer directive id {} at index {} in file {}"
event CmdResponseWhileNotRunningSequence(
$state: I32
$opcode: FwOpcodeType
response: Fw.CmdResponse
) \
severity warning low \
format "Received a command response while not running a sequence (was in state {} opcode was {} response code {})"
event CmdResponseFromOldSequence(
$opcode: FwOpcodeType
response: Fw.CmdResponse
oldSequenceIdx: U16
currentSequenceIdx: U16
) \
severity warning low \
format "Received a response from cmd opcode {} (response {}), but it was from a previous sequence, not the current one (old idx: {}, current idx: {})"
event CmdResponseWhileNotAwaiting(
$opcode: FwOpcodeType
response: Fw.CmdResponse
) \
severity warning high \
format "Received a response from cmd opcode {} (response {}) from this sequence, but was not awaiting a response"
event CmdResponseWhileAwaitingDirective(
$opcode: FwOpcodeType
response: Fw.CmdResponse
expectedDirectiveOpcode: U8
) \
severity warning high \
format "Received a response from cmd opcode {} (response {}) from this sequence, but was awaiting directive opcode {}"
event WrongCmdResponseOpcode(
$opcode: FwOpcodeType
response: Fw.CmdResponse
expectedOpcode: FwOpcodeType
) \
severity warning high \
format "Received a response from cmd opcode {} (response {}) from this sequence, but was expecting a response from command opcode {}"
event WrongCmdResponseIndex(
$opcode: FwOpcodeType
response: Fw.CmdResponse
actualCmdIdx: U16
expectedCmdIdx: U16
) \
severity warning high \
format "Received a response from the correct cmd (opcode {} response {}), but it was for a different instance of that opcode in the same sequence (actual idx {} expected {})"
# TODO make sure to call this with appropriate stmt idx when directive is dynamically constructed
event DirectiveDeserializeError(
$opcode: U8
stmtIdx: U32
errorCode: I32
buffLeft: U64
buffLength: U64
) \
severity warning high \
format "Deserialize error encountered while reading directive opcode {} at index {}: {} ({} bytes left out of {})"
event MismatchedTimeBase(
internalTimeBase: I32
otherTimeBase: I32
) \
severity warning high \
format "getTime() time base was {}, but tried to operate on it with time base {}"
event MismatchedTimeContext(
internalTimeContext: I32
otherTimeContext: I32
) \
severity warning high \
format "getTime() time context was {}, but tried to operate on it with time context {}"
event CommandTimedOut(
opCode: FwOpcodeType
stmtIdx: U32
filePath: string
) \
severity warning high \
format "A command opcode {} at index {} timed out in sequence {}, causing the sequence to fail"
event DirectiveTimedOut(
opCode: U8
stmtIdx: U32
filePath: string
) \
severity warning high \
format "A directive opcode {} at index {} timed out in sequence {}, causing the sequence to fail"
event TooManySequenceArgs(
count: U8
max: U8
) \
severity warning high \
format "A sequence specified it had {} args but the max was {}"
event TooManySequenceDirectives(
count: U16
max: U16
) \
severity warning high \
format "A sequence specified it had {} directives but the max was {}"
event SequencePaused(
stmtIdx: U32
) \
severity activity high \
format "Sequence paused before dispatching directive index {}"
event BreakpointSet(
breakpointIdx: U32
breakOnce: bool
) \
severity activity high \
format "Breakpoint set before directive index {}. Will break once: {}"
event BreakpointCleared() \
severity activity high \
format "Breakpoint cleared"
event LogFatal(
filePath: string
message: string
) \
severity fatal \
format "Sequence {}: {}"
event LogWarningHi(
filePath: string
message: string
) \
severity warning high \
format "Sequence {}: {}"
event LogWarningLo(
filePath: string
message: string
) \
severity warning low \
format "Sequence {}: {}"
event LogCommand(
filePath: string
message: string
) \
severity command \
format "Sequence {}: {}"
event LogActivityHi(
filePath: string
message: string
) \
severity activity high \
format "Sequence {}: {}"
event LogActivityLo(
filePath: string
message: string
) \
severity activity low \
format "Sequence {}: {}"
event LogDiagnostic(
filePath: string
message: string
) \
severity diagnostic \
format "Sequence {}: {}"