- port
string port;
- _handle
SPHandle _handle;
Undocumented in source.
- Config
alias Config = SPConfig
- ~this
~this()
Undocumented in source.
- close
void close()
- name
string name()
- handle
inout(SPHandle) handle()
- reopen
void reopen(string port, Config cfg)
- toString
string toString()
- set
SerialPort set(T val)
- closed
bool closed()
- config
const(Config) config()
- config
void config(Config c)
- parity
Parity parity [@property getter]
- baudRate
uint baudRate [@property getter]
- dataBits
DataBits dataBits [@property getter]
- stopBits
StopBits stopBits [@property getter]
- parity
Parity parity [@property setter]
- baudRate
uint baudRate [@property setter]
- dataBits
DataBits dataBits [@property setter]
- stopBits
StopBits stopBits [@property setter]
- listAvailable
string[] listAvailable()
List available serial ports in system
- read
void[] read(void[] buf)
- write
ptrdiff_t write(const(void[]) arr)
- setup
void setup(Config conf)
open handler, set new config
- 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.
- m_ioctl
void m_ioctl(int v, termios2* t)
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.
- openPort
void openPort()
Undocumented in source. Be warned that the author may not have intended to support it.
- initialConfig
void initialConfig(Config conf)
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.
- getUintBaudRate
uint getUintBaudRate()
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.
- updTimeouts
void updTimeouts()
Undocumented in source. Be warned that the author may not have intended to support it.
- 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.