aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Embedded_SW/Embedded/Modules/Control/control.h
diff options
context:
space:
mode:
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 );
+