Méthode | Description | |
---|---|---|
Close ( ) : void | ||
Connection ( string port, IChannel channel, int baudRate = 9600, Parity parity = Parity.None, int dataBits = 8, StopBits stopBits = StopBits.One ) : System | ||
Dispose ( ) : void | ||
Open ( ) : void | ||
Write ( object data ) : void | ||
_port_DataReceived ( object sender, System.IO.Ports.SerialDataReceivedEventArgs e ) : void |
Méthode | Description | |
---|---|---|
GetBytes ( |
Get a byte[] from the serial port. Will keep reading until the port returns a 0. 0 bytes were read on the port
|
Méthode | Description | |
---|---|---|
CombineArrays ( byte source, byte destination ) : byte[] |
Append source to the end of destination Resize or new up destination if needed. We assume that destination is full, so no need to keep track of the last byte used, just extend and copy source into
|
public Connection ( string port, IChannel channel, int baudRate = 9600, Parity parity = Parity.None, int dataBits = 8, StopBits stopBits = StopBits.One ) : System | ||
port | string | |
channel | IChannel | |
baudRate | int | |
parity | Parity | |
dataBits | int | |
stopBits | StopBits | |
Résultat | System |
protected GetBytes ( |
||
port | ||
Résultat | byte[] |
public _port_DataReceived ( object sender, System.IO.Ports.SerialDataReceivedEventArgs e ) : void | ||
sender | object | |
e | System.IO.Ports.SerialDataReceivedEventArgs | |
Résultat | void |