blob: 08fab7ea245ac84a73a0edbdcdfa69986ede1b1e [file] [log] [blame]
/**
*
* @file amt_agent_sim.c
* @brief
* This file is part of FTM.
* AMT¹¤¾ßUE²à´úÀíÄ£¿é
*
* @details
* @author Tools Team.
* @email
* @copyright Copyright (C) 2013 Sanechips Technology Co., Ltd.
* @warning
* @date 2019/02/02
* @version 1.1
* @pre
* @post
*
* @par
* Change History :
* ---------------------------------------------------------------------------
* date version author description
* ---------------------------------------------------------------------------
* 2016/12/12 1.0 lu.xieji Create file
* 2019/02/02 1.1 jiang.fenglin ÐÞ¸Ä×¢ÊÍ·½Ê½Îªdoxygen
* ---------------------------------------------------------------------------
*
*
*/
/**
* Í·Îļþ°üº¬
*/
#include "oss_api.h"
#include "drv_api.h"
#include "amt_baseband.h"
/**
* º¯ÊýʵÏÖ
*/
/**
* @brief sim¿¨²âÊÔÏûÏ¢´¦Àíº¯Êý
* @param[in] msg_id FID
* @param[in] msg_buf »º´æÖ¸Õë
* @param[in] msg_len »º´æ³¤¶È
* @return ³É¹¦·µ»ØZOSS_SUCCESS, ʧ°Ü·µ»ØZOSS_ERROR
* @note
* @see
*/
UINT32 AmtAgent_Sim_ProcessMsg(UINT32 msg_id, UINT8* msg_buf, UINT32 msg_len)
{
UINT8 ret = 0;
int resetResult;
zOss_Printf(SUBMDL_AMT, PRINT_LEVEL_NORMAL, "%s: Test sim", __FUNCTION__);
resetResult = zDrvUicc_ResetCard(UICC_PRIMARY_CARD);
if (resetResult == 0)
{
zOss_Printf(SUBMDL_AMT, PRINT_LEVEL_NORMAL, "%s: The SIM-card reset is OK!", __FUNCTION__);
ret = 1;
}
else
{
zOss_Printf(SUBMDL_AMT, PRINT_LEVEL_ABNORMAL, "%s: The SIM-card reset is failed! resetResult=%d", __FUNCTION__,resetResult);
ret = 0;
}
AmtAgent_CreateResponse(msg_id, (UINT8*)&ret, sizeof(UINT8));
return ZOSS_SUCCESS;
}