RFM12B radio module driver library
Fork of RF12B by
Revision 2:a5808054ac5f, committed 2016-06-03
- 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 |
diff -r 984e7620084e -r a5808054ac5f RF12B.cpp --- 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);
diff -r 984e7620084e -r a5808054ac5f RF12B.h --- 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);