RFM12B radio module driver library

Dependents:   HaTemp

Fork of RF12B by Andrew Lindsay

Files at this revision

API Documentation at this revision

Comitter:
jari
Date:
Fri Jun 03 18:04:04 2016 +0000
Parent:
1:984e7620084e
Commit message:
rename methods

Changed in this revision

RF12B.cpp Show annotated file Show diff for this revision Revisions of this file
RF12B.h Show annotated file Show diff for this revision Revisions of this file
--- a/RF12B.cpp	Thu Aug 13 13:50:12 2015 +0000
+++ b/RF12B.cpp	Fri Jun 03 18:04:04 2016 +0000
@@ -188,14 +188,13 @@
 }
 
 
-void RF12B::rf12_sendStart (uint8_t hdr, const void* ptr, uint8_t len) {
+void RF12B::sendStart (uint8_t hdr, const void* ptr, uint8_t len) {
     rf12_len = len;
     memcpy((void*) rf12_data, ptr, len);
-    rf12_sendStart(hdr);
+    sendStart(hdr);
 }
 
-//void RF12B::rf12_sendStart2 (uint8_t hdr) {
-void RF12B::rf12_sendStart (uint8_t hdr) {
+void RF12B::sendStart (uint8_t hdr) {
     rf12_hdr = hdr & RF12_HDR_DST ? hdr :
                (hdr & ~RF12_HDR_MASK) + (nodeid & NODE_ID);
 
--- a/RF12B.h	Thu Aug 13 13:50:12 2015 +0000
+++ b/RF12B.h	Fri Jun 03 18:04:04 2016 +0000
@@ -89,8 +89,8 @@
     /* Returns the packet length if data is available in the receive buffer, 0 otherwise*/
     bool havePacket( void );
     int available();
-    void rf12_sendStart (uint8_t hdr, const void* ptr, uint8_t len);
-    void rf12_sendStart (uint8_t hdr);
+    void sendStart (uint8_t hdr, const void* ptr, uint8_t len);
+    void sendStart (uint8_t hdr);
     uint8_t  rf12_recvDone (void);
     void rf12_recvStart (void);
     uint16_t check_crc(void);