LLAP Library for Ciseco wireless products.

Dependents:   Ciseco_LLAP_Test Ciseco_SRF_Shield

Library for Ciseco wireless modules http://shop.ciseco.co.uk/rf-module-range/

Tested with Nucleo F401RE and http://shop.ciseco.co.uk/srf-shield-wireless-transciever-for-all-arduino-type-boards/

Revision:
0:c1b97c30cbc5
Child:
1:8f3ec117823d
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/LLAPSerial.h	Tue Apr 15 22:02:18 2014 +0000
@@ -0,0 +1,34 @@
+// LLAPSerial.h
+
+
+#ifndef _LLAPSERIAL_h
+#define _LLAPSERIAL_h
+
+#include "mbed.h"
+
+class LLAPSerial
+{
+ private:
+    char cMessage[13];      // Raw receive buffer
+    
+    char* inPtr;
+    void processMessage();
+    void SerialEvent();
+    Serial srf;
+    
+ public:
+    LLAPSerial(PinName txPin, PinName rxPin, char *dID = "--" );
+
+    void sendMessage(char* sToSend);
+    void sendMessage(char* sToSend, char* valueToSend);
+    void sendInt(char *sToSend, int value);
+    void sendIntWithDP(char *sToSend, int value, int decimalPlaces);
+    void setDeviceId(char* cId);
+    
+    char deviceId[2];
+    char sMessage[15];      // Received message buffer
+    bool bMsgReceived;
+};
+
+#endif
+