Connecting Tech Pros Worldwide Help | Site Map

termios interface question

  #1  
Old July 3rd, 2008, 05:06 PM
Member
 
Join Date: Jun 2008
Location: Igualada (Barcelona)
Posts: 86
I'm programming an ARM's UART that comes with a library implementing the standard unix termios interface.

Regarding termios, I have following trouble:

When I do following syscall:

Expand|Select|Wrap|Line Numbers
  1. write( myFd, myStr, myLen )
It is placing myStr into an output buffer, implemented in the driver, that will send out all bytes through the UART.

I wonder if there is any way by which, using the termios interface, I can know when all bytes have been sent through the UART.

I need it because my hardware needs to have one line enabled during UART transmission (for an RS485 driver).

Thanks,-
  #2  
Old July 4th, 2008, 02:12 AM
gpraghuram's Avatar
Expert
 
Join Date: Mar 2007
Location: Chennai
Posts: 1,257

re: termios interface question


I am not very sure...but try using the IOCTL call for this.


Raghu
Reply


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cast problem / serial interface MVennebusch@web.de answers 5 February 20th, 2008 05:45 PM
Programming serial interface question (linux) Math55 answers 3 November 13th, 2005 10:00 PM
comp.lang.c Answers to Frequently Asked Questions (FAQ List) Steve Summit answers 0 November 13th, 2005 03:15 AM
A completely silly question Amir Dekel answers 18 July 18th, 2005 08:08 PM