Structures – SERIAL_LINE_CONTROL

typedef struct _SERIAL_LINE_CONTROL{
   UCHAR StopBits;
   UCHAR Parity;
   UCHAR WordLength;
}SERIAL_BAUD_RATE,*PSERIAL_BAUD_RATE;

Members :

  • StopBits : Number of stop bits to be used. This member can have one of the following values.
    Value Meaning
    ONESTOPBIT 1 stop bit
    ONE5STOPBITS 1.5 stop bits
    TWOSTOPBITS 2 stop bits
  • Parity : Parity scheme to be used. This member can have one of the following values.
    Value Meaning
    EVENPARITY Even
    MARKPARITY Mark
    NOPARITY No parity
    ODDPARITY Odd
    SPACEPARITY Space
  • WordLength : Number of bits in the bytes transmitted and received.