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.
    ValueMeaning
    ONESTOPBIT1 stop bit
    ONE5STOPBITS1.5 stop bits
    TWOSTOPBITS2 stop bits
  • Parity : Parity scheme to be used. This member can have one of the following values.
    ValueMeaning
    EVENPARITYEven
    MARKPARITYMark
    NOPARITYNo parity
    ODDPARITYOdd
    SPACEPARITYSpace
  • WordLength : Number of bits in the bytes transmitted and received.