On Wednesday, October 21, 1998 12:39 PM, Garrett D. Rinehart [SMTP:[email protected]] wrote:
> I gather from what I've found in the listserver
> archives that one can change the baud rate of a serial
> port via "ioctl". What I can't figure out is how. All I
> want to do is switch one of the ports on my 162 to 1200
> baud. Can someone out there please tell me how?
>
> -- Garrett Rinehart
> IPNS, ANL
/*
* conveinence routine which sets the baud rate from the vxWorks shell
* (called before iocInit)
*/
int drvSerialSetBaudRate (const char *pName, unsigned rate)
{
int fd;
int status;
fd = open (pName, O_RDWR, 0);
if (fd<0) {
return fd;
}
status = ioctl (fd, SIO_BAUD_SET, (int) rate);
close (fd);
return status;
}
- Navigate by Date:
- Prev:
Serial rate on mv162 Garrett D. Rinehart
- Next:
RE: result: CA links dont connect Jeff Hill
- Index:
1994
1995
1996
1997
<1998>
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Serial rate on mv162 Garrett D. Rinehart
- Next:
RE: result: CA links dont connect Jeff Hill
- Index:
1994
1995
1996
1997
<1998>
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|