UART read() & scanf()

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

UART read() & scanf()

3,434 次查看
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

标签 (1)
标记 (1)
0 项奖励
回复
3 回复数

1,490 次查看
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 项奖励
回复

1,490 次查看
lel_chen
Contributor I

Hi,

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

 

Thanks,

Chen

0 项奖励
回复

1,490 次查看
CrasyCat
Specialist III

Hello

 

All of them are blocking calls.

 

CrasyCat

0 项奖励
回复