.autoclose Property
Function: |
For the currently selected serial port (selection is made through ser.num) specifies whether the port will be disabled once the intercharacter gap expires. |
Type: |
dis_en (enum, byte) |
Value Range: |
0 — DISABLED (default) 1 — ENABLED |
See Also: |
Details
The serial port is disabled by setting ser.enabled = 0 — NO. The intercharacter gap duration is specified by the ser.interchardelay property.
This property offers a way to make sure that no further data is received once the gap of a certain length is encountered. This property is especially useful in the Wiegand or clock/data modes (ser.mode = 1 — PL_SER_MODE_WIEGAND or 2 — PL_SER_MODE_CLOCKDATA), where intercharacter gap is the only way to reliably identify the end of one data transmission.