summaryrefslogtreecommitdiff
path: root/cesar/lib/visual_state_api/src/SMPStAll.c
diff options
context:
space:
mode:
Diffstat (limited to 'cesar/lib/visual_state_api/src/SMPStAll.c')
-rw-r--r--cesar/lib/visual_state_api/src/SMPStAll.c36
1 files changed, 36 insertions, 0 deletions
diff --git a/cesar/lib/visual_state_api/src/SMPStAll.c b/cesar/lib/visual_state_api/src/SMPStAll.c
new file mode 100644
index 0000000000..318fd74dc5
--- /dev/null
+++ b/cesar/lib/visual_state_api/src/SMPStAll.c
@@ -0,0 +1,36 @@
+/*
+ * Type: Source Code File
+ *
+ * Id: SMPStAll.c
+ *
+ * Function: Contains the SMP_StateAll SEM Library Expert version 4
+ * function.
+ *
+ * Portability: ANSI-C Compiler.
+ *
+ * Copyright (c) 1999-2006 IAR Systems. All rights reserved.
+ */
+
+/*
+ * Version ! Date ! Status ! Changes
+ *----------------------------------------------------------------------------
+ * 4.0.0.0 ! 011198 ! Closed ! -
+ * 4.0.4 ! 010799 ! Closed ! Minor update, there might be no changes to this particular file.
+ */
+
+#include "SEMLibE.h"
+
+
+unsigned char SMP_StateAll (SEM_CONTEXT VS_TQ_CONTEXT *Context,
+ SEM_STATE_TYPE *StateVector, SEM_STATE_MACHINE_TYPE MaxSize)
+{
+ SEM_STATE_MACHINE_TYPE i;
+
+ if (!Context)
+ return (SES_NOT_LOADED);
+ if (Context->nNofStateMachines > MaxSize)
+ return (SES_BUFFER_OVERFLOW);
+ for (i = 0; i < Context->nNofStateMachines; i++)
+ StateVector[i] = Context->pCSV[i];
+ return (SES_FOUND);
+}