UART read() & scanf()

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

UART read() & scanf()

2,379 Views
lel_chen
Contributor I

Hi ,

        With respect to UART functionality, what is the difference between _io_read() & _io_scanf() functions OR _io_write() & _io_printf() functions?

        Is _io_read() a blocking call?

 

Thanks,

Chen

Labels (1)
0 Kudos
3 Replies

435 Views
CrasyCat
Specialist III

Hello

 

Basically I would say io_read and io_write are used to read/write a single character, where io_scanf and io_printf are used for formatted output/input.

 

It would help to know which processor you are targeting for a more accurate answer.

 

CrasyCat

0 Kudos

435 Views
lel_chen
Contributor I

Hi,

     The processor used is M52259. I would like to know which among them are blocking calls.

 

Thanks,

Chen

0 Kudos

435 Views
CrasyCat
Specialist III

Hello

 

All of them are blocking calls.

 

CrasyCat

0 Kudos