Oliver Mattos
/
Quadcopter_tranciever
Transmitter code for quadcopter
Diff: RF12B/RFSerial.h
- Revision:
- 0:e6426242cacc
diff -r 000000000000 -r e6426242cacc RF12B/RFSerial.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/RF12B/RFSerial.h Wed Dec 07 12:37:01 2011 +0000 @@ -0,0 +1,17 @@ +#include "mbed.h" +#include "RF12B.h" + +class RFSerial : public Stream, public RF12B { +public: + /* Constructor */ + RFSerial(PinName _SDI, + PinName _SDO, + PinName _SCK, + PinName _NCS, + PinName _NIRQ); + +protected: + // Stream implementation functions + virtual int _putc(int value); + virtual int _getc(); +}; \ No newline at end of file