Connecting Tech Pros Worldwide Help | Site Map

termios interface question

 
LinkBack Thread Tools Search this Thread
  #1  
Old July 3rd, 2008, 04:06 PM
Member
 
Join Date: Jun 2008
Location: Igualada (Barcelona)
Age: 30
Posts: 86
Default termios interface question

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,-
Reply
  #2  
Old July 4th, 2008, 01:12 AM
gpraghuram's Avatar
Expert
 
Join Date: Mar 2007
Location: Chennai
Age: 30
Posts: 1,247
Default

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


Raghu
Reply
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search


Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.