lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame^] | 1 | /**
|
| 2 | *
|
| 3 | * @file amt_baseband.c
|
| 4 | * @brief
|
| 5 | * This file is part of FTM.
|
| 6 | * AMT¹¤¾ßUE²à´úÀíÄ£¿é
|
| 7 | *
|
| 8 | * @details
|
| 9 | * @author Tools Team.
|
| 10 | * @email
|
| 11 | * @copyright Copyright (C) 2013 Sanechips Technology Co., Ltd.
|
| 12 | * @warning
|
| 13 | * @date 2019/02/02
|
| 14 | * @version 1.1
|
| 15 | * @pre
|
| 16 | * @post
|
| 17 | *
|
| 18 | * @par
|
| 19 | * Change History :
|
| 20 | * ---------------------------------------------------------------------------
|
| 21 | * date version author description
|
| 22 | * ---------------------------------------------------------------------------
|
| 23 | * 2016/12/12 1.0 lu.xieji Create file
|
| 24 | * 2019/02/02 1.1 jiang.fenglin ÐÞ¸Ä×¢ÊÍ·½Ê½Îªdoxygen
|
| 25 | * ---------------------------------------------------------------------------
|
| 26 | *
|
| 27 | *
|
| 28 | */
|
| 29 |
|
| 30 | #include "oss_api.h"
|
| 31 | #include "amt.h"
|
| 32 | #include "amt_baseband.h"
|
| 33 |
|
| 34 | /**
|
| 35 | * Íⲿº¯ÊýÒýÓÃ
|
| 36 | */
|
| 37 | extern void RegBaseBandProcessPFunction(pfBaseBand pf);
|
| 38 | extern UINT32 AmtAgent_Sim_ProcessMsg(UINT32 msg_id, UINT8* msg_buf, UINT32 msg_len);
|
| 39 |
|
| 40 |
|
| 41 |
|
| 42 | /**
|
| 43 | * º¯ÊýʵÏÖ
|
| 44 | */
|
| 45 |
|
| 46 | /**
|
| 47 | * @brief »ù´øÄ£¿éÏûÏ¢´¦Àíº¯Êý
|
| 48 | * @param[in] msg_id FID
|
| 49 | * @param[in] msg_buf »º´æÖ¸Õë
|
| 50 | * @param[in] msg_len »º´æ³¤¶È
|
| 51 | * @return ³É¹¦·µ»ØZOSS_SUCCESS, ʧ°Ü·µ»ØZOSS_ERROR
|
| 52 | * @note
|
| 53 | * @see
|
| 54 | */
|
| 55 | UINT32 AmtAgent_Baseband_ProcessMsg(UINT16 msg_id, UINT8* msg_buf, UINT32 msg_len)
|
| 56 | {
|
| 57 | if (msg_id == MSG_TEST_SIM)
|
| 58 | {
|
| 59 | AmtAgent_Sim_ProcessMsg(msg_id, msg_buf, msg_len);
|
| 60 | }
|
| 61 | else
|
| 62 | {
|
| 63 | return ZOSS_ERROR;
|
| 64 | }
|
| 65 |
|
| 66 | return ZOSS_SUCCESS;
|
| 67 | }
|
| 68 |
|
| 69 | /**
|
| 70 | * @brief »ù´øÄ£¿é³õʼ»¯
|
| 71 | * @return ³É¹¦·µ»ØZOSS_SUCCESS, ʧ°Ü·µ»ØZOSS_ERROR
|
| 72 | * @note
|
| 73 | * @see
|
| 74 | */
|
| 75 | SINT32 zAmt_Init(VOID)
|
| 76 | {
|
| 77 | // ×¢²á»Øµ÷º¯Êý¹©´úÀíÖÐÐĽ«»ù´øµÄÏûϢת·¢µ½ÕâÀï
|
| 78 | RegBaseBandProcessPFunction(AmtAgent_Baseband_ProcessMsg);
|
| 79 |
|
| 80 | return ZOSS_SUCCESS;
|
| 81 | }
|
| 82 |
|