AnsweredAssumed Answered

Hardware flow control controlling RTS / CTS with IOCTL

Question asked by Carl Norman on Apr 1, 2009
Latest reply on Aug 16, 2010 by William Hookway



Can someone please post an example of using ioctl to set RTS?


I have opened a port with:


fp = fopen( "ittyb:", (pointer)(IO_SERIAL_RAW_IO | IO_SERIAL_HW_FLOW));


Now when I transmit data out of ittyb with


fprintf(fp, "test");


Is the driver suppose to set the control the RTS output pin? Or do I need to manually control RTS using "_IO_IOCTL_SERIAL_SET_HW_SIGNAL" and "IO_SERIAL_RTS"?If so, how do I properly use ioctl with these commands?


Also, IOCTL.h does define all the hardware flow control pins (which are not supported on either eval kit). How do I enable and allocate them for my own BSP/PSP? (I havnt looked into this, thought I would just and this question while im here)...