Re: what decides allowable serial speeds?
Re: what decides allowable serial speeds?
- Subject: Re: what decides allowable serial speeds?
- From: Godfrey van der Linden <email@hidden>
- Date: Wed, 26 Jul 2006 12:01:34 +1000
Actually you don't have to, there is an ioctl that will allow you to
ask the driver for any random speed.
It should be available on any 10.4.x system.
#include <IOKit/serial/ioss.h>
The ioctl is IOSSIOSPEED. It takes a single speed_t argument.
Godfrey
On 26/07/2006, at 4:06 AM, Sean McBride wrote:
Hi all,
I notice that the highest speed termios.h defines is B230400. I
have a
serial device that supports higher speeds such as 921600. Is it not
present in termios.h because it is unsupported? tcsetattr() returns
success after setting the speed to 921600. Do the supported speeds
depend exclusively on the serial hardware (USB-serial adapter these
days)? Or does the OS have influence on which speeds are allowed?
I ask all this because my device works at many speeds, except the
highest speed it supposedly supports. I'm trying to figure out if
this
is the device's fault, the OS's, or the USB-Serial Adapter's.
Thanks,
PS: I hope this list is appropriate, sorry if not.
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden