Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
RFSerial.cpp
00001 00002 /* Constructor */ 00003 #include "RFSerial.h" 00004 00005 RFSerial::RFSerial(PinName _SDI, 00006 PinName _SDO, 00007 PinName _SCK, 00008 PinName _NCS, 00009 PinName _NIRQ, 00010 PinName _TRIG) 00011 :RF12B(_SDI, _SDO, _SCK, _NCS, _NIRQ, _TRIG) { 00012 00013 } 00014 00015 // Stream implementation functions 00016 int RFSerial::_putc(int value) { 00017 RF12B::write((unsigned char) value); 00018 return value; 00019 } 00020 int RFSerial::_getc() { 00021 if(available()) { 00022 return RF12B::read(); 00023 } else { 00024 return EOF; 00025 } 00026 }
Generated on Thu Jul 14 2022 07:33:28 by
1.7.2