Connecting Tech Pros Worldwide Forums | Help | Site Map

termios interface question

Member
 
Join Date: Jun 2008
Location: Igualada (Barcelona)
Posts: 86
#1: Jul 3 '08
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,-

gpraghuram's Avatar
Expert
 
Join Date: Mar 2007
Location: Chennai
Posts: 1,258
#2: Jul 4 '08

re: termios interface question


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


Raghu
Reply