Module SerialPort
The class that's used to create and manage Serial port connections.
Info:
- Copyright: Debaru Kft. 2017
- Release:
- License: GNU
- Author: Debaru Kft
| port |
Represents the Serial port number. |
| baud |
Represents the SerialPort speed. |
| data_bits |
Represents the SerialPort data bits settings. |
| parity |
Represents the SerialPort parity settings. |
| stop_bits |
Represents the SerialPort stop bits settings. |
| flow_control |
Represents the SerialPort flow control settings. |
| inter_byte_timeout |
Represents the SerialPort inter byte timeout settings. |
| read_timeout |
Represents the SerialPort read timeout settings. |
-
SerialPort ()
-
Creates a SerialPort instance.
-
open ()
-
Opens the SerialPort communication.
-
close ()
-
Closes the SerialPort communication.
-
close ()
-
Returns true if the SerialPort is open.
Returns:
bool
-
available ()
-
Returns an integer value indicating whether the SerialPort is available.
Returns:
int
-
read (size)
-
Reads the specified amount of data from the SerialPort.
Parameters:
Returns:
BinArray
-
write (data, size)
-
Writes the specified amount of data to the SerialPort.
Parameters:
-
flush ()
-
Clears the receive buffer.
-
dabug_as (name)
-
Logs the read and written information with name.
Parameters:
-
disable_debug ()
-
Disables debug.
-
port
-
Represents the Serial port number.
-
baud
-
Represents the SerialPort speed.
-
data_bits
-
Represents the SerialPort data bits settings.
-
parity
-
Represents the SerialPort parity settings.
-
stop_bits
-
Represents the SerialPort stop bits settings.
-
flow_control
-
Represents the SerialPort flow control settings.
-
inter_byte_timeout
-
Represents the SerialPort inter byte timeout settings.
-
read_timeout
-
Represents the SerialPort read timeout settings.