Hugo Rodrigues / RFM12B

Dependents:   _EXAMPLE_RFM12B

Fork of RF12B by Sukkin Pang

Revision:
8:7d282360721a
Parent:
7:19d9da22271a
diff -r 19d9da22271a -r 7d282360721a RFM12B.h
--- a/RFM12B.h	Thu May 30 22:11:42 2013 +0000
+++ b/RFM12B.h	Fri May 31 16:34:12 2013 +0000
@@ -1,13 +1,14 @@
 /*
  RFM12B Library. Based on work done by JeeLabs.org ported to mBed by SK Pang.
  http://jeelabs.net/projects/cafe/wiki/RF12
+ Jan 2012 skpang.co.uk
+
+ RFM12B Library (Moteino Comunication Protocol). Based on work done by Felix Rusu ported to mBed by Hugo Rodrigues
+ http://lowpowerlab.com/blog/2012/12/28/rfm12b-arduino-library/
+ May 2013 Hugo Rodrigues
 
  http://opensource.org/licenses/mit-license.php
 
- Jan 2012 skpang.co.uk
-
- Modified by Hugo Rodrigues (May 2013)
-
  Permission is hereby granted, free of charge, to any person obtaining a copy
  of this software and associated documentation files (the "Software"), to deal
  in the Software without restriction, including without limitation the rights
@@ -102,6 +103,11 @@
     void SendACK(const void* sendBuf = "", uint8_t sendLen = 0);
     void Send(uint8_t toNodeId, const void* sendBuf, uint8_t sendLen, bool requestACK = false);
 
+    void Sleep(int n);
+    void Sleep();
+    void Wakeup();
+    bool LowBattery();
+
     volatile uint8_t * GetData();
     uint8_t GetDataLen(void);                   // how many bytes were received
     uint8_t GetSender(void);