Serial port question
Serial port question
- Subject: Serial port question
- From: Kenny Millar <email@hidden>
- Date: Tue, 5 Oct 2004 20:38:02 +0100
I asked this question over on carbon-dev and was directed to this list....
An application I'm writing (in carbon) makes extensive use of a serial port. I'm using a USB-Serial device, which works fine at all 'normal' baud rates.
Does anyone know how to set the divisor for the serial port, so I can use a 'non-standard' baud rate?
Under linux I would do something like this....
sinfo.custom_divisor = sinfo.baud_base / RequiredBaud ;
ioctl(fd, TIOCSSERIAL, &sinfo)
But can't find anything in the ioctl documentation about this type of thing on Mac OS X
Can anyone shed any light on this for me!?!
Fuurther info:
I know the device itself supports the non-standard rates
because I have it working already under, ahem, Windows.
-Kenny
_______________________________________________
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