LibSerialPort.Port – libserialport Reference Manual
Port
Object Hierarchy:
LibSerialPort.Port
LibSerialPort.Port
LibSerialPort.Port
Description:
[
CCode
( cname =
"struct sp_port"
, free_function =
"sp_free_port"
, has_type_id =
"false"
) ]
[
Compact
]
public
class
Port
Namespace:
LibSerialPort
Package:
libserialport
Content:
Static methods:
public
static
Port
[]?
@enum
()
public
static
int
_enum
(
out
Port
[] a)
public
static
Return
new_by_name
(
string
name,
out
Port
? port)
Methods:
public
Return
blocking_read
(
uint8
[] buffer,
uint
timeout)
public
Return
blocking_write
(
uint8
[] buffer,
uint
timeout)
public
Return
close
()
public
Return
drain
()
public
Return
end_break
()
public
Return
flush
(
Buffer
buffer)
public
unowned
string
get_bluetooth_address
()
public
Return
get_config
(
Config
config)
public
unowned
string
get_description
()
public
Return
get_fd
(
out
int
fd)
public
Return
get_signal
(
out
Signal
signals)
public
Transport
get_transport
()
public
Return
get_usb_bus_address
(
out
int
usb_bus,
out
int
usb_address)
public
unowned
string
get_usb_manufacturer
()
public
unowned
string
get_usb_product
()
public
unowned
string
get_usb_serial
()
public
Return
get_usb_vid_pid
(
out
int
usb_vid,
out
int
usb_pid)
public
Return
input_waiting
()
public
unowned
string
name
()
public
Return
nonblocking_read
(
uint8
[] buffer)
public
Return
nonblocking_write
(
uint8
[] buffer)
public
Return
open
(
OpenMode
mode)
public
Return
output_waiting
()
public
Return
set_baudrate
(
int
baudrate)
public
Return
set_bits
(
int
bits)
public
Return
set_config
(
Config
config)
public
Return
set_cts
(
Cts
cts)
public
Return
set_dsr
(
Dsr
dsr)
public
Return
set_dtr
(
Dtr
dtr)
public
Return
set_flowcontrol
(
FlowControl
flowControl)
public
Return
set_parity
(
Parity
parity)
public
Return
set_rts
(
Rts
rts)
public
Return
set_stopbits
(
int
stopbits)
public
Return
set_xon_xoff
(
XonXoff
xon_xoff)
public
Return
start_break
()
2022 vala-language.org