How do I use rtems_termios_bufsize?! No doc!
Eric Norum
wenorum at lbl.gov
Fri Sep 24 02:04:18 UTC 2010
On Sep 23, 2010, at 6:29 PM, Chris Johns wrote:
> On 23/09/10 7:52 PM, João Rasta wrote:
>> Thanks Chris, there are still two things i don't understand:
>>
>> 1) When transmitting, the behaviour i expect from the rtems software
>> buffer is that bytes are read from it one by one and passed to the uart
>> hardware buffer and then serialized to the serial line. This software
>> buffer is the raw_output buffer and the cooked buffer will not be used
>> in this case. Is this correct?
>
> It depends on the termios configuration you use. This link may help:
>
> http://www.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap11.html#tag_11_01_03
>
> The section "Non-Canonical Mode Input Processing" is important for you. It is sometimes referred to as 'raw-mode'.
>
> Some drivers can take more than one character at a time. If you have the output cooked it will be buffered into the cooked buffer and transferred to the output buffer when a LF or flush happens.
AFAIK the cooked buffer is for input only. It's size determines the maximum line length that can be handled. The raw input buffer holds characters directly from the seial port. The cooked buffer holds the characters after erase/kill processing.
>
--
Eric Norum
wenorum at lbl.gov
More information about the users
mailing list