Abstract superclass for accessing RS232 port on the host. More...
#include <Map27/Port.h>
Public Member Functions | |
Map27Port () | |
Constructor. | |
virtual bool | configure (uint32_t baud=9600) |
virtual bool | open () |
virtual bool | close () |
virtual void | send (uint8_t ch) |
virtual bool | canRead () |
virtual uint8_t | read () |
Protected Attributes | |
uint32_t | _baud |
The currently configured baud rate. | |
Abstract superclass for accessing RS232 port on the host.
This class (or subclasses) are used by Map27PhysicalLayer to send and receive data to and from an RS232 port on the host computer.
At present the only concrete implementations are:
|
virtual |
Test whether readable input characters are waiting
Reimplemented in Map27UnixPort.
|
virtual |
Close the underlying physical device if it is currently open
Reimplemented in Map27UnixPort.
|
virtual |
|
virtual |
Open the underlying physical device Sets the baud rate to the configured rate and to 8N1
Reimplemented in Map27UnixPort.
|
virtual |
Reads a single octet from the underlying device
Reimplemented in Map27UnixPort.
|
virtual |
Sends a single octet to the underlying physical device
[in] | ch | The character to send. Blocks until the character is queued by the operating system |
[in] | ch | The octet to send |
Reimplemented in Map27UnixPort.