Method | Description | |
---|---|---|
Close ( ) : void |
Close this instance.
|
|
Dispose ( ) : void |
Releases all resource used by the CyrusBuilt.MonoPi.IO.Serial.Rs232SerialPort object. Call Dispose when you are finished using the CyrusBuilt.MonoPi.IO.Serial.Rs232SerialPort. The Dispose method leaves the CyrusBuilt.MonoPi.IO.Serial.Rs232SerialPort in an unusable state. After calling Dispose, you must release all references to the CyrusBuilt.MonoPi.IO.Serial.Rs232SerialPort so the garbage collector can reclaim the memory that the CyrusBuilt.MonoPi.IO.Serial.Rs232SerialPort was occupying. |
|
GetBytesAvailable ( ) : |
Gets the bytes available to be read.
|
|
GetCharacter ( ) : Char |
Gets a single character from the serial device.
|
|
Open ( ) : void |
Opens the serial port.
|
|
Open ( String device, BaudRates baud ) : void |
Open the specified device with the specified BAUD rate.
|
|
PutChar ( Char c ) : void |
Sends a single character to the port.
|
|
PutString ( String s ) : void |
Sends a string to the port.
|
|
Rs232SerialPort ( ) : System |
Initializes a new instance of the CyrusBuilt.MonoPi.IO.Serial.Rs232SerialPort class. This is the default constructor.
|
|
Rs232SerialPort ( BaudRates baud ) : System |
Initializes a new instance of the CyrusBuilt.MonoPi.IO.Serial.Rs232SerialPort class with the BAUD rate to negotiate.
|
|
Rs232SerialPort ( String device ) : System |
Initializes a new instance of the CyrusBuilt.MonoPi.IO.Serial.Rs232SerialPort class with the device to open.
|
|
Rs232SerialPort ( String device, BaudRates baud ) : System |
Initializes a new instance of the CyrusBuilt.MonoPi.IO.Serial.Rs232SerialPort class with the device path and the BAUD rate to negotiate.
|
|
Write ( Byte val ) : void |
Writes a single byte to the port.
|
public Open ( String device, BaudRates baud ) : void | ||
device | String | /// The path to the serial port device to open. /// |
baud | BaudRates | /// The BAUD rate to negotiate. /// |
return | void |
public PutChar ( Char c ) : void | ||
c | Char | /// The character to send to the port. /// |
return | void |
public PutString ( String s ) : void | ||
s | String | /// The string to send to the port. /// |
return | void |
public Rs232SerialPort ( BaudRates baud ) : System | ||
baud | BaudRates |
/// The BAUD rate to negotiate (default is |
return | System |
public Rs232SerialPort ( String device ) : System | ||
device | String | /// The device path to open (default is "/dev/ttyAMA0"). /// |
return | System |
public Rs232SerialPort ( String device, BaudRates baud ) : System | ||
device | String | /// The device path to open (default is "/dev/ttyAMA0"). /// |
baud | BaudRates |
/// The BAUD rate to negotiate (default is |
return | System |
public Write ( Byte val ) : void | ||
val | Byte | /// The byte to write. /// |
return | void |