Tty.c_cflag |= (CLOCAL | CREAD) // ignore modem controls, Tty.c_iflag &= ~(IXON | IXOFF | IXANY) // shut off xon/xoff ctrl Tty.c_oflag = 0 // no remapping, no delays Tty.c_lflag = 0 // no signaling chars, no echo, ![]() Tty.c_iflag &= ~IGNBRK // disable break processing disable IGNBRK for mismatched speed tests otherwise receive break Tty.c_cflag = (tty.c_cflag & ~CSIZE) | CS8 // 8-bit chars Printf ("error %d from tcgetattr", errno) ![]() ![]() Int set_interface_attribs (int fd, int speed, int parity)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |