case AF_INCOMING_MSG_CMD:
case AF_INCOMING_GRP_MSG_CMD:
// convert to incoming packet format
MSGpkt = (afIncomingMSGPacket_t *)&(msgPtr[1]);
// Process the incoming message
SRC03391_ProcessMSGCmd( MSGpkt );
// Release the data buffer
if ( MSGpkt->cmd.DataLength )
osal_mem_free( MSGpkt->cmd.Data ); //Data buffer first
break;
case ZDO_NEW_DSTADDR:
dstEPIF = msgPtr[1];
dstAddr = (zAddrType_t *)&msgPtr[2];
SRC03391_DstAddr.addrMode = dstAddr->addrMode;
SRC03391_DstAddr.endPoint = dstEPIF ;
if ( dstAddr->addrMode == Addr16Bit )
SRC03391_DstAddr.addr.shortAddr = dstAddr->addr.shortAddr;
else
{
osal_memcpy( SRC03391_DstAddr.addr.extAddr,
dstAddr->addr.extAddr, Z_EXTADDR_LEN );
}
break;
上面怎么有个双case 放一块???以前没见过...
case AF_INCOMING_MSG_CMD:
case AF_INCOMING_GRP_MSG_CMD:
摘自Z-Stack/Projects/HomeLighting/SRC03391_App.c
|