Erick / Mbed 2 deprecated ICE-F412

Dependencies:   mbed-rtos mbed

Revision:
0:61364762ee0e
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ICE-Application/src/OutputTask/OutputTask.h	Tue Jan 24 19:05:33 2017 +0000
@@ -0,0 +1,37 @@
+#ifndef OUTPUTTASK_H
+#define OUTPUTTASK_H
+
+#ifdef __cplusplus
+#define EXTERNC extern "C"
+#else
+#define EXTERNC
+#endif
+
+// thread prototype
+EXTERNC void OutputTask(void const *args);
+
+#undef EXTERNC
+
+// FIXME: think about analog! 
+typedef enum {
+    CONTROL_OFF = 0,
+    CONTROL_ON  = 1
+} ControlState;
+
+// public functions 
+void DisplayOutputs(void);
+
+#define RELAY_STATUS_AUTO_ON             129        // automatic control ON
+#define RELAY_STATUS_AUTO_OFF            128        // automatic control OFF
+#define RELAY_STATUS_MANUAL_ON           65         // manual control ON      
+#define RELAY_STATUS_MANUAL_OFF          64         // manual control OFF
+#define RELAY_STATUS_FAILSAFE_ON         33         // general failsafe duty ON
+#define RELAY_STATUS_FAILSAFE_OFF        32         // general failsafe duty OFF
+#define RELAY_STATUS_FORCED_OFF          16         // ??
+#define RELAY_STATUS_FLOW_FAILSAFE_ON    9          // flow failsafe control ON
+#define RELAY_STATUS_FLOW_FAILSAFE_OFF   8          // flaw failsafe control OFF 
+#define RELAY_STATUS_NOT_CONTROLLED      0          // no controls      
+
+#define OUTPUT_STR  "output_"
+#define VOUTPUT_STR "voutput_"
+#endif