Den Wed, 24 Oct 2001 23:06:36 +0200 skrev Ryan Cassel:
>thanks but what is AFAIK ? ...
As Far As I Know.
^ ^ ^ ^ ^
>I want to use a 7 bit word do I use CS7 flag like that :
>
>struct termios t;
>t.c_cflag &= ~CSTOPB | CS7;
Er, no.
The &= ~ is to clear the bit. You'll want to:
t.c_cflag &= ~CSTOPB;
t.c_cflag |= CS7;
If you build your termios from scratch (starting with every bit zero -
always a good idea, you never know who used the serial port last),
you'll want to do this instead:
t.c_cflag = CS7 | any | other | bit | you | want | to | set;
>Kent Friis a écrit :
French? You could try news:fr.comp.lang.c or fr.comp.os.linux
Mvh
Kent
--
War does not determine who is right, only who is left.