MacOS:以编程方式查找串行端口? [英] MacOS: programmatically finding serial ports?
本文介绍了MacOS:以编程方式查找串行端口?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
MacOS中是否有一个库调用来列出可用的串行端口和每个端口的设置?希望某些东西可以在某些时间以最小的难度移植到iOS.
Is there a library call in MacOS to list the available serial ports and the settings of each? Hopefully something that might port to iOS at some time with minimal difficulty.
如果可能的话,我宁愿不要system("ls /dev/tty.*")
和system("stty ...")
.
I would prefer not to system("ls /dev/tty.*")
and system("stty ...")
if possible.
推荐答案
您可以使用IOKit调用来查找串行端口.
You use IOKit calls to find serial ports.
这篇关于MacOS:以编程方式查找串行端口?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文