445 |
|
|
446 |
tcsetattr(serial_fd, TCSANOW, ptermios); |
tcsetattr(serial_fd, TCSANOW, ptermios); |
447 |
*/ |
*/ |
448 |
pser_inf->ptermios->c_iflag &= ~(IGNBRK|BRKINT|PARMRK|ISTRIP|INLCR|IGNCR|ICRNL|IXON); |
pser_inf->ptermios->c_iflag &= |
449 |
|
~(IGNBRK | BRKINT | PARMRK | ISTRIP | INLCR | IGNCR | ICRNL | IXON); |
450 |
pser_inf->ptermios->c_oflag &= ~OPOST; |
pser_inf->ptermios->c_oflag &= ~OPOST; |
451 |
pser_inf->ptermios->c_lflag &= ~(ECHO|ECHONL|ICANON|ISIG|IEXTEN); |
pser_inf->ptermios->c_lflag &= ~(ECHO | ECHONL | ICANON | ISIG | IEXTEN); |
452 |
pser_inf->ptermios->c_cflag &= ~(CSIZE|PARENB); |
pser_inf->ptermios->c_cflag &= ~(CSIZE | PARENB); |
453 |
pser_inf->ptermios->c_cflag |= CS8; |
pser_inf->ptermios->c_cflag |= CS8; |
454 |
tcsetattr(serial_fd, TCSANOW, pser_inf->ptermios); |
tcsetattr(serial_fd, TCSANOW, pser_inf->ptermios); |
455 |
|
|