Library to send and receive data using RF12B transceiver modules Big thanks to the tutorial at https://loee.jottit.com/rfm12b_and_avr_-_quick_start and madcowswe
Dependents: Measure_system Quadcopter_copy
Diff: RF12B.h
- Revision:
- 6:98da0571ec31
- Parent:
- 5:a92c3f6d1711
- Child:
- 7:9f9e2a63a8a2
--- a/RF12B.h Thu Mar 10 18:07:53 2011 +0000 +++ b/RF12B.h Fri Mar 11 15:47:06 2011 +0000 @@ -30,7 +30,7 @@ /* Returns true if data is available in the receive buffer*/ bool available(); -private: +protected: /* Receive FIFO buffer */ queue<unsigned char> fifo; @@ -63,6 +63,9 @@ /* Return the RF Module Status word */ unsigned int status(); + + /* Calculate CRC8 */ + unsigned char crc8(unsigned char crc, unsigned char data); }; #endif /* _RF12B_H */ \ No newline at end of file