summaryrefslogtreecommitdiff
path: root/2.3-1/src/c/scilab-arduino/includes
diff options
context:
space:
mode:
authorsiddhu89902015-09-07 23:06:39 +0530
committersiddhu89902015-09-07 23:06:39 +0530
commit44933d55cfbfbbdafbd17cae6212579cb2621bcc (patch)
tree6512c89ad9ae168ae1de7cb6bd1eed2909ed5735 /2.3-1/src/c/scilab-arduino/includes
parentd9d5e15f5b836cecaebe68f823318ed6637554b4 (diff)
parent4aabac04457969b9288f1d49292ab758ece2448f (diff)
downloadScilab2C-44933d55cfbfbbdafbd17cae6212579cb2621bcc.tar.gz
Scilab2C-44933d55cfbfbbdafbd17cae6212579cb2621bcc.tar.bz2
Scilab2C-44933d55cfbfbbdafbd17cae6212579cb2621bcc.zip
Scilab to arduino conversion working with some tweaks
Diffstat (limited to '2.3-1/src/c/scilab-arduino/includes')
-rw-r--r--2.3-1/src/c/scilab-arduino/includes/cmd_analog_in.h29
-rw-r--r--2.3-1/src/c/scilab-arduino/includes/cmd_analog_out.h29
-rw-r--r--2.3-1/src/c/scilab-arduino/includes/cmd_digital_in.h29
-rw-r--r--2.3-1/src/c/scilab-arduino/includes/cmd_digital_out.h2
-rw-r--r--2.3-1/src/c/scilab-arduino/includes/sleep.h29
5 files changed, 117 insertions, 1 deletions
diff --git a/2.3-1/src/c/scilab-arduino/includes/cmd_analog_in.h b/2.3-1/src/c/scilab-arduino/includes/cmd_analog_in.h
new file mode 100644
index 00000000..5361fe80
--- /dev/null
+++ b/2.3-1/src/c/scilab-arduino/includes/cmd_analog_in.h
@@ -0,0 +1,29 @@
+/*
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2008 - INRIA - Arnaud TORSET
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+ *
+ */
+
+
+#ifndef __CMD_ANALOG_IN_H__
+#define __CMD_ANALOG_IN_H__
+
+#include "types.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+uint16 u8cmd_analog_ins(uint8 board_no, uint8 pin);
+
+#ifdef __cplusplus
+} /* extern "C" */
+#endif
+
+#endif /* __CMD_DIGITAL_IN_H__ */
diff --git a/2.3-1/src/c/scilab-arduino/includes/cmd_analog_out.h b/2.3-1/src/c/scilab-arduino/includes/cmd_analog_out.h
new file mode 100644
index 00000000..d7fca535
--- /dev/null
+++ b/2.3-1/src/c/scilab-arduino/includes/cmd_analog_out.h
@@ -0,0 +1,29 @@
+/*
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2008 - INRIA - Arnaud TORSET
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+ *
+ */
+
+
+#ifndef __CMD_ANALOG_OUT_H__
+#define __CMD_ANALOG_OUT_H__
+
+#include "types.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+uint8 u8cmd_analog_outs(uint8 board_no, uint8 pin, uint8 value);
+
+#ifdef __cplusplus
+} /* extern "C" */
+#endif
+
+#endif /* __CMD_ANALOG_OUT_H__ */
diff --git a/2.3-1/src/c/scilab-arduino/includes/cmd_digital_in.h b/2.3-1/src/c/scilab-arduino/includes/cmd_digital_in.h
new file mode 100644
index 00000000..96fd24bb
--- /dev/null
+++ b/2.3-1/src/c/scilab-arduino/includes/cmd_digital_in.h
@@ -0,0 +1,29 @@
+/*
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2008 - INRIA - Arnaud TORSET
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+ *
+ */
+
+
+#ifndef __CMD_DIGITAL_IN_H__
+#define __CMD_DIGITAL_IN_H__
+
+#include "types.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+uint8 u8cmd_digital_ins(uint8 board_no, uint8 pin);
+
+#ifdef __cplusplus
+} /* extern "C" */
+#endif
+
+#endif /* __CMD_DIGITAL_IN_H__ */
diff --git a/2.3-1/src/c/scilab-arduino/includes/cmd_digital_out.h b/2.3-1/src/c/scilab-arduino/includes/cmd_digital_out.h
index 2d8b0b4a..ee459d18 100644
--- a/2.3-1/src/c/scilab-arduino/includes/cmd_digital_out.h
+++ b/2.3-1/src/c/scilab-arduino/includes/cmd_digital_out.h
@@ -20,7 +20,7 @@
extern "C" {
#endif
-void u8cmd_digital_ins(uint8 board_no, uint8 pin, uint8 value);
+uint8 u8cmd_digital_outs(uint8 board_no, uint8 pin, uint8 value);
#ifdef __cplusplus
} /* extern "C" */
diff --git a/2.3-1/src/c/scilab-arduino/includes/sleep.h b/2.3-1/src/c/scilab-arduino/includes/sleep.h
new file mode 100644
index 00000000..2e2940a3
--- /dev/null
+++ b/2.3-1/src/c/scilab-arduino/includes/sleep.h
@@ -0,0 +1,29 @@
+/*
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2008 - INRIA - Arnaud TORSET
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+ *
+ */
+
+
+#ifndef __SLEEP_H__
+#define __SLEEP_H__
+
+#include "types.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+uint8 u16sleeps(uint16 delay_ms);
+
+#ifdef __cplusplus
+} /* extern "C" */
+#endif
+
+#endif /* __CMD_DIGITAL_OUT_H__ */