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

Committer:
harryeakins
Date:
Fri Mar 11 21:38:26 2011 +0000
Revision:
9:cd34784da6da
Parent:
6:98da0571ec31
Fixed bug in initialization routine where the mode of the RF module was not set.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
harryeakins 6:98da0571ec31 1 #include "mbed.h"
harryeakins 6:98da0571ec31 2 #include "RF12B.h"
harryeakins 6:98da0571ec31 3
harryeakins 6:98da0571ec31 4 class RFSerial : public Stream, public RF12B {
harryeakins 6:98da0571ec31 5 public:
harryeakins 6:98da0571ec31 6 /* Constructor */
harryeakins 6:98da0571ec31 7 RFSerial(PinName _SDI,
harryeakins 6:98da0571ec31 8 PinName _SDO,
harryeakins 6:98da0571ec31 9 PinName _SCK,
harryeakins 6:98da0571ec31 10 PinName _NCS,
harryeakins 6:98da0571ec31 11 PinName _NIRQ);
harryeakins 6:98da0571ec31 12
harryeakins 6:98da0571ec31 13 protected:
harryeakins 6:98da0571ec31 14 // Stream implementation functions
harryeakins 6:98da0571ec31 15 virtual int _putc(int value);
harryeakins 6:98da0571ec31 16 virtual int _getc();
harryeakins 6:98da0571ec31 17 };