asd

Dependencies:   XBeeLib

Dependents:   XBeeZB_Receive_Data

Files at this revision

API Documentation at this revision

Comitter:
manl2003
Date:
Thu Mar 17 12:43:46 2016 +0000
Commit message:
Allo F?lix

Changed in this revision

AbortCommand.cpp Show annotated file Show diff for this revision Revisions of this file
AbortCommand.h Show annotated file Show diff for this revision Revisions of this file
CookerComms.cpp Show annotated file Show diff for this revision Revisions of this file
CookerComms.h Show annotated file Show diff for this revision Revisions of this file
Receiver.cpp Show annotated file Show diff for this revision Revisions of this file
Receiver.h Show annotated file Show diff for this revision Revisions of this file
RecipeCommand.cpp Show annotated file Show diff for this revision Revisions of this file
RecipeCommand.h Show annotated file Show diff for this revision Revisions of this file
Sender.cpp Show annotated file Show diff for this revision Revisions of this file
Sender.h Show annotated file Show diff for this revision Revisions of this file
TempUpdate.cpp Show annotated file Show diff for this revision Revisions of this file
TempUpdate.h Show annotated file Show diff for this revision Revisions of this file
XBeeLib.lib Show annotated file Show diff for this revision Revisions of this file
diff -r 000000000000 -r 0e9dcb5dffbc AbortCommand.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/AbortCommand.cpp	Thu Mar 17 12:43:46 2016 +0000
@@ -0,0 +1,6 @@
+#include "AbortCommand.h"
+
+AbortCommand::AbortCommand() : CookerComms(ABORT_COMMAND)
+{
+    
+}
\ No newline at end of file
diff -r 000000000000 -r 0e9dcb5dffbc AbortCommand.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/AbortCommand.h	Thu Mar 17 12:43:46 2016 +0000
@@ -0,0 +1,9 @@
+#pragma once
+
+#include "CookerComms.h"
+
+class AbortCommand : public CookerComms
+{
+    public:
+        AbortCommand();        
+};
\ No newline at end of file
diff -r 000000000000 -r 0e9dcb5dffbc CookerComms.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/CookerComms.cpp	Thu Mar 17 12:43:46 2016 +0000
@@ -0,0 +1,6 @@
+#include "CookerComms.h"
+
+CookerComms::CookerComms(DataType type) : m_DataType(type) 
+{
+    
+}
\ No newline at end of file
diff -r 000000000000 -r 0e9dcb5dffbc CookerComms.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/CookerComms.h	Thu Mar 17 12:43:46 2016 +0000
@@ -0,0 +1,18 @@
+#include <stdint.h>
+#include "XBeeLib.h"
+#pragma once
+
+typedef enum
+{
+    RECIPE_COMMAND = 0,
+    ABORT_COMMAND = 1,
+    TEMP_UPDATE = 2   
+} DataType;
+
+class CookerComms
+{
+    protected:
+        CookerComms(DataType type);
+        DataType m_DataType;        
+};
+
diff -r 000000000000 -r 0e9dcb5dffbc Receiver.cpp
diff -r 000000000000 -r 0e9dcb5dffbc Receiver.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Receiver.h	Thu Mar 17 12:43:46 2016 +0000
@@ -0,0 +1,8 @@
+#include "CookerComms.h"
+
+class Receiver
+{
+    public:
+        Receiver();
+        static void receiver_cb(const RemoteXBeeZB& remote, bool broadcast, const uint8_t *const data, uint16_t len);           
+};
\ No newline at end of file
diff -r 000000000000 -r 0e9dcb5dffbc RecipeCommand.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/RecipeCommand.cpp	Thu Mar 17 12:43:46 2016 +0000
@@ -0,0 +1,7 @@
+#include "RecipeCommand.h"
+
+RecipeCommand::RecipeCommand(uint16_t temp, uint8_t time, uint8_t programTime) :
+CookerComms(RECIPE_COMMAND), m_Temp(temp), m_Time(time), m_ProgramTime(programTime)
+{
+    
+}
\ No newline at end of file
diff -r 000000000000 -r 0e9dcb5dffbc RecipeCommand.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/RecipeCommand.h	Thu Mar 17 12:43:46 2016 +0000
@@ -0,0 +1,12 @@
+#include "CookerComms.h"
+#pragma once
+
+class RecipeCommand : public CookerComms
+{
+    public:
+        RecipeCommand(uint16_t temp, uint8_t time, uint8_t programTime);
+    protected:
+        uint16_t m_Temp;
+        uint8_t m_Time;
+        uint8_t m_ProgramTime;   
+};
\ No newline at end of file
diff -r 000000000000 -r 0e9dcb5dffbc Sender.cpp
diff -r 000000000000 -r 0e9dcb5dffbc Sender.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Sender.h	Thu Mar 17 12:43:46 2016 +0000
@@ -0,0 +1,11 @@
+#include "CookerComms.h"
+
+class Sender
+{
+    public:
+        Sender();
+        SendFrame();
+    protected:
+        
+    
+};
\ No newline at end of file
diff -r 000000000000 -r 0e9dcb5dffbc TempUpdate.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/TempUpdate.cpp	Thu Mar 17 12:43:46 2016 +0000
@@ -0,0 +1,7 @@
+#include "TempUpdate.h"
+
+TempUpdate::TempUpdate(uint16_t temp) : 
+CookerComms(TEMP_UPDATE), m_Temp(temp)
+{
+
+}
\ No newline at end of file
diff -r 000000000000 -r 0e9dcb5dffbc TempUpdate.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/TempUpdate.h	Thu Mar 17 12:43:46 2016 +0000
@@ -0,0 +1,11 @@
+#include "CookerComms.h"
+#pragma once
+
+class TempUpdate : public CookerComms
+{
+    public:
+        TempUpdate(uint16_t temp);
+        int getTemp();
+    protected:
+        uint16_t m_Temp;
+};
\ No newline at end of file
diff -r 000000000000 -r 0e9dcb5dffbc XBeeLib.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/XBeeLib.lib	Thu Mar 17 12:43:46 2016 +0000
@@ -0,0 +1,1 @@
+http://developer.mbed.org/teams/Digi-International-Inc/code/XBeeLib/#629712865107