CmdMessenger
3.0
CmdMessenger is a serial port messaging library for the .Net / Mono Platform.
|
Fas Manager for serial port data. More...
Public Member Functions | |
SerialPortManager () | |
Default constructor. | |
SerialPortManager (char eolSeparator, char escapeCharacter) | |
Constructor. | |
void | Initialize (char eolSeparator, char escapeCharacter) |
Initializes this object. | |
bool | StartListening () |
Connects to a serial port defined through the current settings. | |
bool | Open () |
Opens the serial port. | |
bool | PortExists () |
Queries if a given port exists. | |
bool | Close () |
Closes the serial port. | |
bool | IsOpen () |
Query ifthe serial port is open. | |
bool | StopListening () |
Stops listening to the serial port. | |
void | WriteLine (string value) |
Writes a string to the serial port. | |
void | WriteLine< T > (T value) |
Writes a parameter to the serial port followed by a NewLine. | |
void | Write< T > (T value) |
Writes a parameter to the serial port. | |
bool | UpdateBaudRateCollection () |
Retrieves the possible baud rates for the currently selected serial port. | |
string | ReadLine () |
Reads a line from the string buffer. | |
void | Dispose () |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. | |
Public Attributes | |
readonly Encoding | StringEncoder = Encoding.GetEncoding("ISO-8859-1") |
Protected Member Functions | |
virtual void | Dispose (bool disposing) |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. | |
Properties | |
char | EolDelimiter [get, set] |
Gets or sets the End-Of-Line delimiter. | |
long | LastLineTimeStamp [get, set] |
Gets or sets the time stamp of the last received line. | |
SerialSettings | CurrentSerialSettings [get, set] |
Gets or sets the current serial port settings. | |
SerialPort | SerialPort [get] |
Gets the serial port. | |
Events | |
EventHandler | NewLineReceived |
Fas Manager for serial port data.
Default constructor.
CommandMessenger.SerialPortManager.SerialPortManager | ( | char | eolSeparator, |
char | escapeCharacter | ||
) |
Constructor.
eolSeparator | The End-Of-Line separator. |
escapeCharacter | The escape character. |
Closes the serial port.
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
virtual void CommandMessenger.SerialPortManager.Dispose | ( | bool | disposing | ) | [protected, virtual] |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
disposing | true if resources should be disposed, false if not. |
void CommandMessenger.SerialPortManager.Initialize | ( | char | eolSeparator, |
char | escapeCharacter | ||
) |
Initializes this object.
eolSeparator | The End-Of-Line separator. |
escapeCharacter | The escape character. |
Query ifthe serial port is open.
Opens the serial port.
Queries if a given port exists.
string CommandMessenger.SerialPortManager.ReadLine | ( | ) |
Reads a line from the string buffer.
Connects to a serial port defined through the current settings.
Stops listening to the serial port.
Retrieves the possible baud rates for the currently selected serial port.
void CommandMessenger.SerialPortManager.Write< T > | ( | T | value | ) |
Writes a parameter to the serial port.
T | Generic type parameter. |
value | The value. |
void CommandMessenger.SerialPortManager.WriteLine | ( | string | value | ) |
Writes a string to the serial port.
value | The string to write. |
void CommandMessenger.SerialPortManager.WriteLine< T > | ( | T | value | ) |
Writes a parameter to the serial port followed by a NewLine.
T | Generic type parameter. |
value | The value. |
Gets or sets the current serial port settings.
The current serial settings.
char CommandMessenger.SerialPortManager.EolDelimiter [get, set] |
Gets or sets the End-Of-Line delimiter.
The End-Of-Line delimiter.
long CommandMessenger.SerialPortManager.LastLineTimeStamp [get, set] |
Gets or sets the time stamp of the last received line.
time stamp of the last received line.
Gets the serial port.
The serial port.