/************************************************************************************************** * @fn MT_AfAPSF_ConfigSet * * @brief This function is the MT proxy for afAPSF_ConfigSet(). * * input parameters * * @param pBuf - Pointer to the received buffer. * * output parameters * * None. * * @return None. */ static void MT_AfAPSF_ConfigSet(uint8 *pBuf) { afAPSF_Config_t cfg = { pBuf[MT_RPC_POS_DAT0+1], pBuf[MT_RPC_POS_DAT0+2] }; afStatus_t rtrn = afAPSF_ConfigSet(pBuf[MT_RPC_POS_DAT0], &cfg); MT_BuildAndSendZToolResponse(((uint8)MT_RPC_CMD_SRSP | (uint8)MT_RPC_SYS_AF), MT_AF_APSF_CONFIG_SET, 1, (uint8 *)&rtrn); }
/************************************************************************************************** * @fn MT_AfAPSF_ConfigGet * * @brief This function is the MT proxy for afAPSF_ConfigGet(). * * input parameters * * @param pBuf - Pointer to the received buffer. * * output parameters * * None. * * @return None. */ static void MT_AfAPSF_ConfigGet(uint8 *pBuf) { afAPSF_Config_t cfg = { 0, 0 }; uint8 buf[3]; afStatus_t rtrn = afAPSF_ConfigSet( pBuf[MT_RPC_POS_DAT0], &cfg ); buf[0] = rtrn; buf[1] = cfg.frameDelay; buf[2] = cfg.windowSize; MT_BuildAndSendZToolResponse(((uint8)MT_RPC_CMD_SRSP | (uint8)MT_RPC_SYS_AF), MT_AF_APSF_CONFIG_GET, 3, buf ); }