Home automation using Xbee radios

Dependencies:   EthernetNetIf HTTPServer RPCInterface mbed C12832_lcd

Link to Notebook Page

Revision:
8:e32fcca16102
Child:
9:4b1e3531dd00
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/XbeeCommLib.h	Mon Dec 02 22:25:29 2013 +0000
@@ -0,0 +1,44 @@
+#include "mbed.h"
+#include "C12832_lcd.h"
+
+
+extern unsigned char data[500];
+extern int dataCounter;
+extern bool clear;
+
+//extern DigitalOut led1;
+//extern DigitalOut led2;
+//extern DigitalOut led3;
+//extern DigitalOut led4;
+
+extern Serial xbeeSerial;
+extern C12832_LCD lcd;
+//extern LM75B sensor;
+//extern PwmOut green;
+//extern PwmOut blue;
+//extern PwmOut red;
+
+//extern unsigned int  router0_addrHigh;
+//extern unsigned int  router0_addrLow;
+//
+//extern unsigned int  router1_addrHigh;
+//extern unsigned int  router1_addrLow;
+
+extern struct xbee *root;
+
+
+float getAnalogVoltage(int analogInputIndex, int totalPacketBytes, int digitalSampleBytes);
+
+void digitalWriteXbee(unsigned int addrHigh, unsigned int addrLow, int outputIndex, bool value);
+
+void monitorXbee();
+
+struct xbee* addnode(struct xbee*,unsigned int,unsigned int );
+int getDigitalValue(int , short );
+void digitalInputHandle(struct xbee* ,unsigned int , unsigned int , unsigned short );
+void analogInputHandle(struct xbee* ,unsigned int , unsigned int , int , float );
+
+//void up( void );
+//void down( void );
+//void left( void );
+//void right( void );