Configure Serial Port Attributes
Make sure you have included the following file before setting attributes.
#include <termios.h>
Commonly, a serial port has the following attributes.
- Baud rate
- Data bit
- Stop bit
- Verification bit
- Traffic control
The following interfaces are used to configure the attributes of a serial port.