9 bit serial / non-blocking TCSADRAIN

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello!

I want to use a raspberry pi's serial to communicate over a protocol
that uses 9-bit characters, so currently I'm using the stick parity
mode (CMSPAR) and toggling between odd and even parity, then using
tcsetattr with TCSADRAIN as the second argument, which blocks until all
bytes are transmitted. Is there a non-blocking api to do the same
thing, so I can use it from poll / select? (If there's a better way to
do 9 bit character size, that'd be even better. For my protocol, the
9th bit is only used to tell address bytes from data bytes, so I don't
have to change it often, so I guess my current method isn't too
horrible.)

Thanks!




[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux PPP]     [Linux FS]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Linmodem]     [Device Mapper]     [Linux Kernel for ARM]

  Powered by Linux