Skip to contentSkip to conversation

Serial custom speed deprecated?

DISCUSSION Nick Craig-Wood 1 participant 1 message Aug 25, 2006 6 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#6 lore raw
Quoted 4 lines · Alan Cox

Ar Iau, 2006-08-24 am 20:51 +0200, ysgrifennodd Krzysztof Halasa:

Quoted 1 line

Not sure if we want int, uint, or long long for speed values :-)

You want speed_t according to POSIX.

To get non-integral baud rates (of which there are a few but no longer in common use) you'd probably want to supply a two integers which you then divide.

This matches most hardware quite well, and for most cases you'd just supply the divisor as 1.

Signature · 1 line
Nick Craig-Wood <[email protected]> -- http://www.craig-wood.com/nick