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.

关于调用zigbee协议栈的方法

Other Parts Discussed in Thread: CC2530

我自己写了一个cc2530的程序,但是发送数据的过程中会出现冲突。所以我想调用zigbee协议栈的csma机制。前几天我提了这个问题,有人告诉我可以使用zigbee协议栈mac层的mac_low_level中的函数。这几天我研究了一下mac层的代码,大致了解了一下工作原理。但是又有了新的问题。

我把zigbee协议栈中的部分.h文件和.c文件拷到我自己的工程下面,然后调用mac_tx.c文件中的macTxFrame函数进行csma发送,跟踪这个函数会发现函数的功能非常复杂,而且跟踪到最后,有一些函数是只有声明没有定义的

Error[e46]: Undefined external "macDataTxTimeAvailable::?relay" referred in wsn net

Error[e46]: Undefined external "macTxCompleteCallback::?relay" referred in wsn net

例如以上的两种情况。编译器会报错

但是,直接编译zigbee的协议栈则不会报错。请问原因在哪里,是不是我需要修改设置,加载动态库之类的。还有我的这种方法可行吗