Home > other >  In the c language to write a serial port communication set the stop bit is what meaning, why there w
In the c language to write a serial port communication set the stop bit is what meaning, why there w

Time:10-12

The specific procedures as follows, I'm a little look not to understand, thank you ~ ~

/* set the stop bit */
The switch (stopbits)
{
Case 1:
Options. C_cflag & amp;=~ CSTOPB;
break;
Case 2:
Options. C_cflag |=CSTOPB;
break;
Default:
Fprintf (stderr, "Unsupported stop bits \ n");
Return (FALSE);
}
  • Related