SerialPortFR

Serial Port Fiber Ready

Constructors

this
deprecated this(string exmode, F sf)
deprecated this(string port, string mode, F sf)
deprecated this(string port, uint baudRate, F sf)
deprecated this(string port, uint baudRate, string mode, F sf)
deprecated this(string port, Config conf, F sf)
this(string exmode, F sf)
this(string port, string mode, F sf)
this(string port, uint baudRate, F sf)
this(string port, uint baudRate, string mode, F sf)
this(string port, Config conf, F sf)

Construct SerialPortFR

Members

Aliases

SleepFunc
deprecated alias SleepFunc = void delegate(Duration)

assume @nogc

SleepFuncNoGC
alias SleepFuncNoGC = void delegate(Duration) @(nogc)

Functions

ioPause
Duration ioPause()

Calc pause for sleep in read and write loops

read
void[] read(void[] buf, CanRead cr)
Undocumented in source. Be warned that the author may not have intended to support it.
readContinues
void[] readContinues(void[] buf, Duration startTimeout, Duration frameGap, bool expectAnything)

Read data while available by parts, sleep between checks.

sleep
void sleep(Duration dt)

Preform pause

sleepFunc
deprecated void sleepFunc(SleepFunc dlg)

extended delegate for perform sleep

sleepFunc
deprecated void sleepFunc(void function(Duration) fnc)
sleepFunc
void sleepFunc(void delegate(Duration) @(nogc) dlg)
void sleepFunc(void function(Duration) @(nogc) fnc)
SleepFuncNoGC sleepFunc()

extended delegate for perform sleep

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

Variables

_sleepFunc
void delegate(Duration) @(nogc) _sleepFunc;
Undocumented in source.

Inherited Members

From SerialPort

_writeTimeout
Duration _writeTimeout;
_writeTimeoutMult
Duration _writeTimeoutMult;
_readTimeout
Duration _readTimeout;
_readTimeoutMult
Duration _readTimeoutMult;
Undocumented in source.
updateTimeouts
void updateTimeouts()
Undocumented in source. Be warned that the author may not have intended to support it.
flush
void flush()

Read data from serial port while exists

readTimeout
Duration readTimeout [@property getter]
readTimeoutMult
Duration readTimeoutMult [@property getter]
writeTimeout
Duration writeTimeout [@property getter]
writeTimeoutMult
Duration writeTimeoutMult [@property getter]
readTimeout
Duration readTimeout [@property setter]
readTimeoutMult
Duration readTimeoutMult [@property setter]
writeTimeout
Duration writeTimeout [@property setter]
writeTimeoutMult
Duration writeTimeoutMult [@property setter]
CanRead
enum CanRead
read
void[] read(void[] buf, CanRead cr)

Read data from port

checkAbility
void checkAbility(CanRead cr, size_t readed, size_t buffer)
write
void write(const(void[]) buf)

Write data to port

Meta