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.

CC2630 home 1.2.2 SampleSwitch调用协议栈里函数



  • 针对CC2630终端,用的home 1.2.2 switch例程,
    1.ZDApp_NetworkInit( 0 );直接在应用程序里调用提示未定义,该怎么调用?
    2.Clock_getTicks()的单位是多少?有没有单位为秒的系统时钟函数?
    3.应用程序的宏定义里默认的ZSTACK_MANUAL_START是啥意思?手动启动?我要模块自动启动,不要一直hold,要x了吗?
    static void Switch_processZStackMsgs(zstackmsg_genericReq_t *pMsg)
    {
    switch(pMsg->hdr.event)
    {
    case zstackmsg_CmdIDs_DEV_STATE_CHANGE_IND:
    {
    // The ZStack Thread is indicating a State change
    zstackmsg_devStateChangeInd_t *pInd =
    (zstackmsg_devStateChangeInd_t *)pMsg;

    // Only process the state change if it actually changed.
    if(savedState != pInd->req.state)
    {
    // Save the new state
    savedState = pInd->req.state;

    if( (pInd->req.state == zstack_DevState_DEV_ZB_COORD)
    || (pInd->req.state == zstack_DevState_DEV_ROUTER)
    || (pInd->req.state == zstack_DevState_DEV_END_DEVICE) )
    {……