tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: How to set custom baud rates



Am 15.04.11 06:16, schrieb Jacques Pelletier:
> Hi,
> 
> On NetBSD, is it possible to set custom baud rates for the serial ports from 
> an application written in C?

If with custom baudrates you mean the usual ones, like 300, 1200, 2400,
9600, etc., then yes, that is possible.  Use the ioctl() interface.
And read the tty(4) man page.

> 
> Thanks,
> 
> 
> JP



Home | Main Index | Thread Index | Old Index