.enabled Property

Function:

Enables/disables the currently selected serial port (selection is made through ser.num).

Type:

Enum (no_yes, byte)

Value Range:

0 — NO (default): not enabled

1 — YES: enabled

See Also:

Buffer Memory Status


Details

Enabling/disabling the serial port does not automatically clear its buffers; this is done via ser.rxclear and ser.txclear. Note that certain properties can only be changed and methods executed when the port is not enabled. These are ser.rtsmap, ser.ctsmap, ser.mode, and ser.redir. You also cannot allocate buffer memory for the port (do sys.buffalloc) when the port is enabled.


.enabled Property

Details