This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] TDA4VH-Q1:相同类型节点的目标内核回调调用之间如何区别?

Guru**** 2426460 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1538622/tda4vh-q1-how-to-different-between-target-kernel-callback-calls-of-same-type-of-nodes

器件型号:TDA4VH-Q1


工具/软件:

您好、

SDK 版本:v9.2

如何知道当前哪个节点正在调用进程回调函数?

例如:在进程回调函数中、我要执行如下操作:

if (node1)

  printf(“为节点 1 执行一些操作“);
}

否则 if (node2)

  printf(“为节点 2 执行一些操作“);
}

在创建可以在进程回调中获取的节点时、我们是否可以为内核实例分配某种标记/id/name?

谢谢。此致、

Lalit

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好 Lalit、

     似乎您希望 2 个节点具有 2 个功能、然后您可以为每个节点创建 2 个不同的内核、或者在创建节点期间、您可以为每个节点传递一些配置参数、这些参数可在内核中用于做出相应的决策。

    此致、
    Gokul