tinyusb框架中RHPort术语的具体含义是什么?
问题
我在研究tinyusb时,对RHPort的含义感到困惑,网上相关资料较少。通过搜索源码得到以下结果:
tinyusb/docs/info/changelog.rst:- Add rhport to hcd_init() tinyusb/docs/info/changelog.rst: - Support multiple usb ports with rhport=1 is high ... tinyusb/examples/device/cdc_dual_ports/src/tusb_config.h:// RHPort max operational speed can defined by board.mk ... tinyusb/examples/device/cdc_dual_ports/src/tusb_config.h:// Device mode with rhport and speed defined by board.mk ... tinyusb/examples/device/cdc_msc/src/tusb_config.h:// RHPort number used for device can be defined by board.mk, default to port 0 ...
我尝试猜测“RH”的缩写含义,目前想到的只有“Right Honourable”,想请教tinyusb中RHPort的具体含义是什么?
回答
RHPort是Root Hub Port的缩写,即根集线器端口。
在tinyusb中,RHPort用来标识USB控制器上的物理端口编号,比如你找到的代码里提到的rhport=0、rhport=1,对应不同的USB物理端口;同时它也关联端口的运行速度(比如注释里提到的高速模式)。
这个缩写源自USB协议里的Root Hub(根集线器)概念——Root Hub是USB控制器内置的集线器,每个物理连接端口就是一个Root Hub Port,tinyusb用RHPort作为该概念的简写,来管理多USB端口的使用场景。
内容的提问来源于stack exchange,提问作者sdbbs
相关产品推荐
相关产品推荐

