summaryrefslogtreecommitdiff
path: root/digital/io/src/getsamples/getsamples_cb_skel.c
diff options
context:
space:
mode:
authorNélio Laranjeiro2008-03-19 00:27:23 +0100
committerNélio Laranjeiro2008-03-19 00:27:23 +0100
commit1f9e5a0242b608ea941d6f8ea32fdc89c60224c1 (patch)
treee636167be96206e63fefa56aad37772a394bbcc5 /digital/io/src/getsamples/getsamples_cb_skel.c
parent164ac3a34cbac441e82b256c97cb8784ea9d482c (diff)
First dfagen for the getsamples fsm. This is only a first shoot, all the
transitions are not presents.
Diffstat (limited to 'digital/io/src/getsamples/getsamples_cb_skel.c')
-rw-r--r--digital/io/src/getsamples/getsamples_cb_skel.c64
1 files changed, 64 insertions, 0 deletions
diff --git a/digital/io/src/getsamples/getsamples_cb_skel.c b/digital/io/src/getsamples/getsamples_cb_skel.c
new file mode 100644
index 00000000..997042b0
--- /dev/null
+++ b/digital/io/src/getsamples/getsamples_cb_skel.c
@@ -0,0 +1,64 @@
+/*
+ * THIS IS AN AUTOMATICALLY GENERATED FILE, DO NOT EDIT!
+ *
+ * Skeleton for get_samples callbacks implementation.
+ *
+ *
+ */
+#include "getsamples_cb.h"
+
+/*
+ * PREPARE_ARM =arm_prepared=>
+ * => PREPARE_CLASSIFIER
+ * Prepare the arm to load the samples.
+ */
+getsamples_branch_t
+getsamples__PREPARE_ARM__arm_prepared (getsamples_t *user)
+{
+ return getsamples_next (PREPARE_ARM, arm_prepared);
+}
+
+/*
+ * FORWARD_CONTROL =move_finished=>
+ * => PREPARE_ARM
+ * The position is reached the arm shall be seted to the position disired.
+ */
+getsamples_branch_t
+getsamples__FORWARD_CONTROL__move_finished (getsamples_t *user)
+{
+ return getsamples_next (FORWARD_CONTROL, move_finished);
+}
+
+/*
+ * GO_TO_POSITION =move_blocked=>
+ * => GO_TO_POSITION
+ */
+getsamples_branch_t
+getsamples__GO_TO_POSITION__move_blocked (getsamples_t *user)
+{
+ return getsamples_next (GO_TO_POSITION, move_blocked);
+}
+
+/*
+ * GO_TO_POSITION =move_finished=>
+ * => FORWARD_CONTROL
+ * Go to the position desired, it is very near the position of the distributor in case it is a ice distributor or sample distributor.
+ */
+getsamples_branch_t
+getsamples__GO_TO_POSITION__move_finished (getsamples_t *user)
+{
+ return getsamples_next (GO_TO_POSITION, move_finished);
+}
+
+/*
+ * PREPARE_CLASSIFIER =classifer_prepared=>
+ * => LOAD_SAMPLES
+ * Load some samples.
+ */
+getsamples_branch_t
+getsamples__PREPARE_CLASSIFIER__classifer_prepared (getsamples_t *user)
+{
+ return getsamples_next (PREPARE_CLASSIFIER, classifer_prepared);
+}
+
+