Quantcast
Channel: Forum - Recent Threads
Viewing all articles
Browse latest Browse all 5781

RE: UART driver callback function question

$
0
0

Gary,

So my dilemma is that I have 2 UART requirements:

1) I need to be able to receive bytes that can come in at any undetermined time

2) I need to send out bytes and know when all the bytes have been sent so that I can send some more bytes

Number 1 above apparently can only be accomplished by using the r_sci_uart driver and then capturing the UART_EVENT_RX_CHAR event in my callback routine.

However the only way I can see to get #2 is by using the sf_uart_comms framework and then use the write() API call to send bytes.  Using this method along with a reasonable timeout parameter, the write() function will not return until all the bytes have been sent which is exactly what I need.  How can I accomplish this using the r_sci_uart driver?

Thanks,

Jeff


Viewing all articles
Browse latest Browse all 5781

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>