Date: Sat, 20 Nov 2010 01:42:29 +0300 From: Lev Serebryakov <lev@FreeBSD.org> To: freebsd-hackers@freebsd.org Subject: FreeBSD (UNIXes?), UARTs, forced parity and "Custom" UART settings Message-ID: <19363551.20101120014229@serebryakov.spb.ru>
next in thread | raw e-mail | index | archive | help
Hello, Freebsd-hackers. When I implemented USB2COM driver, I found that there is NO flags in termios for forces parity. Here are flags to tunr parity on or off and make it odd or even, but no mention about forced (alway 1 -- odd -- or 0 -- even) parity, which is not dependend on data and acts as one more (inverted sometimes) stop bit. Virtually every UART has such mode (16x50-compatible UARTS hereis bit in LCR for it), but no flag in the (POSIX?) API! Did I miss something? How people communicate with equipment, which uses (and wants) forced parity? Some equipment uses this bit as address one... Another question -- does USB2COM driver need RS-485 mode (which is supported by hardware), and what is better way to turn it ons -- sysctl or ioctl? --=20 // Black Lion AKA Lev Serebryakov <lev@FreeBSD.org>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19363551.20101120014229>