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: mbed CANBuffer Watchdog MODSERIAL mbed-rtos xbeeRelay IAP
Fork of SystemManagement by
Diff: Libs/Xbee/Xbee.h
- Revision:
- 31:7eaa5e881b56
- Parent:
- 30:91af74a299e1
- Child:
- 32:e70407021ad2
--- a/Libs/Xbee/Xbee.h Thu Nov 13 10:53:10 2014 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,25 +0,0 @@
-#ifndef __XBEE_FILE_H
-#define __XBEE_FILE_H
-
-#include "mbed.h"
-#include "MODSERIAL.h"
-
-class Xbee {
-public:
- Xbee(PinName tx, PinName rx, int baudrate, int bufferSize, char delim='\n');
- bool send(CANMessage& msg);
- bool receive(CANMessage& msg);
- unsigned int messagesProcessedOut() { return numMessagesOut; }
- unsigned int messagesProcessedIn() { return numMessagesIn; }
-private:
- MODSERIAL xbee;
- volatile unsigned int numMessagesIn;
- volatile unsigned int numMessagesOut;
-
- // Interrupt function called on receipt of message delimitter char
- void newMsg(MODSERIAL_IRQ_INFO *q);
- char delim; // Delimitter char that ends each message
- volatile unsigned int charCounter; // Number of messages received so far in the serial buffer
-};
-
-#endif
\ No newline at end of file
