OnLineControl Event in Virtual Serial Port ActiveX Control

The OnLineControl event occurs when other application changes line control parameters for virtual serial port.

OnLineControl(
  	BYTE StopBits, 	// Stop Bits
  	BYTE Parity, 	// Parity
  	BYTE WordLength 	// Data Bits
);

Parameters:

  • StopBits [out] : Number of stop bits to be used. This member can be one of the following values:
    ValueMeaning
    01 stop bit
    11.5 stop bits
    22 stop bits

     

  • Parity [out] : Parity scheme to be used. This member can be one of the following values:
    ValueMeaning
    0No parity
    1Odd
    2Even
    3Mark
    4Space

     

  • WordLength [out] : Number of bits in the bytes transmitted and received.