Bringing MBed serial ports back like it's 1999... or at least 2019.
Dependents: CC1200-MorseEncoder AccurateWaiter-Test
SerialStream< SerialClass > Class Template Reference
SerialStream Bringing MBed serial ports back like it's 1999... More...
#include <SerialStream.h>
Public Member Functions | |
SerialStream (SerialClass &_serialClass, const char *name=nullptr) | |
Create a SerialStream from a serial port. |
Detailed Description
template<class SerialClass>
class SerialStream< SerialClass >
SerialStream Bringing MBed serial ports back like it's 1999...
or at least 2019.
This class adapts an MBed 6.0 serial port class into a Stream instance. This lets you do two useful things with it:
- Call printf() and scanf() on it
- Pass it to code that expects a Stream to print things on.
Definition at line 17 of file SerialStream.h.
Constructor & Destructor Documentation
SerialStream | ( | SerialClass & | _serialClass, |
const char * | name = nullptr |
||
) |
Create a SerialStream from a serial port.
- Parameters:
-
_serialClass BufferedSerial or UnbufferedSerial instance name The name of the stream associated with this serial port (optional)
Definition at line 28 of file SerialStream.h.
Generated on Thu Jul 14 2022 12:27:09 by 1.7.2