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.
Dependents: Seeed_XBee_Shield Seeed_XBee_Shield-2
Fork of xbee_lib by
Diff: xbee.h
- Revision:
- 3:682615a0717e
- Parent:
- 2:cb627ea9b817
- Child:
- 4:ede20c047d8b
--- a/xbee.h Wed Aug 29 13:27:02 2012 +0000
+++ b/xbee.h Wed Aug 29 14:04:27 2012 +0000
@@ -6,12 +6,14 @@
private:
PinName _tx;
PinName _rx;
+ PinName _reset;
public:
/** Configure serial data pin.
* @param tx The serial tx pin the xbee is conected to.
* @param rx The serial rx pin the xbee is conected to.
+ * @param reset The pin connected to the Xbee reset pin.
*/
- xbee(PinName tx, PinName rx);
+ xbee(PinName tx, PinName rx, PinName reset);
~xbee();
/** Puts the Xbee into config mode.
* @return Returns 1 on success.
@@ -26,7 +28,7 @@
* @param key Pointer to the network key to set.
* @return Returns 1 on success.
*/
- int SetKey(char*);
+ int SetKey(int*);
/** Sets the id of the PAN network for the Xbee to use
* @param pan_id The id of the PAN for the Xbee to use.
* @return Returns 1 on success.
@@ -51,5 +53,8 @@
* @param numchar Number of characters to read. If 0, will use the size of data_buf.
*/
void RecieveData(char*, int);
+ /** Resets the Xbee.
+ */
+ void Reset();
};
\ No newline at end of file

Seeed XBee Shield V2.0