⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 udcp.c

📁 是一个手机功能的模拟程序
💻 C
字号:
/*
 * Copyright (C) Ericsson Mobile Communications AB, 2001.
 * Licensed to AU-System AB.
 * All rights reserved.
 *
 * This software is covered by the license agreement between
 * the end user and AU-System AB, and may be used and copied
 * only in accordance with the terms of the said agreement.
 *
 * Neither Ericsson Mobile Communications AB nor AU-System AB
 * assumes any responsibility or liability for any errors or inaccuracies in
 * this software, or any consequential, incidental or indirect damage arising
 * out of the use of the Generic WAP Client software.
 */

/* Program generated by SDT Cmicro, version 1.33 */

#ifndef XSCT_CMICRO
#define XSCT_CMICRO
#endif

#define C_MICRO_1_3
#include "ml_typw.h"
#include "ctypes.h"
#include "buffmgt.h"
#include "glbldecl.h"
#include "wdp_ul.h"
#include "wtlspckg.h"
#include "wtls_wdp.h"
#include "wdppckg.h"
#include "wdp_udcp.h"
#include "wdp_sms.h"
#include "wdp_udp.h"
#include "wspcmwtp.h"
#include "wtppckg.h"
#include "wtp_wdp.h"
#include "sptp_tls.h"
#include "wspclwdp.h"
#include "waepckg.h"
#include "wtapckg.h"
#include "pushpckg.h"
#include "wae_wsp.h"
#include "stackmgr.h"
#include "wap.h"

/*************************************************************************
**                SECTION Types and Forward references                  **
*************************************************************************/

/*****
* PROCESS UDCPDialogueHandler
* <<SYSTEM WAP/BLOCK UDCP>>
* #SDTREF(SDL,D:\WIP\System\SystemConfigurations\base_push_wta_wtls_co_sms\sdl\udcp\udcpdialoguehandler_dummy.spr,4,1)
******/
YPAD_PROTOTYPE(yPAD_z62_UDCPDialogueHandler)
typedef struct {
    PROCESS_VARS
                /* #SDTREF(SDL,D:\WIP\System\SystemConfigurations\base_push_wta_wtls_co_sms\sdl\udcp\udcpdialoguehandler_dummy.spr(DefandProcFromUpper),11102(35,20),2) */
    SDL_Natural  z621_UDCP_Ready;
                /* #SDTREF(SDL,D:\WIP\System\SystemConfigurations\base_push_wta_wtls_co_sms\sdl\udcp\udcpdialoguehandler_dummy.spr(DefandProcFromUpper),10445(105,20),2) */
    SDL_Integer  z622_Cmicrocompil;
                /* #SDTREF(SDL,D:\WIP\System\SystemConfigurations\base_push_wta_wtls_co_sms\sdl\udcp\udcpdialoguehandler_dummy.spr(DefandProcFromUpper),10208(10,35),5) */
    SDL_Octet_String  z623_UDCPdata;
                /* #SDTREF(SDL,D:\WIP\System\SystemConfigurations\base_push_wta_wtls_co_sms\sdl\udcp\udcpdialoguehandler_dummy.spr(DefandProcFromUpper),10208(10,35),6) */
    DeviceAddress  z624_WAPgwAddress;
                /* #SDTREF(SDL,D:\WIP\System\SystemConfigurations\base_push_wta_wtls_co_sms\sdl\udcp\udcpdialoguehandler_dummy.spr(DefandProcFromUpper),10208(10,35),7) */
    SDL_Octet  z625_formatOfWapAddress;
                /* #SDTREF(SDL,D:\WIP\System\SystemConfigurations\base_push_wta_wtls_co_sms\sdl\udcp\udcpdialoguehandler_dummy.spr(DefandProcFromUpper),10208(10,35),8) */
    AuxiliaryAddress  z626_USSDAddress;
                /* #SDTREF(SDL,D:\WIP\System\SystemConfigurations\base_push_wta_wtls_co_sms\sdl\udcp\udcpdialoguehandler_dummy.spr(DefandProcFromUpper),10208(10,35),9) */
    SDL_Boolean  z627_MoreMessagesToCome;
                /* #SDTREF(SDL,D:\WIP\System\SystemConfigurations\base_push_wta_wtls_co_sms\sdl\udcp\udcpdialoguehandler_dummy.spr(DefandProcFromUpper),10208(10,35),12) */
    SDL_Octet  z628_ReleaseCode;
                /* #SDTREF(SDL,D:\WIP\System\SystemConfigurations\base_push_wta_wtls_co_sms\sdl\udcp\udcpdialoguehandler_dummy.spr(DefandProcFromUpper),10208(10,35),17) */
    SDL_Integer  z629_USSDstringLength;
                /* #SDTREF(SDL,D:\WIP\System\SystemConfigurations\base_push_wta_wtls_co_sms\sdl\udcp\udcpdialoguehandler_dummy.spr(DefandProcFromUpper),10208(10,35),18) */
    SDL_Octet_String  z62A_USSDstring;
                /* #SDTREF(SDL,D:\WIP\System\SystemConfigurations\base_push_wta_wtls_co_sms\sdl\udcp\udcpdialoguehandler_dummy.spr(DefandProcFromUpper),10208(10,35),23) */
    SDL_Octet  z62B_ErrorReason;
                /* #SDTREF(SDL,D:\WIP\System\SystemConfigurations\base_push_wta_wtls_co_sms\sdl\udcp\udcpdialoguehandler_dummy.spr(DefandProcFromUpper),10208(10,35),24) */
    SDL_Boolean  z62C_DialogueKept;
} yVDef_z62_UDCPDialogueHandler;
#define z620_IDLE  1

/*************************************************************************
**                #CODE directives, #HEADING sections                   **
*************************************************************************/

/*************************************************************************
**                  #CODE directives, #BODY sections                    **
*************************************************************************/

/*************************************************************************
**                  SECTION Variables and Functions                     **
*************************************************************************/

/*****
* PROCESS UDCPDialogueHandler
* <<SYSTEM WAP/BLOCK UDCP>>
* #SDTREF(SDL,D:\WIP\System\SystemConfigurations\base_push_wta_wtls_co_sms\sdl\udcp\udcpdialoguehandler_dummy.spr,4,1)
******/

/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
** Tables for process UDCPDialogueHandler
** #SDTREF(SDL,D:\WIP\System\SystemConfigurations\base_push_wta_wtls_co_sms\sdl\udcp\udcpdialoguehandler_dummy.spr,4,1)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/

/*--------------Instance Data---------------*/
#define X_MAX_INST_z62_UDCPDialogueHandler 1
static yVDef_z62_UDCPDialogueHandler *yINSTD_z62_UDCPDialogueHandler[X_MAX_INST_z62_UDCPDialogueHandler];

/*--------------Process State---------------*/
static xSTATE yPSTATETBL_z62_UDCPDialogueHandler[X_MAX_INST_z62_UDCPDialogueHandler] = {
  XSTARTUP
};

/*---------------State Index----------------*/
static XCONST xSITBL xSTATE_INDEX_z62_UDCPDialogueHandler[2] = {0, 2};

/*---------------Transition-----------------*/
#define XMAX_TRANS_z62_UDCPDialogueHandler 2
static XCONST xTR_TABLE_ENTRY yTRTBL_z62_UDCPDialogueHandler[XMAX_TRANS_z62_UDCPDialogueHandler] = {

    /* IDLE */
  XMK_B z_WDP_UDCP_0_UDCPDataReq, 2 XMK_E,
  XMK_B z_WDP_UDCP_1_UDCPReleaseReq, 1 XMK_E
};

/*-----------Process-PID-Values-------------*/
#ifdef XMK_USE_PID_ADDRESSING
static xPIDTable yPID_TBL_z62_UDCPDialogueHandler[X_MAX_INST_z62_UDCPDialogueHandler];
#endif

/*-----------Process Description------------*/
#define X_PRIO_z62_UDCPDialogueHandler  xDefaultPrioProcess
XCONST XPDTBL yPDTBL_z62_UDCPDialogueHandler = {
#ifdef XMK_USE_PID_ADDRESSING
  yPID_TBL_z62_UDCPDialogueHandler,
#endif
  (xINSTD *)yINSTD_z62_UDCPDialogueHandler,
  sizeof(yVDef_z62_UDCPDialogueHandler),
  X_MAX_INST_z62_UDCPDialogueHandler,
#ifdef XMK_USE_TIMESLICE
  X_TIMESLICE_z62_UDCPDialogueHandler,
#endif
#ifdef XMK_USE_PREEMPTIVE
  X_PRIO_z62_UDCPDialogueHandler,
#endif
  (xmk_T_TRANS_ADDRESS) yPAD_z62_UDCPDialogueHandler,
  yTRTBL_z62_UDCPDialogueHandler,
  xSTATE_INDEX_z62_UDCPDialogueHandler,
  yPSTATETBL_z62_UDCPDialogueHandler
};

/*+++++
* Function for process UDCPDialogueHandler
* #SDTREF(SDL,D:\WIP\System\SystemConfigurations\base_push_wta_wtls_co_sms\sdl\udcp\udcpdialoguehandler_dummy.spr,4,1)
++++++*/
YPAD_FUNCTION(yPAD_z62_UDCPDialogueHandler)
{
  YPAD_YSVARP
  YPAD_YVARP(yVDef_z62_UDCPDialogueHandler)
  /* INTEGRATION: commented out statement */
  /* YPAD_TEMP_VARS */
  YPRSNAME_VAR("UDCPDialogueHandler")

  BEGIN_PAD
  switch (XSYMBOLNUMBER) {

/*-----
* START
* #SDTREF(SDL,D:\WIP\System\SystemConfigurations\base_push_wta_wtls_co_sms\sdl\udcp\udcpdialoguehandler_dummy.spr(WAITSTART),6983(35,35),1)
------*/
  case 0:
    BEGIN_START_TRANSITION
    XAT_FIRST_SYMBOL(0, 8125)
    yAssF_SDL_Natural(yVarP->z621_UDCP_Ready,
      yTstA_SDL_Natural(SDL_INTEGER_LIT(6)), XASS);
    yAssF_SDL_Integer(yVarP->z622_Cmicrocompil, SDL_INTEGER_LIT(0), XASS);
    xDef_SDL_Octet_String(&yVarP->z623_UDCPdata);
    yDef_DeviceAddress(&yVarP->z624_WAPgwAddress);
    xDef_SDL_Octet(&yVarP->z625_formatOfWapAddress);
    yDef_AuxiliaryAddress(&yVarP->z626_USSDAddress);
    xDef_SDL_Boolean(&yVarP->z627_MoreMessagesToCome);
    xDef_SDL_Octet(&yVarP->z628_ReleaseCode);
    xDef_SDL_Integer(&yVarP->z629_USSDstringLength);
    xDef_SDL_Octet_String(&yVarP->z62A_USSDstring);
    xDef_SDL_Octet(&yVarP->z62B_ErrorReason);
    xDef_SDL_Boolean(&yVarP->z62C_DialogueKept);
    XBETWEEN_SYMBOLS(3, 8128, 175)

/*-----
* NEXTSTATE IDLE
* #SDTREF(SDL,D:\WIP\System\SystemConfigurations\base_push_wta_wtls_co_sms\sdl\udcp\udcpdialoguehandler_dummy.spr(WAITSTART),6986(35,50),1)
------*/
    XAT_LAST_SYMBOL
    SDL_NEXTSTATE(IDLE, z620_IDLE, "IDLE")

/*-----
* INPUT UDCPReleaseReq
* #SDTREF(SDL,D:\WIP\System\SystemConfigurations\base_push_wta_wtls_co_sms\sdl\udcp\udcpdialoguehandler_dummy.spr(IDLE),6848(125,30),1)
------*/
  case 1:
    XDEBUG_LABEL(IDLE_UDCPReleaseReq)
    XAT_FIRST_SYMBOL(1, 8126)
    XOS_TRACE_INPUT("UDCPReleaseReq")
    yAssF_SDL_Octet(yVarP->z628_ReleaseCode,
      ((yPDef_z_WDP_UDCP_1_UDCPReleaseReq *)ySVarP)->Param1, XASS);
    XBETWEEN_SYMBOLS(4, 8129, 194)

/*-----
* NEXTSTATE -
* #SDTREF(SDL,D:\WIP\System\SystemConfigurations\base_push_wta_wtls_co_sms\sdl\udcp\udcpdialoguehandler_dummy.spr(IDLE),6857(125,80),1)
------*/
    XAT_LAST_SYMBOL
    SDL_DASH_NEXTSTATE

/*-----
* INPUT UDCPDataReq
* #SDTREF(SDL,D:\WIP\System\SystemConfigurations\base_push_wta_wtls_co_sms\sdl\udcp\udcpdialoguehandler_dummy.spr(IDLE),6791(35,35),1)
------*/
  case 2:
    XDEBUG_LABEL(IDLE_UDCPDataReq)
    XAT_FIRST_SYMBOL(2, 8127)
    XOS_TRACE_INPUT("UDCPDataReq")
    yAssF_SDL_Octet_String(yVarP->z623_UDCPdata,
      ((yPDef_z_WDP_UDCP_0_UDCPDataReq *)ySVarP)->Param1, XASS);
    yAssF_DeviceAddress(yVarP->z624_WAPgwAddress,
      ((yPDef_z_WDP_UDCP_0_UDCPDataReq *)ySVarP)->Param2, XASS);
    yAssF_SDL_Octet(yVarP->z625_formatOfWapAddress,
      ((yPDef_z_WDP_UDCP_0_UDCPDataReq *)ySVarP)->Param3, XASS);
    yAssF_AuxiliaryAddress(yVarP->z626_USSDAddress,
      ((yPDef_z_WDP_UDCP_0_UDCPDataReq *)ySVarP)->Param4, XASS);
    yAssF_SDL_Boolean(yVarP->z627_MoreMessagesToCome,
      ((yPDef_z_WDP_UDCP_0_UDCPDataReq *)ySVarP)->Param5, XASS);
    XBETWEEN_SYMBOLS(5, 8130, 221)

/*-----
* NEXTSTATE -
* #SDTREF(SDL,D:\WIP\System\SystemConfigurations\base_push_wta_wtls_co_sms\sdl\udcp\udcpdialoguehandler_dummy.spr(IDLE),6809(35,70),1)
------*/
    XAT_LAST_SYMBOL
    SDL_DASH_NEXTSTATE
  }
  END_PAD(yPAD_z62_UDCPDialogueHandler)
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -