• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C++ NAS_UTRANCTRL_GetUtranCtrlCtx函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C++中NAS_UTRANCTRL_GetUtranCtrlCtx函数的典型用法代码示例。如果您正苦于以下问题:C++ NAS_UTRANCTRL_GetUtranCtrlCtx函数的具体用法?C++ NAS_UTRANCTRL_GetUtranCtrlCtx怎么用?C++ NAS_UTRANCTRL_GetUtranCtrlCtx使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了NAS_UTRANCTRL_GetUtranCtrlCtx函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: NAS_UTRANCTRL_InitCtx

VOS_VOID  NAS_UTRANCTRL_InitCtx(
    VOS_UINT8                           ucInitType
)
{
#if (FEATURE_ON == FEATURE_UE_MODE_TDS)
    NAS_UTRANCTRL_CTX_STRU             *pstCtx;

    pstCtx = NAS_UTRANCTRL_GetUtranCtrlCtx();

    /* 初始化MS配置信息 */
    NAS_UTRANCTRL_InitMsCfgCtx(&(pstCtx->stMsCfgInfo));

    /* 初始化UTRANCTRL当前状态机上下文 */
    NAS_UTRANCTRL_InitCurrFsmCtx(&(pstCtx->stCurFsm));


    /* 初始化UTRANCTRL模块主控信息 */
    NAS_UTRANCTRL_InitMainCtrlInfo(&(pstCtx->stMainCtrlInfo));

    /* 初始化UTRANCTRL状态机缓存消息队列上下文 */
    NAS_UTRANCTRL_InitFsmBufferEntryMsgQueueCtx(&(pstCtx->stBufferEntryMsgQueue));

    /* 初始化UTRANCTRL状态机搜网控制上下文 */
    NAS_UTRANCTRL_InitFsmPlmnSearchCtrlCtx(&(pstCtx->stPlmnSearchCtrl));

    /* 初始化可维可测信息 */
    NAS_UTRANCTRL_InitMaintainInfo( ucInitType,
                                    &(pstCtx->stMaintainInfo));

    /* 状态机表的初始化 */
    NAS_UTRANCTRL_RegFsm();

#endif
}
开发者ID:XePeleato,项目名称:android_kernel_huawei_venus,代码行数:34,代码来源:NasUtranCtrlCtx.c


示例2: NAS_UTRANCTRL_SetUtranTddPsSmcNeededFlg

VOS_VOID NAS_UTRANCTRL_SetUtranTddPsSmcNeededFlg(
    VOS_UINT8                           ucIsUtranTddPsSmcNeeded
)
{
    NAS_UTRANCTRL_GetUtranCtrlCtx()->stMsCfgInfo.stCustomCfg.ucIsUtranTddPsSmcNeeded = ucIsUtranTddPsSmcNeeded;

    return;
}
开发者ID:XePeleato,项目名称:android_kernel_huawei_venus,代码行数:8,代码来源:NasUtranCtrlCtx.c


示例3: NAS_UTRANCTRL_SetPreUtranMode

VOS_VOID NAS_UTRANCTRL_SetPreUtranMode(
    NAS_UTRANCTRL_UTRAN_MODE_ENUM_UINT8 enUtranMode
)
{
    NAS_UTRANCTRL_GetUtranCtrlCtx()->stMsCfgInfo.stCustomCfg.enPreUtranMode = enUtranMode;

    return;
}
开发者ID:XePeleato,项目名称:android_kernel_huawei_venus,代码行数:8,代码来源:NasUtranCtrlCtx.c


示例4: NAS_UTRANCTRL_SetAbortFlg_PlmnSelection

VOS_VOID NAS_UTRANCTRL_SetAbortFlg_PlmnSelection(
    VOS_UINT8       ucAbortFlg
)
{
    (NAS_UTRANCTRL_GetUtranCtrlCtx()->stCurFsm.unFsmCtx.stPlmnSelectionCtx.ucAbortFlg) = ucAbortFlg;

    return;
}
开发者ID:XePeleato,项目名称:android_kernel_huawei_venus,代码行数:8,代码来源:NasUtranCtrlCtx.c


示例5: NAS_UTRANCTRL_SetSearchedSpecTdMccFlg

VOS_VOID  NAS_UTRANCTRL_SetSearchedSpecTdMccFlg(
    VOS_UINT8       ucFlg
)
{
#if (FEATURE_ON == FEATURE_UE_MODE_TDS)
    (NAS_UTRANCTRL_GetUtranCtrlCtx()->stPlmnSearchCtrl.ucSearchedSpecTdMccFlg) = ucFlg;
#endif
    return;
}
开发者ID:XePeleato,项目名称:android_kernel_huawei_venus,代码行数:9,代码来源:NasUtranCtrlCtx.c


示例6: NAS_UTRANCTRL_RestoreContextData_Main

VOS_UINT32 NAS_UTRANCTRL_RestoreContextData_Main(
    VOS_UINT32                          ulEventType,
    struct MsgCB                       *pstMsg
)
{
    NAS_UTRANCTRL_CTX_STRU                                  *pstUtranCtrlCtx;
    NAS_MML_PC_REPLAY_COMPRESS_CONTEXT_STRU                 *pstRcMsg;
    VOS_UINT32                                               ulExpectCount;
    VOS_UINT32                                               ulCount;
    VOS_UINT32                                               ulItemCount;
    VOS_UINT8                                               *pucDest;
    VOS_UINT8                                               *pucSrc;
    VOS_UINT32                                               ulDestLen;

    pstUtranCtrlCtx     = NAS_UTRANCTRL_GetUtranCtrlCtx();

    ulExpectCount = 0;
    ulCount       = 0;
    ulItemCount   = 0;
    ulExpectCount = sizeof(NAS_UTRANCTRL_CTX_STRU);

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

    pstRcMsg = (NAS_MML_PC_REPLAY_COMPRESS_CONTEXT_STRU *)pstMsg;
    pucSrc   = pstRcMsg->aucData;

    /* 解析总长度 */
    PS_MEM_CPY(&ulCount, pucSrc, sizeof(VOS_UINT32));
    pucSrc += sizeof(VOS_UINT32);

    if( ulExpectCount != ulCount )
    {
        return VOS_FALSE;
    }

    /* g_stNasUtranCtrlCtx目标地址 */
    pucDest     = (VOS_UINT8 *)pstUtranCtrlCtx;
    ulDestLen   = sizeof(NAS_UTRANCTRL_CTX_STRU);

    /* 解压缩 */
    if (VOS_FALSE == NAS_MML_UnCompressData(pucDest, &ulDestLen, pucSrc, &ulItemCount) )
    {
        return VOS_FALSE;
    }

    pucSrc += (ulItemCount);

    NAS_UTRANCTRL_ReloadFsmDesc(NAS_UTRANCTRL_GetCurFsmAddr(), pstUtranCtrlCtx->stCurFsm.enFsmId);


    NAS_INFO_LOG(WUEPS_PID_MMC, "UTRANCTRL: NAS_UTRANCTRL_RestoreContextData_Main - data is restored.");

    return VOS_TRUE;
}
开发者ID:nahuelange,项目名称:yoda-kernel-H7-PLK-L01-MM,代码行数:55,代码来源:NasUtranCtrlFsmMain.c


示例7: NAS_UTRANCTRL_ClearAllWaitAsUtranModeCnfFlg_ModeChange

VOS_VOID  NAS_UTRANCTRL_ClearAllWaitAsUtranModeCnfFlg_ModeChange(VOS_VOID)
{
    /* 如果当前状态机不是MODE CHANGE状态机 */
    if (NAS_UTRANCTRL_FSM_MODE_CHANGE != NAS_MMC_GetCurrFsmId())
    {
        /* 异常事件 */
        NAS_WARNING_LOG(WUEPS_PID_MMC, "NAS_UTRANCTRL_ClearAllWaitUtranModeCnfFlg_ModeChange:ENTERED");
    }

    (NAS_UTRANCTRL_GetUtranCtrlCtx()->stCurFsm.unFsmCtx.stModeChangeCtx.ucWaitSlaveModeUtranModeCnfFlg) = NAS_UTRANCTRL_WAIT_UTRAN_MODE_CNF_NULL;

    return;
}
开发者ID:XePeleato,项目名称:android_kernel_huawei_venus,代码行数:13,代码来源:NasUtranCtrlCtx.c


示例8: NAS_UTRANCTRL_GetUtranTddPsSmcNeededFlg

VOS_UINT8 NAS_UTRANCTRL_GetUtranTddPsSmcNeededFlg(VOS_VOID)
{
#if (FEATURE_ON == FEATURE_UE_MODE_TDS)
   
    return (NAS_UTRANCTRL_GetUtranCtrlCtx()->stMsCfgInfo.stCustomCfg.ucIsUtranTddPsSmcNeeded);

#else

    /* 平台不开启TDD特性宏时候,则需要进行SMC */
    return VOS_TRUE;

#endif    
}
开发者ID:XePeleato,项目名称:android_kernel_huawei_venus,代码行数:13,代码来源:NasUtranCtrlCtx.c


示例9: NAS_UTRANCTRL_GetCurrUtranMode

NAS_UTRANCTRL_UTRAN_MODE_ENUM_UINT8 NAS_UTRANCTRL_GetCurrUtranMode(VOS_VOID)
{
    /* !!获取当前的UTRAN模式,如果外部模块调用需要确保为驻留状态,否则可能会不准确 */
    
#if (FEATURE_ON == FEATURE_UE_MODE_TDS)
    VOS_UINT32                          ulSupportFddFlg;
    VOS_UINT32                          ulSupportTddFlg;

    ulSupportTddFlg = NAS_MML_IsPlatformSupportUtranTdd();
    ulSupportFddFlg = NAS_MML_IsPlatformSupportUtranFdd();
#endif

    /* 平台对W和TD都不支持时,UtranMode为BUTT */
    if (VOS_FALSE == NAS_MML_IsPlatformSupportUtran())
    {
        return NAS_UTRANCTRL_UTRAN_MODE_BUTT;
    }

#if (FEATURE_ON == FEATURE_UE_MODE_TDS)
    /* 平台接入技术能力只支持W时,UtranMode为FDD */
    if (VOS_FALSE == ulSupportTddFlg)
    {
        return NAS_UTRANCTRL_UTRAN_MODE_FDD;
    }

    /* 平台接入技术能力只支持TD时,UtranMode为TDD */
    if (VOS_FALSE == ulSupportFddFlg)
    {
        return NAS_UTRANCTRL_UTRAN_MODE_TDD;
    }

    if (NAS_UTRANCTRL_UTRAN_SWITCH_MODE_FDD_ONLY == NAS_UTRANCTRL_GetCurUtranSwitchMode())
    {
        return NAS_UTRANCTRL_UTRAN_MODE_FDD;
    }

    if (NAS_UTRANCTRL_UTRAN_SWITCH_MODE_TDD_ONLY == NAS_UTRANCTRL_GetCurUtranSwitchMode())
    {
        return NAS_UTRANCTRL_UTRAN_MODE_TDD;
    }

    return NAS_UTRANCTRL_GetUtranCtrlCtx()->stMsCfgInfo.stCustomCfg.enCurrUtranMode;
#else
    return NAS_UTRANCTRL_UTRAN_MODE_FDD;
#endif
}
开发者ID:XePeleato,项目名称:android_kernel_huawei_venus,代码行数:46,代码来源:NasUtranCtrlCtx.c


示例10: NAS_UTRANCTRL_GetBufferedSndUtranReqMsgAddr

NAS_UTRANCTRL_ENTRY_MSG_STRU* NAS_UTRANCTRL_GetBufferedSndUtranReqMsgAddr(VOS_VOID)
{
    return &(NAS_UTRANCTRL_GetUtranCtrlCtx()->stMainCtrlInfo.stBufferMmcSndUtranMsg);
}
开发者ID:XePeleato,项目名称:android_kernel_huawei_venus,代码行数:4,代码来源:NasUtranCtrlCtx.c


示例11: NAS_UTRANCTRL_GetCurrFsmEventType

VOS_UINT32 NAS_UTRANCTRL_GetCurrFsmEventType(VOS_VOID)
{
    return (NAS_UTRANCTRL_GetUtranCtrlCtx()->stCurFsm.stEntryMsg.ulEventType);
}
开发者ID:XePeleato,项目名称:android_kernel_huawei_venus,代码行数:4,代码来源:NasUtranCtrlCtx.c


示例12: NAS_UTRANCTRL_GetCachMsgBufferAddr

NAS_UTRANCTRL_MSG_QUEUE_STRU* NAS_UTRANCTRL_GetCachMsgBufferAddr(VOS_VOID)
{
    return &(NAS_UTRANCTRL_GetUtranCtrlCtx()->stBufferEntryMsgQueue);
}
开发者ID:XePeleato,项目名称:android_kernel_huawei_venus,代码行数:4,代码来源:NasUtranCtrlCtx.c


示例13: NAS_UTRANCTRL_GetCurUtranSwitchMode

VOS_UINT8 NAS_UTRANCTRL_GetCurUtranSwitchMode(VOS_VOID)
{
    return (NAS_UTRANCTRL_GetUtranCtrlCtx()->stMsCfgInfo.stCustomCfg.enCurUtranSwitchMode);
}
开发者ID:XePeleato,项目名称:android_kernel_huawei_venus,代码行数:4,代码来源:NasUtranCtrlCtx.c


示例14: NAS_UTRANCTRL_GetUePcRecurFlg

VOS_UINT8 NAS_UTRANCTRL_GetUePcRecurFlg(VOS_VOID)
{
    return (NAS_UTRANCTRL_GetUtranCtrlCtx()->stMaintainInfo.stUeMaintainInfo.ucUeSndPcRecurFlg);
}
开发者ID:XePeleato,项目名称:android_kernel_huawei_venus,代码行数:4,代码来源:NasUtranCtrlCtx.c


示例15: NAS_UTRANCTRL_GetSpecTdMccList

VOS_UINT32* NAS_UTRANCTRL_GetSpecTdMccList(VOS_VOID)
{
    return NAS_UTRANCTRL_GetUtranCtrlCtx()->stMsCfgInfo.stCustomCfg.stUtranModeAutoSwitch.aulTdMccList;
}
开发者ID:XePeleato,项目名称:android_kernel_huawei_venus,代码行数:4,代码来源:NasUtranCtrlCtx.c


示例16: NAS_UTRANCTRL_GetPreUtranMode

NAS_UTRANCTRL_UTRAN_MODE_ENUM_UINT8 NAS_UTRANCTRL_GetPreUtranMode(VOS_VOID)
{
    return NAS_UTRANCTRL_GetUtranCtrlCtx()->stMsCfgInfo.stCustomCfg.enPreUtranMode;
}
开发者ID:XePeleato,项目名称:android_kernel_huawei_venus,代码行数:4,代码来源:NasUtranCtrlCtx.c


示例17: NAS_UTRANCTRL_GetReplaceMmcMsgFlg

VOS_UINT8 NAS_UTRANCTRL_GetReplaceMmcMsgFlg(VOS_VOID)
{
    return (NAS_UTRANCTRL_GetUtranCtrlCtx()->stMainCtrlInfo.ucReplaceMmcMsgFlg);
}
开发者ID:XePeleato,项目名称:android_kernel_huawei_venus,代码行数:4,代码来源:NasUtranCtrlCtx.c


示例18: NAS_UTRANCTRL_SetReplaceMmcMsgFlg

VOS_VOID NAS_UTRANCTRL_SetReplaceMmcMsgFlg(
    VOS_UINT8                           ucReplaceFlg
)
{
    NAS_UTRANCTRL_GetUtranCtrlCtx()->stMainCtrlInfo.ucReplaceMmcMsgFlg = ucReplaceFlg;
}
开发者ID:XePeleato,项目名称:android_kernel_huawei_venus,代码行数:6,代码来源:NasUtranCtrlCtx.c


示例19: NAS_UTRANCTRL_GetSwithOnPlmnSearchFlag

VOS_UINT8 NAS_UTRANCTRL_GetSwithOnPlmnSearchFlag(VOS_VOID)
{
    return NAS_UTRANCTRL_GetUtranCtrlCtx()->stMainCtrlInfo.ucSwitchOnPlmnSearchFlag;
}
开发者ID:XePeleato,项目名称:android_kernel_huawei_venus,代码行数:4,代码来源:NasUtranCtrlCtx.c


示例20: NAS_UTRANCTRL_SetSwithOnPlmnSearchFlag

VOS_VOID NAS_UTRANCTRL_SetSwithOnPlmnSearchFlag(
    VOS_UINT8                           ucSwitchOnPlmnSearchFlag
)
{
    NAS_UTRANCTRL_GetUtranCtrlCtx()->stMainCtrlInfo.ucSwitchOnPlmnSearchFlag = ucSwitchOnPlmnSearchFlag;
}
开发者ID:XePeleato,项目名称:android_kernel_huawei_venus,代码行数:6,代码来源:NasUtranCtrlCtx.c



注:本文中的NAS_UTRANCTRL_GetUtranCtrlCtx函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ NAS_WARNING_LOG函数代码示例发布时间:2022-05-30
下一篇:
C++ NAS_ERROR_LOG函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap