Amman Vedi / xbee_lib

Dependents:   IOT_Sockets

Fork of xbee_api by Wiktor Grajkowski

Revision:
10:61e607fa8621
Parent:
9:08ccd085662f
Child:
11:c8737cf52430
--- a/xbeeFrame.h	Sun Jan 26 15:00:52 2014 +0000
+++ b/xbeeFrame.h	Sun Jan 26 17:19:28 2014 +0000
@@ -1,3 +1,11 @@
+#define FRAME_SIZE      127
+#define STARTBYTE       0x7E
+#define MAX_DATA_LEN    70
+
+#define TX_STATUS       0x89
+#define TX_REQUEST_64   0x00
+#define RX_PACKET_64    0x80
+
 class xbeeFrame : public xbee
 {
 private:
@@ -44,6 +52,14 @@
       * @return Returns the length of the packet
       */
     int GetLength(void);
+    /** Get the type of the frame
+      * @return Returns the type of the packet
+      */
+    int GetType(void);
+    /** Get the status of the sent frame
+      * @return Returns the status of sent packet
+      */    
+    int GetStatus(void);
     /** Set the packet destination address 
       * @param dest_address Pointer to a array storing destination address
       */