Google 致力于为黑人社区推动种族平等。查看具体行动

多无线装置链路

本单元包含多电台链接的定义和函数。

总结

类型定义符

otMultiRadioNeighborInfo typedef
表示与邻居相关联的多个无线装置链路信息。
otRadioLinkInfo typedef
表示与电台链接相关的信息。

函数

otMultiRadioGetNeighborInfo(otInstance *aInstance, const otExtAddress *aExtAddress, otMultiRadioNeighborInfo *aNeighborInfo)
获取与具有给定扩展地址的邻居关联的多无线装置链路信息。

结构体

otMultiRadioNeighborInfo

表示与邻居相关联的多个无线装置链路信息。

otRadioLinkInfo

表示与电台链接相关的信息。

类型定义符

otMultiRadioNeighborInfo

struct otMultiRadioNeighborInfo otMultiRadioNeighborInfo

表示与邻居相关联的多个无线装置链路信息。

otRadioLinkInfo

struct otRadioLinkInfo otRadioLinkInfo

表示与电台链接相关的信息。

函数

otMultiRadioGetNeighborInfo

otError otMultiRadioGetNeighborInfo(
  otInstance *aInstance,
  const otExtAddress *aExtAddress,
  otMultiRadioNeighborInfo *aNeighborInfo
)

获取与具有给定扩展地址的邻居关联的多无线装置链路信息。

要求启用多电台链接功能(请参阅 config/radio_link.h)。

详情
参数
[in] aInstance
指向 OpenThread 实例的指针。
[in] aExtAddress
邻居的扩展地址。
[out] aNeighborInfo
指向 otMultiRadioNeighborInfo 的指针,用于输出邻居信息(成功时)。
返回值
OT_ERROR_NONE
找到邻居并成功更新“aNeighborInfo”。
OT_ERROR_NOT_FOUND
找不到与“aExtAddress”有关的邻居。

资源

OpenThread API 参考主题源自源代码,可在 GitHub 上获取。 如需了解详情或为我们的文档贡献内容,请参阅资源