Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: EthernetInterfacePlusHostname RdWebServer mbed-rtos mbed
Diff: cmdmsg.h
- Revision:
- 1:362331cec9b7
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/cmdmsg.h Thu Aug 20 07:41:02 2015 +0000
@@ -0,0 +1,44 @@
+
+class ledstrip;
+
+class cmdmsg
+{
+ private:
+// static char responseStr[50];
+// unsigned char* mpMsgBuf;
+// int mMaxMsgLen;
+// int mMsgLen;
+ int getLedNumFromSeq(const int* edgeLeds, int numLedsInSeq, int seqIdx);
+
+ public:
+ cmdmsg()
+ {
+// mMsgLen = 0;
+// mMaxMsgLen = 5200;
+// mpMsgBuf = new unsigned char [mMaxMsgLen]();
+// responseStr[0] = 0;
+ }
+
+// ~cmdmsg()
+// {
+// delete mpMsgBuf;
+// }
+//
+// char* GetBuffer()
+// {
+// return (char*)mpMsgBuf;
+// }
+// int GetMaxMsgLen()
+// {
+// return mMaxMsgLen;
+// }
+//
+// void SetMsgLen(int n)
+// {
+// mMsgLen = n;
+// }
+// char* Interpret(ledstrip* pLedStrip);
+//
+ static char* Interpret(const unsigned char* msgBuf, int msgLen, ledstrip* pLedStrip);
+};
+