aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Embedded_SW/Embedded/Modules/Control/control.h
diff options
context:
space:
mode:
authorShlomo Hecht <shlomo@twine-s.com>2018-03-06 12:09:02 +0200
committerShlomo Hecht <shlomo@twine-s.com>2018-03-06 12:09:02 +0200
commitfb2d080fbbcea3a91e598b4ea8837a230de6a319 (patch)
tree6b3ce09a252d2ebab8189a92b3326ffbba6dbe4b /Software/Embedded_SW/Embedded/Modules/Control/control.h
parentd734bb5cf08ba2433b74fc86a8858d2437d1a237 (diff)
downloadTango-fb2d080fbbcea3a91e598b4ea8837a230de6a319.tar.gz
Tango-fb2d080fbbcea3a91e598b4ea8837a230de6a319.zip
A new forlder for embedded software in our common structure
Diffstat (limited to 'Software/Embedded_SW/Embedded/Modules/Control/control.h')
-rw-r--r--Software/Embedded_SW/Embedded/Modules/Control/control.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/Software/Embedded_SW/Embedded/Modules/Control/control.h b/Software/Embedded_SW/Embedded/Modules/Control/control.h
new file mode 100644
index 000000000..ab259993a
--- /dev/null
+++ b/Software/Embedded_SW/Embedded/Modules/Control/control.h
@@ -0,0 +1,30 @@
+/************************************************************************************************************************
+ * control.c
+ **************************************************************************************************************************/
+
+////////////////////////////////State machine operation////////////////////////////////////
+//the state machine operation is used to operate in runtime correct profile flow execution
+//by recieved esign flow of the user from the UI
+///////////////////////////////////////////////////////////////////////////////////////////
+#include "include.h"
+
+typedef uint32_t (* DeviceDataFunction)(uint32_t deviceID, uint32_t *Value);
+typedef uint32_t (* ControlCBFunction)(uint32_t deviceID, uint32_t ReadValue);
+typedef uint32_t (* DataReadCBFunction)(uint32_t deviceID, uint32_t Parameter);
+typedef enum {
+ eNoControl = 0,
+ eOneMillisecond = 1,
+ eTenMilliSecond = 10,
+ eHunderdMillisecond = 100,
+ eOneSecond = 1000
+}CTRL_TIMING_ENUM;
+
+
+void ControlInit(void);
+void ControlStop(void);
+void ControlStart(void);
+int AddControlCallback(uint32_t deviceID, ControlCBFunction Callback, CTRL_TIMING_ENUM CtrlFrequency );
+int RemoveControlCallback(uint32_t deviceID, ControlCBFunction Callback );
+int RegisterDevice(uint32_t deviceID, DataReadCBFunction Callback, uint32_t Parameter);
+int UnRegisterDevice(uint32_t deviceID, DataReadCBFunction Callback );
+