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 | 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 |
<== Date ==> | <== Thread ==> |
---|
Subject: | RE: drvSerial/ioctl question |
From: | "Jeff Hill" <[email protected]> |
To: | "'Pedro Gigoux'" <[email protected]>, "'EPICS Tech-Talk'" <[email protected]> |
Date: | Tue, 18 Dec 2001 03:00:30 -0700 |
Pedro,
The attached version has a convenience routine for setting the baud
rate.
Jeff
> -----Original Message-----
> From: [email protected] [mailto:[email protected]] On Behalf Of Pedro
Gigoux
> Sent: Tuesday, December 18, 2001 2:51 PM
> To: EPICS Tech-Talk
> Subject: drvSerial/ioctl question
>
>
> I'm currently using drvSerial in my device support routine to talk to
a
> serial port. Because of hardware limitations I need to change the
speed
> of the port. drvSerial provides a routine (drvSerialGetFile) that
> returns the file pointer (FILE *) for ioctl manipulation. The problem
is
> that ioctl expects file descriptor (int). Does anyone know how to get
> the file descriptor from the file pointer?
>
> Thank you,
>
> Pedro.
Attachment:
drvSerial.h
Description: Binary data
Attachment:
drvSerial.c
Description: Binary data