Exemple #1
0
/**************************************************************************************************
 * @fn          zapSysResetInd
 *
 * @brief       This function processes the SYS sub-system MT_SYS_RESET_IND response.
 *
 * input parameters
 *
 * @param       port - Port Id corresponding to the ZNP that sent the message.
 * @param       pBuf - A pointer to the RPC response.
 *
 * output parameters
 *
 * None.
 *
 * @return      None.
 **************************************************************************************************
 */
static void zapSysResetInd(uint8 port, uint8 *pBuf)
{
  //pBuf[0] = ResetReason();   /* Reason */
  //pBuf[1] = 0x00;            /* Transport Revision */
  //pBuf[2] = 0x00;            /* Product */
  //pBuf[3] = 0x00;            /* Major Revision */
  //pBuf[4] = 0x00;            /* Minor Revision */
  //pBuf[5] = 0x00;            /* Hardware Revision */
  (void)pBuf;
  zapGotSync(port);
}
Exemple #2
0
/**************************************************************************************************
 * @fn          zapUtilProcessIncoming
 *
 * @brief       This function processes the UTIL sub-system response from the ZNP.
 *
 * input parameters
 *
 * @param       port - Port Id corresponding to the ZNP that sent the message.
 * @param       pBuf - A pointer to the RPC response.
 *
 * output parameters
 *
 * None.
 *
 * @return      None.
 **************************************************************************************************
 */
void zapUtilProcessIncoming(uint8 port, uint8 *pBuf)
{
    uint8 cmd1 = pBuf[MT_RPC_POS_CMD1];
    pBuf += MT_RPC_FRAME_HDR_SZ;

    switch (cmd1)
    {
    case MT_UTIL_SYNC_REQ:
        zapGotSync(port);
        break;

#if defined ZCL_KEY_ESTABLISH
    case MT_UTIL_ZCL_KEY_ESTABLISH_IND:
        zapUtilParseKeyInd(pBuf);
        break;
#endif

    default:
        break;
    }
}