Connecting Tech Pros Worldwide Help | Site Map
Reply
 
LinkBack Thread Tools Search this Thread
  #1  
Old July 3rd, 2008, 05:06 PM
Member
 
Join Date: Jun 2008
Location: Igualada (Barcelona)
Age: 29
Posts: 85
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, 02:12 AM
gpraghuram's Avatar
Expert
 
Join Date: Mar 2007
Location: Chennai
Age: 29
Posts: 1,172
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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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 204,687 network members.
Post your question now . . .
It's fast and it's free

Popular Articles