summaryrefslogtreecommitdiffhomepage
path: root/digital/io/src/getsamples_robo.h
diff options
context:
space:
mode:
authorNélio Laranjeiro2008-03-30 20:45:33 +0200
committerNélio Laranjeiro2008-03-30 20:45:33 +0200
commit0968f4428bd842b06b4218741b7a70f83f9517a4 (patch)
tree0d102370b9b193263839f0dceefd170b9e65aebf /digital/io/src/getsamples_robo.h
parent6b1099c487e9d7be85d4fbd513f9e5236d0d10d4 (diff)
Moved teh getsamples fsm.
Diffstat (limited to 'digital/io/src/getsamples_robo.h')
-rw-r--r--digital/io/src/getsamples_robo.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/digital/io/src/getsamples_robo.h b/digital/io/src/getsamples_robo.h
new file mode 100644
index 00000000..11309a10
--- /dev/null
+++ b/digital/io/src/getsamples_robo.h
@@ -0,0 +1,40 @@
+#ifndef getsamples_robo_h
+#define getsamples_robo_h
+/* getsamples_robo.h */
+/* {{{
+ *
+ * Copyright (C) 2008 Nélio Laranjeiro
+ *
+ * APBTeam:
+ * Web: http://apbteam.org/
+ * Email: team AT apbteam DOT org
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ *
+ * }}} */
+
+struct getsamples_t
+{
+ /* The FSM. */
+ getsamples_state_t fsm;
+ /* Distributor x position to get samples. */
+ uint32_t distributor_x;
+ /* Distributor y position to get samples. */
+ uint32_t distributor_y;
+ /* Samples to take. */
+ uint8_t samples;
+};
+
+#endif /* getsamples_robo_h */