Lines Matching refs:options
553 /*! \brief Send the selected options to the serial driver.
561 struct termios options;
568 err = tcgetattr(ffd, &options);
573 options.c_iflag &= ~(IXON | IXOFF | IXANY | INPCK);
574 options.c_cflag &= ~(CRTSCTS | CSIZE | CSTOPB | PARODD | PARENB);
575 options.c_lflag &= ~(ECHO | ECHONL | ISIG | ICANON);
578 options.c_cflag |= CLOCAL;
582 options.c_cflag |= CRTSCTS;
585 options.c_iflag |= (IXON | IXOFF);
588 options.c_cflag |= CSTOPB; // Set 2 stop bits
591 options.c_cflag |= CS8; // Set 8 data bits
595 options.c_cflag |= PARENB; //Enable parity
597 options.c_cflag |= PARODD; //Select odd parity
601 cfsetispeed(&options, fBaudRate);
602 cfsetospeed(&options, fBaudRate);
605 options.c_cc[VTIME] = 0;
606 options.c_cc[VMIN] = 0;
609 options.c_cc[VMIN] = 1;
612 options.c_cc[VTIME] = (timeout == 0) ? 1 : timeout;
617 err = tcsetattr(ffd, TCSANOW, &options);