The OnEvent event is triggered everytime a communication event occurs.

OnEvent(

      LONG EvtMask      

);

 

Parameters:

  • EvtMask [out] : The variable that receives a mask indicating the type of event that occurred. Can be one of the following values:

    ValueMeaningHex
    VSERIAL_EV_RXCHARA character was received and placed in the input buffer.
    0x00000001
    VSERIAL_EV_RTSThe RTS (request-to-send) signal changed state on the remote port.
    0x00000008
    VSERIAL_EV_DTRThe DTR (request-to-send) signal changed state on the remote port.
    0x00000010
    VSERIAL_EV_RINGA ring indicator was detected.
    0x00000100
    VSERIAL_EV_REMOTE_OPENCLOSERemote port was opened or closed.
    0x80000000
    VSERIAL_EV_REMOTE_LINECONTROLLine control parameters were changed on the remote port.
    0x40000000
    VSERIAL_EV_REMOTE_TIMEOUTSTimeouts parameters were changed on the remote port. (Only Windows NT/2K/XP)
    0x40000000
    VSERIAL_EV_REMOTE_QUEUESIZEQueue size was changed on the remote port.
    0x20000000
    VSERIAL_EV_REMOTE_CHARSSpecial (event) characters were changed on the remote port.
    0x10000000
    VSERIAL_EV_REMOTE_HANDFLOWFlow control parameters were changed on the remote port.
    0x08000000
    VSERIAL_EV_REMOTE_BAUDRATEBaud rate was changed on the remote port.
    0x04000000