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.
Dependents: Measure_system Quadcopter_copy
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 :RF12B(_SDI, _SDO, _SCK, _NCS, _NIRQ) { 00011 00012 } 00013 00014 // Stream implementation functions 00015 int RFSerial::_putc(int value) { 00016 RF12B::write((unsigned char) value); 00017 return value; 00018 } 00019 int RFSerial::_getc() { 00020 if(available()) { 00021 return RF12B::read(); 00022 } else { 00023 return EOF; 00024 } 00025 }
Generated on Wed Jul 13 2022 07:45:09 by
1.7.2