Lines Matching refs:newttys1
171 struct termios newttys1, oldttys1; in SetSerial() local
179 bzero(&newttys1, sizeof(newttys1)); in SetSerial()
180 newttys1.c_cflag = GetUartSpeed(nSpeed); in SetSerial()
181 newttys1.c_cflag |= (CLOCAL | CREAD); in SetSerial()
182 newttys1.c_cflag &= ~CSIZE; in SetSerial()
183 newttys1.c_lflag &= ~ICANON; in SetSerial()
184 newttys1.c_cflag |= GetUartBits(nBits); in SetSerial()
187 newttys1.c_cflag |= PARENB; in SetSerial()
188 newttys1.c_iflag |= (INPCK | ISTRIP); in SetSerial()
189 newttys1.c_cflag |= PARODD; in SetSerial()
192 newttys1.c_cflag |= PARENB; in SetSerial()
193 newttys1.c_iflag |= (INPCK | ISTRIP); in SetSerial()
194 newttys1.c_cflag &= ~PARODD; in SetSerial()
197 newttys1.c_cflag &= ~PARENB; in SetSerial()
203 newttys1.c_cflag &= ~CSTOPB; in SetSerial()
205 newttys1.c_cflag |= CSTOPB; in SetSerial()
207 newttys1.c_cc[VTIME] = 0; in SetSerial()
208 newttys1.c_cc[VMIN] = 0; in SetSerial()
213 if ((tcsetattr(fd, TCSANOW, &newttys1)) != 0) { in SetSerial()