|
|
|
|
|
- Closing the port
- Using an external library: RXTX
sEndEvent (Function) In french: sFinEvénement Disables the detection of an event on a serial port. The event was managed by sEvent.
// Detect characters on COM1 port sEvent(1, sEveCharReceived, "Read") sEvent(1, sEveBreak, "Break") ... sEndEvent(1, sEveBreak) ...
// --Procedure Read(PortNum, Event) Trace(sRead(1, sInEntryQueue(1)))
Syntax
<Result> = sEndEvent(<Port number> [, <Event to stop>])
<Result>: Boolean - True if the function was run,
- False otherwise.
<Port number>: Integer - Number of the serial port (1, 2, 3, up to 32 for COM1, COM2, COM3, ... COM32).
- Port number returned by sOpen (if this function was called with a port name).
<Event to stop>: Optional Integer constant (or combination of constants) Event whose management must be stopped. If this parameter is not specified, all the events managed on the port are disabled. | | sEveBreak | Receive a "Break line" event | sEveCharReceived | Receive a character | sEveCTS | Change of CTS status | sEveDSR | Change of DSR status | sEveEntryQueue80 | The input buffer is full at 80% | sEveError | Detect an error on the line | sEvePrinterError | Printer error detected | sEveRing | Detect the "Ring" signal (ring) | sEveRLSD | Change of RLSD status | sEveTransmitCompleted | The output buffer is empty |
Remarks When closing the port, all the events managed on this port are disabled. When re-opening the port, sEvent must be re-run to define the events managed on this port. Business / UI classification: Business Logic
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|