ControlSignalOptions class
Boolean true = mark signal (negative serial voltage). Boolean false = space signal (positive serial voltage).
For SetControlSignals, include the sendable signals that you wish to change. Signals not included in the dictionary will be left unchanged.
GetControlSignals includes all receivable signals.
class ControlSignalOptions extends ChromeObject { ControlSignalOptions({bool dtr, bool rts, bool dcd, bool cts}) { if (dtr != null) this.dtr = dtr; if (rts != null) this.rts = rts; if (dcd != null) this.dcd = dcd; if (cts != null) this.cts = cts; } ControlSignalOptions.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy); bool get dtr => jsProxy['dtr']; set dtr(bool value) => jsProxy['dtr'] = value; bool get rts => jsProxy['rts']; set rts(bool value) => jsProxy['rts'] = value; bool get dcd => jsProxy['dcd']; set dcd(bool value) => jsProxy['dcd'] = value; bool get cts => jsProxy['cts']; set cts(bool value) => jsProxy['cts'] = value; }
Extends
ChromeObject > ControlSignalOptions
Constructors
new ControlSignalOptions({bool dtr, bool rts, bool dcd, bool cts}) #
Create a new instance of a ChromeObject
, which creates and delegates to
a JsObject proxy.
docs inherited from ChromeObject
ControlSignalOptions({bool dtr, bool rts, bool dcd, bool cts}) { if (dtr != null) this.dtr = dtr; if (rts != null) this.rts = rts; if (dcd != null) this.dcd = dcd; if (cts != null) this.cts = cts; }
new ControlSignalOptions.fromProxy(JsObject jsProxy) #
Create a new instance of a ChromeObject
, which delegates to the given
JsObject proxy.
docs inherited from ChromeObject
ControlSignalOptions.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);
Properties
bool cts #
bool get cts => jsProxy['cts'];
set cts(bool value) => jsProxy['cts'] = value;
bool dcd #
bool get dcd => jsProxy['dcd'];
set dcd(bool value) => jsProxy['dcd'] = value;
bool dtr #
bool get dtr => jsProxy['dtr'];
set dtr(bool value) => jsProxy['dtr'] = value;
bool rts #
bool get rts => jsProxy['rts'];
set rts(bool value) => jsProxy['rts'] = value;
Methods
String toString() #
inherited from ChromeObject
Returns a string representation of this object.
docs inherited from Object
String toString() => jsProxy.toString();