SerialPort

Constructors

this
this(string exmode)

Construct SerialPort using extend mode string.

this
this(string port, string mode)

Construct SerialPort using port name and mode string.

this
this(string port, uint baudRate)
this
this(string port, uint baudRate, string mode)
this
this(string port, Config conf)

Destructor

~this
~this()
Undocumented in source.

Members

Aliases

Config
alias Config = SPConfig

Functions

close
void close()

close handle

closed
bool closed()
config
const(Config) config()

Get config

config
void config(Config c)

Set config

getUintBaudRate
uint getUintBaudRate()
Undocumented in source. Be warned that the author may not have intended to support it.
handle
inout(SPHandle) handle()
initialConfig
void initialConfig(Config conf)
Undocumented in source. Be warned that the author may not have intended to support it.
m_ioctl
void m_ioctl(int v, termios2* t)
Undocumented in source. Be warned that the author may not have intended to support it.
m_tcgetattr
void m_tcgetattr(termios* t)
Undocumented in source. Be warned that the author may not have intended to support it.
m_tcsetattr
void m_tcsetattr(int v, const(termios*) t)
Undocumented in source. Be warned that the author may not have intended to support it.
name
string name()
openPort
void openPort()
Undocumented in source. Be warned that the author may not have intended to support it.
posixSetup
void posixSetup(Config conf)
Undocumented in source. Be warned that the author may not have intended to support it.
read
void[] read(void[] buf)

Read data from port

reopen
void reopen(string port, Config cfg)
set
SerialPort set(T val)
setTimeouts
void setTimeouts(DWORD rit, DWORD rttm, DWORD rttc, DWORD wttm, DWORD wttc)
Undocumented in source. Be warned that the author may not have intended to support it.
setUintBaudRate
void setUintBaudRate(uint br)
Undocumented in source. Be warned that the author may not have intended to support it.
setup
void setup(Config conf)

open handler, set new config

toString
string toString()
updTimeouts
void updTimeouts()
Undocumented in source. Be warned that the author may not have intended to support it.
winSetup
void winSetup()
Undocumented in source. Be warned that the author may not have intended to support it.
write
ptrdiff_t write(const(void[]) arr)

Write data to port

Properties

baudRate
uint baudRate [@property getter]
baudRate
uint baudRate [@property setter]
dataBits
DataBits dataBits [@property getter]
dataBits
DataBits dataBits [@property setter]
parity
Parity parity [@property getter]
parity
Parity parity [@property setter]
stopBits
StopBits stopBits [@property getter]
stopBits
StopBits stopBits [@property setter]

Static functions

listAvailable
string[] listAvailable()

List available serial ports in system

Variables

_handle
SPHandle _handle;
Undocumented in source.
port
string port;

Meta