VOS_VOID  TAF_SPM_SetCurrEntityFsmState(
    VOS_UINT32                          ulState
)
{
    TAF_SPM_GetSpmCtxAddr()->pstCurrEntityFsm->stFsmCtx.ulState = ulState;

    TAF_SPM_LogFsmInfo();
}
VOS_VOID TAF_SPM_SetImsSmsSupportedOnImsServer(
    VOS_UINT8                           ucImsSmsSupported
)
{
    TAF_SPM_GetSpmCtxAddr()->stDomainSelCtx.ucImsSmsSupported = ucImsSmsSupported;
    
    return;
}
Exemple #3
0
VOS_VOID  TAF_SPM_Init(VOS_VOID)
{
    /* 初始化SPM模块CTX */
    TAF_SPM_InitCtx(TAF_SPM_GetSpmCtxAddr());

    /*注册状态机*/
    TAF_SPM_RegFsm();

    /* 读取NV操作 */
    TAF_SPM_ReadNvimInfo();

    /* 默认值启动MAIN状态机 */
    TAF_SPM_FSM_InitMainFsm(TAF_SPM_FSM_MAIN, TAF_SPM_GetMainFsmDescAddr(), TAF_SPM_MAIN_STA_IDLE);
}
TAF_SPM_REDIAL_MSG_CTX_STRU *TAF_SPM_GetRedialMsgQueueAddr(VOS_VOID)
{
    return &(TAF_SPM_GetSpmCtxAddr()->stDomainSelCtx.stRedialMsgQueue);
}
TAF_SPM_FSM_CTX_STRU* TAF_SPM_GetEntityFsmCtxAddrByFsmIndex(
    VOS_UINT8                           ucFsmIndex
)
{
    return &(TAF_SPM_GetSpmCtxAddr()->astEntityFsm[ucFsmIndex].stFsmCtx);
}
TAF_SPM_CLIENT_ID_ENTITY_FSM_CTX_STRU* TAF_SPM_GetCurrEntityFsmAddr(VOS_VOID)
{
    return (TAF_SPM_GetSpmCtxAddr()->pstCurrEntityFsm);
}
TAF_SPM_ENTRY_MSG_STRU* TAF_SPM_GetServiceCtrlEntryMsgAddr(VOS_VOID)
{
    return &(TAF_SPM_GetSpmCtxAddr()->stMainCtrlInfo.stServiceCtrlEntryMsg);
}
TAF_SPM_DOMAIN_SEL_MSG_QUEUE_STRU *TAF_SPM_GetBufferMsgQueueAddr(VOS_VOID)
{
    return &(TAF_SPM_GetSpmCtxAddr()->stDomainSelCtx.stBufferMsgQueue);
}
VOS_UINT16  TAF_SPM_GetCurrEntityFsmClientId( VOS_VOID )
{
    return (TAF_SPM_GetSpmCtxAddr()->pstCurrEntityFsm->usClientId);
}
VOS_VOID TAF_SPM_SetImsSmsSendingFlg(VOS_UINT8 ucImsSmsSendingFlg)
{
    TAF_SPM_GetSpmCtxAddr()->stDomainSelCtx.ucImsSmsSendingFlg = ucImsSmsSendingFlg;
}
VOS_UINT32  TAF_SPM_GetCurrEntityFsmState( VOS_VOID )
{
    return (TAF_SPM_GetSpmCtxAddr()->pstCurrEntityFsm->stFsmCtx.ulState);
}
VOS_UINT8 TAF_SPM_GetEntityFsmRunFlgByFsmIndex(
    VOS_UINT8                           ucFsmIndex
)
{
    return (TAF_SPM_GetSpmCtxAddr()->astEntityFsm[ucFsmIndex].ucRunFlg);
}
VOS_UINT8 TAF_SPM_GetImsSmsSupportedOnImsServer(VOS_VOID)
{
    return (TAF_SPM_GetSpmCtxAddr()->stDomainSelCtx.ucImsSmsSupported);
}
TAF_SPM_MAIN_FSM_CTX_STRU* TAF_SPM_GetCurrMainFsmAddr(VOS_VOID)
{
    return &(TAF_SPM_GetSpmCtxAddr()->stCurMainFsm);
}
TAF_SPM_FSM_CTX_STRU* TAF_SPM_GetCurrEntityFsmCtxAddr(VOS_VOID)
{
    return &(TAF_SPM_GetSpmCtxAddr()->pstCurrEntityFsm->stFsmCtx);
}
TAF_SPM_FSM_ID_ENUM_UINT32  TAF_SPM_GetCurrEntityFsmId(VOS_VOID)
{
    return (TAF_SPM_GetSpmCtxAddr()->pstCurrEntityFsm->stFsmCtx.enFsmId);
}
VOS_UINT8  TAF_SPM_GetCurrEntityFsmRunFlg(VOS_VOID)
{
    return (TAF_SPM_GetSpmCtxAddr()->pstCurrEntityFsm->ucRunFlg);
}
VOS_VOID  TAF_SPM_SetCurrEntityFsmRunFlg(
    VOS_UINT8                           ucRunFlg
)
{
    TAF_SPM_GetSpmCtxAddr()->pstCurrEntityFsm->ucRunFlg = ucRunFlg;
}
VOS_UINT8 TAF_SPM_GetImsSmsSendingFlg(VOS_VOID)
{
    return (TAF_SPM_GetSpmCtxAddr()->stDomainSelCtx.ucImsSmsSendingFlg);
}
VOS_UINT16 TAF_SPM_GetEntityFsmClientIdByFsmIndex(
    VOS_UINT8                           ucFsmIndex
)
{
    return (TAF_SPM_GetSpmCtxAddr()->astEntityFsm[ucFsmIndex].usClientId);
}
TAF_SPM_SERVICE_STATUS_ENUM_UINT8 TAF_SPM_GetLastPsServiceStatus(VOS_VOID)
{
    return (TAF_SPM_GetSpmCtxAddr()->stDomainSelCtx.enLastPsStatus);
}
TAF_SPM_TIMER_CTX_STRU*  TAF_SPM_GetTimerCtxAddr( VOS_VOID )
{
    return TAF_SPM_GetSpmCtxAddr()->astSpmTimerCtx;
}
VOS_VOID TAF_SPM_SetLastPsServiceStatus(TAF_SPM_SERVICE_STATUS_ENUM_UINT8 enCurrPsStatus)
{
    TAF_SPM_GetSpmCtxAddr()->stDomainSelCtx.enLastPsStatus = enCurrPsStatus;
}
TAF_SPM_SERVICE_CTRL_CFG_INFO_STRU*  TAF_SPM_GetServiceCtrlCfgInfoAddr( VOS_VOID )
{
    return &(TAF_SPM_GetSpmCtxAddr()->stServiceCtrlCfgInfo);
}
VOS_VOID  TAF_SPM_SetCurrEntityFsmClientId(
    VOS_UINT16                          usClientId
)
{
    TAF_SPM_GetSpmCtxAddr()->pstCurrEntityFsm->usClientId = usClientId;
}
VOS_VOID TAF_SPM_SetUpdateEntryMsgFlg(
    VOS_UINT8                           ucReplaceFlg
)
{
    TAF_SPM_GetSpmCtxAddr()->stMainCtrlInfo.ucUpdateEntryMsgFlg = ucReplaceFlg;
}
VOS_VOID TAF_SPM_SetCurrEntityFsmAddr(
    VOS_UINT8                           ucFsmIndex
)
{
    TAF_SPM_GetSpmCtxAddr()->pstCurrEntityFsm = &(TAF_SPM_GetSpmCtxAddr()->astEntityFsm[ucFsmIndex]);
}
VOS_UINT8 TAF_SPM_GetUpdateEntryMsgFlg(VOS_VOID)
{
    return (TAF_SPM_GetSpmCtxAddr()->stMainCtrlInfo.ucUpdateEntryMsgFlg);
}