Working lib for qq v2
RFSerial.cpp
- Committer:
- madcowswe
- Date:
- 2011-03-11
- Revision:
- 0:048b717be6c0
File content as of revision 0:048b717be6c0:
/* Constructor */ #include "RFSerial.h" RFSerial::RFSerial(PinName _SDI, PinName _SDO, PinName _SCK, PinName _NCS, PinName _NIRQ) :RF12B(_SDI, _SDO, _SCK, _NCS, _NIRQ) { } // Stream implementation functions int RFSerial::_putc(int value) { RF12B::write((unsigned char) value); return value; } int RFSerial::_getc() { if(available()) { return RF12B::read(); } else { return EOF; } }