| /**
|
| *
|
| * @file amt_baseband.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 "amt.h"
|
| #include "amt_baseband.h"
|
|
|
| /**
|
| * Íⲿº¯ÊýÒýÓÃ
|
| */
|
| extern void RegBaseBandProcessPFunction(pfBaseBand pf);
|
| extern UINT32 AmtAgent_Sim_ProcessMsg(UINT32 msg_id, UINT8* msg_buf, UINT32 msg_len);
|
|
|
|
|
|
|
| /**
|
| * º¯ÊýʵÏÖ
|
| */
|
|
|
| /**
|
| * @brief »ù´øÄ£¿éÏûÏ¢´¦Àíº¯Êý
|
| * @param[in] msg_id FID
|
| * @param[in] msg_buf »º´æÖ¸Õë
|
| * @param[in] msg_len »º´æ³¤¶È
|
| * @return ³É¹¦·µ»ØZOSS_SUCCESS, ʧ°Ü·µ»ØZOSS_ERROR
|
| * @note
|
| * @see
|
| */
|
| UINT32 AmtAgent_Baseband_ProcessMsg(UINT16 msg_id, UINT8* msg_buf, UINT32 msg_len)
|
| {
|
| if (msg_id == MSG_TEST_SIM)
|
| {
|
| AmtAgent_Sim_ProcessMsg(msg_id, msg_buf, msg_len);
|
| }
|
| else
|
| {
|
| return ZOSS_ERROR;
|
| }
|
|
|
| return ZOSS_SUCCESS;
|
| }
|
|
|
| /**
|
| * @brief »ù´øÄ£¿é³õʼ»¯
|
| * @return ³É¹¦·µ»ØZOSS_SUCCESS, ʧ°Ü·µ»ØZOSS_ERROR
|
| * @note
|
| * @see
|
| */
|
| SINT32 zAmt_Init(VOID)
|
| {
|
| // ×¢²á»Øµ÷º¯Êý¹©´úÀíÖÐÐĽ«»ù´øµÄÏûϢת·¢µ½ÕâÀï
|
| RegBaseBandProcessPFunction(AmtAgent_Baseband_ProcessMsg);
|
|
|
| return ZOSS_SUCCESS;
|
| }
|
|
|