Home automation using Xbee radios
Dependencies: EthernetNetIf HTTPServer RPCInterface mbed C12832_lcd
Diff: XbeeCommLib.h
- Revision:
- 10:de0be690b3c0
- Parent:
- 9:4b1e3531dd00
- Child:
- 11:03ff417d0d5d
diff -r 4b1e3531dd00 -r de0be690b3c0 XbeeCommLib.h --- a/XbeeCommLib.h Wed Dec 04 02:35:47 2013 +0000 +++ b/XbeeCommLib.h Fri Dec 06 07:05:49 2013 +0000 @@ -6,10 +6,10 @@ extern int dataCounter; extern bool clear; -//extern DigitalOut led1; -//extern DigitalOut led2; -//extern DigitalOut led3; -//extern DigitalOut led4; +extern DigitalOut led1; +extern DigitalOut led2; +extern DigitalOut led3; +extern DigitalOut led4; extern Serial xbeeSerial; //extern C12832_LCD lcd; @@ -18,25 +18,15 @@ //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 digitalInputHandle(unsigned int , unsigned int , unsigned short ); +void analogInputHandle(unsigned int , unsigned int , int , float ); void compareDigitalReadWrite(); void monitorTimers(); @@ -44,4 +34,4 @@ //void up( void ); //void down( void ); //void left( void ); -//void right( void ); +//void right( void ); \ No newline at end of file