📄 wdp.c
字号:
XBETWEEN_SYMBOLS(86, 5447, 1453)
/*-----
* TASK Free buffer
* #SDTREF(SDL,D:\WIP\Maintenance\4.x\System\SystemConfigurations\base_co\sdl\wdp\wdphandler.spr(5),2408(115,190),1)
------*/
#ifdef XTRACE
xTraceTask("Free buffer");
#endif
OSConnectorFree (yVarP->z467_UDPData);
XBETWEEN_SYMBOLS(87, 5448, 1464)
/*-----
* NEXTSTATE -
* #SDTREF(SDL,D:\WIP\Maintenance\4.x\System\SystemConfigurations\base_co\sdl\wdp\wdphandler.spr(5),1358(115,210),1)
------*/
XAT_LAST_SYMBOL
SDL_DASH_NEXTSTATE
} else {
#ifdef XTRACE
xTraceDecision("FALSE");
#endif
XBETWEEN_SYMBOLS(64, 5425, 1476)
/*-----
* TASK Free buffer
* #SDTREF(SDL,D:\WIP\Maintenance\4.x\System\SystemConfigurations\base_co\sdl\wdp\wdphandler.spr(5),3404(135,120),1)
------*/
#ifdef XTRACE
xTraceTask("Free buffer");
#endif
OSConnectorFree (yVarP->z467_UDPData);
XBETWEEN_SYMBOLS(65, 5426, 1487)
/*-----
* NEXTSTATE -
* #SDTREF(SDL,D:\WIP\Maintenance\4.x\System\SystemConfigurations\base_co\sdl\wdp\wdphandler.spr(5),3416(135,135),1)
------*/
XAT_LAST_SYMBOL
SDL_DASH_NEXTSTATE
}
}
END_PAD(yPAD_z46_WDPhandler)
}
/*****
* PROCESS WDPmanagement
* <<SYSTEM WAP/BLOCK WDP>>
* #SDTREF(SDL,D:\WIP\Maintenance\4.x\System\SystemConfigurations\base_co\sdl\wdp\wdpmanagement.spr,4,1)
******/
/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
** Tables for process WDPmanagement
** #SDTREF(SDL,D:\WIP\Maintenance\4.x\System\SystemConfigurations\base_co\sdl\wdp\wdpmanagement.spr,4,1)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
/*--------------Instance Data---------------*/
#define X_MAX_INST_z47_WDPmanagement 1
static yVDef_z47_WDPmanagement *yINSTD_z47_WDPmanagement[X_MAX_INST_z47_WDPmanagement];
/*--------------Process State---------------*/
static xSTATE yPSTATETBL_z47_WDPmanagement[X_MAX_INST_z47_WDPmanagement] = {
XSTARTUP
};
/*---------------State Index----------------*/
static XCONST xSITBL xSTATE_INDEX_z47_WDPmanagement[9] = {0, 2, 5, 7, 8, 9, 12,
14, 15};
/*---------------Transition-----------------*/
#define XMAX_TRANS_z47_WDPmanagement 15
static XCONST xTR_TABLE_ENTRY yTRTBL_z47_WDPmanagement[XMAX_TRANS_z47_WDPmanagement] = {
/* AwaitStartWDP */
XMK_B z_StackMgr_7_StartWDP, 2 XMK_E,
XMK_B z_StackMgr_F_TerminateWDP, 1 XMK_E
/* AwaitReady */,
XMK_B z_WDPpckg_9_WDPhReady, XSAVEID XMK_E,
XMK_B z_WDPpckg_A_SegmentationReady, 3 XMK_E,
XMK_B z_WDPpckg_B_ReassembleReady, XSAVEID XMK_E
/* AwaitWDPhReady */,
XMK_B z_WDPpckg_9_WDPhReady, 4 XMK_E,
XMK_B z_WDPpckg_B_ReassembleReady, XSAVEID XMK_E
/* AwaitReassembleReady */,
XMK_B z_WDPpckg_B_ReassembleReady, 5 XMK_E
/* idle */,
XMK_B z_StackMgr_F_TerminateWDP, 6 XMK_E
/* AwaitTerminated */,
XMK_B z_WDPpckg_6_WDPhTerminated, XSAVEID XMK_E,
XMK_B z_WDPpckg_7_ReassembleTerminated, XSAVEID XMK_E,
XMK_B z_WDPpckg_8_SegmentationTerminated, 7 XMK_E
/* AwaitWDPhTerminated */,
XMK_B z_WDPpckg_6_WDPhTerminated, 8 XMK_E,
XMK_B z_WDPpckg_7_ReassembleTerminated, XSAVEID XMK_E
/* AwaitReassembleTerminated */,
XMK_B z_WDPpckg_7_ReassembleTerminated, 9 XMK_E
};
/*-----------Process-PID-Values-------------*/
#ifdef XMK_USE_PID_ADDRESSING
static xPIDTable yPID_TBL_z47_WDPmanagement[X_MAX_INST_z47_WDPmanagement];
#endif
/*-----------Process Description------------*/
#define X_PRIO_z47_WDPmanagement xDefaultPrioProcess
XCONST XPDTBL yPDTBL_z47_WDPmanagement = {
#ifdef XMK_USE_PID_ADDRESSING
yPID_TBL_z47_WDPmanagement,
#endif
(xINSTD *)yINSTD_z47_WDPmanagement,
sizeof(yVDef_z47_WDPmanagement),
X_MAX_INST_z47_WDPmanagement,
#ifdef XMK_USE_TIMESLICE
X_TIMESLICE_z47_WDPmanagement,
#endif
#ifdef XMK_USE_PREEMPTIVE
X_PRIO_z47_WDPmanagement,
#endif
(xmk_T_TRANS_ADDRESS) yPAD_z47_WDPmanagement,
yTRTBL_z47_WDPmanagement,
xSTATE_INDEX_z47_WDPmanagement,
yPSTATETBL_z47_WDPmanagement
};
/*+++++
* Function for process WDPmanagement
* #SDTREF(SDL,D:\WIP\Maintenance\4.x\System\SystemConfigurations\base_co\sdl\wdp\wdpmanagement.spr,4,1)
++++++*/
YPAD_FUNCTION(yPAD_z47_WDPmanagement)
{
YPAD_YSVARP
/* INTEGRATION: commented out statement */
/* YPAD_YVARP(yVDef_z47_WDPmanagement) */
YPAD_TEMP_VARS
YPRSNAME_VAR("WDPmanagement")
BEGIN_PAD
switch (XSYMBOLNUMBER) {
/*-----
* START
* #SDTREF(SDL,D:\WIP\Maintenance\4.x\System\SystemConfigurations\base_co\sdl\wdp\wdpmanagement.spr(Startup),197(30,25),1)
------*/
case 0:
BEGIN_START_TRANSITION
XAT_FIRST_SYMBOL(0, 5449)
XBETWEEN_SYMBOLS(10, 5459, 1607)
/*-----
* NEXTSTATE AwaitStartWDP
* #SDTREF(SDL,D:\WIP\Maintenance\4.x\System\SystemConfigurations\base_co\sdl\wdp\wdpmanagement.spr(Startup),611(30,40),1)
------*/
XAT_LAST_SYMBOL
SDL_NEXTSTATE(AwaitStartWDP, z470_AwaitStartWDP, "AwaitStartWDP")
/*-----
* INPUT TerminateWDP
* #SDTREF(SDL,D:\WIP\Maintenance\4.x\System\SystemConfigurations\base_co\sdl\wdp\wdpmanagement.spr(Startup),1652(105,40),1)
------*/
case 1:
XDEBUG_LABEL(AwaitStartWDP_TerminateWDP)
XAT_FIRST_SYMBOL(1, 5450)
XOS_TRACE_INPUT("TerminateWDP")
XBETWEEN_SYMBOLS(11, 5460, 1624)
/*-----
* OUTPUT Ready
* #SDTREF(SDL,D:\WIP\Maintenance\4.x\System\SystemConfigurations\base_co\sdl\wdp\wdpmanagement.spr(Startup),1655(105,55),1)
------*/
ALLOC_SIGNAL_PAR(Ready, z_StackMgr_9_Ready, yPDef_z_StackMgr_9_Ready)
yAssF_SDL_Natural(((yPDef_z_StackMgr_9_Ready *)OUTSIGNAL_DATA_PTR)->Param1,
yTstA_SDL_Natural(SDL_INTEGER_LIT(5)), XASSPARA);
SDL_OUTP_PAR(xDefaultPrioSignal, Ready, z_StackMgr_9_Ready,
TO_PROCESS(StackCtrl, z16_StackCtrl), yPDef_z_StackMgr_9_Ready, "Ready")
XBETWEEN_SYMBOLS(12, 5461, 1635)
/*-----
* NEXTSTATE -
* #SDTREF(SDL,D:\WIP\Maintenance\4.x\System\SystemConfigurations\base_co\sdl\wdp\wdpmanagement.spr(Startup),1658(105,70),1)
------*/
XAT_LAST_SYMBOL
SDL_DASH_NEXTSTATE
/*-----
* INPUT StartWDP
* #SDTREF(SDL,D:\WIP\Maintenance\4.x\System\SystemConfigurations\base_co\sdl\wdp\managementstart.smc(1),251(80,25),1)
------*/
case 2:
XDEBUG_LABEL(AwaitStartWDP_StartWDP)
XAT_FIRST_SYMBOL(2, 5451)
XOS_TRACE_INPUT("StartWDP")
XBETWEEN_SYMBOLS(13, 5462, 1652)
/*-----
* OUTPUT StartWDPh
* #SDTREF(SDL,D:\WIP\Maintenance\4.x\System\SystemConfigurations\base_co\sdl\wdp\managementstart.smc(1),254(80,40),1)
------*/
ALLOC_SIGNAL_NPAR(StartWDPh, z_WDPpckg_0_StartWDPh, XSIGNALHEADERTYPE)
SDL_OUTP_NPAR(xDefaultPrioSignal, StartWDPh, z_WDPpckg_0_StartWDPh,
TO_PROCESS(WDPhandler, z46_WDPhandler), 0, "StartWDPh")
XBETWEEN_SYMBOLS(14, 5463, 1661)
/*-----
* NEXTSTATE AwaitReady
* #SDTREF(SDL,D:\WIP\Maintenance\4.x\System\SystemConfigurations\base_co\sdl\wdp\managementstart.smc(1),263(80,85),1)
------*/
XAT_LAST_SYMBOL
SDL_NEXTSTATE(AwaitReady, z471_AwaitReady, "AwaitReady")
/*-----
* INPUT SegmentationReady
* #SDTREF(SDL,D:\WIP\Maintenance\4.x\System\SystemConfigurations\base_co\sdl\wdp\wdpmanagement.spr(Startup),1859(30,100),1)
------*/
case 3:
XDEBUG_LABEL(AwaitReady_SegmentationReady)
XAT_FIRST_SYMBOL(3, 5452)
XOS_TRACE_INPUT("SegmentationReady")
XBETWEEN_SYMBOLS(15, 5464, 1678)
/*-----
* NEXTSTATE AwaitWDPhReady
* #SDTREF(SDL,D:\WIP\Maintenance\4.x\System\SystemConfigurations\base_co\sdl\wdp\wdpmanagement.spr(Startup),1865(30,115),1)
------*/
XAT_LAST_SYMBOL
SDL_NEXTSTATE(AwaitWDPhReady, z472_AwaitWDPhReady, "AwaitWDPhReady")
/*-----
* INPUT WDPhReady
* #SDTREF(SDL,D:\WIP\Maintenance\4.x\System\SystemConfigurations\base_co\sdl\wdp\wdpmanagement.spr(Startup),1691(130,100),1)
------*/
case 4:
XDEBUG_LABEL(AwaitWDPhReady_WDPhReady)
XAT_FIRST_SYMBOL(4, 5453)
XOS_TRACE_INPUT("WDPhReady")
XBETWEEN_SYMBOLS(16, 5465, 1695)
/*-----
* NEXTSTATE AwaitReassembleReady
* #SDTREF(SDL,D:\WIP\Maintenance\4.x\System\SystemConfigurations\base_co\sdl\wdp\wdpmanagement.spr(Startup),1694(130,115),1)
------*/
XAT_LAST_SYMBOL
SDL_NEXTSTATE(AwaitReassembleReady, z473_AwaitReassembleReady,
"AwaitReassembleReady")
/*-----
* INPUT ReassembleReady
* #SDTREF(SDL,D:\WIP\Maintenance\4.x\System\SystemConfigurations\base_co\sdl\wdp\wdpmanagement.spr(Startup),1715(30,145),1)
------*/
case 5:
XDEBUG_LABEL(AwaitReassembleReady_ReassembleReady)
XAT_FIRST_SYMBOL(5, 5454)
XOS_TRACE_INPUT("ReassembleReady")
XBETWEEN_SYMBOLS(17, 5466, 1713)
/*-----
* OUTPUT Ready
* #SDTREF(SDL,D:\WIP\Maintenance\4.x\System\SystemConfigurations\base_co\sdl\wdp\wdpmanagement.spr(Startup),1724(30,160),1)
------*/
ALLOC_SIGNAL_PAR(Ready, z_StackMgr_9_Ready, yPDef_z_StackMgr_9_Ready)
yAssF_SDL_Natural(((yPDef_z_StackMgr_9_Ready *)OUTSIGNAL_DATA_PTR)->Param1,
yTstA_SDL_Natural(SDL_INTEGER_LIT(5)), XASSPARA);
SDL_OUTP_PAR(xDefaultPrioSignal, Ready, z_StackMgr_9_Ready,
TO_PROCESS(StackCtrl, z16_StackCtrl), yPDef_z_StackMgr_9_Ready, "Ready")
XBETWEEN_SYMBOLS(18, 5467, 1724)
/*-----
* NEXTSTATE idle
* #SDTREF(SDL,D:\WIP\Maintenance\4.x\System\SystemConfigurations\base_co\sdl\wdp\wdpmanagement.spr(Startup),1727(30,175),1)
------*/
XAT_LAST_SYMBOL
SDL_NEXTSTATE(idle, z474_idle, "idle")
/*-----
* INPUT TerminateWDP
* #SDTREF(SDL,D:\WIP\Maintenance\4.x\System\SystemConfigurations\base_co\sdl\wdp\wdpmanagement.spr(Termination),818(30,40),1)
------*/
case 6:
XDEBUG_LABEL(idle_TerminateWDP)
XAT_FIRST_SYMBOL(6, 5455)
XOS_TRACE_INPUT("TerminateWDP")
XBETWEEN_SYMBOLS(19, 5468, 1741)
/*-----
* OUTPUT TerminateWDPh
* #SDTREF(SDL,D:\WIP\Maintenance\4.x\System\SystemConfigurations\base_co\sdl\wdp\managementterminate.smc(1),302(80,55),1)
------*/
ALLOC_SIGNAL_NPAR(TerminateWDPh, z_WDPpckg_3_TerminateWDPh,
XSIGNALHEADERTYPE)
SDL_OUTP_NPAR(xDefaultPrioSignal, TerminateWDPh, z_WDPpckg_3_TerminateWDPh,
TO_PROCESS(WDPhandler, z46_WDPhandler), 0, "TerminateWDPh")
XBETWEEN_SYMBOLS(20, 5469, 1751)
/*-----
* NEXTSTATE AwaitTerminated
* #SDTREF(SDL,D:\WIP\Maintenance\4.x\System\SystemConfigurations\base_co\sdl\wdp\wdpmanagement.spr(Termination),830(30,70),1)
------*/
XAT_LAST_SYMBOL
SDL_NEXTSTATE(AwaitTerminated, z475_AwaitTerminated, "AwaitTerminated")
/*-----
* INPUT SegmentationTerminated
* #SDTREF(SDL,D:\WIP\Maintenance\4.x\System\SystemConfigurations\base_co\sdl\wdp\wdpmanagement.spr(Termination),2006(80,40),1)
------*/
case 7:
XDEBUG_LABEL(AwaitTerminated_SegmentationTerminated)
XAT_FIRST_SYMBOL(7, 5456)
XOS_TRACE_INPUT("SegmentationTerminated")
XBETWEEN_SYMBOLS(21, 5470, 1768)
/*-----
* NEXTSTATE AwaitWDPhTerminated
* #SDTREF(SDL,D:\WIP\Maintenance\4.x\System\SystemConfigurations\base_co\sdl\wdp\wdpmanagement.spr(Termination),2009(80,55),1)
------*/
XAT_LAST_SYMBOL
SDL_NEXTSTATE(AwaitWDPhTerminated, z476_AwaitWDPhTerminated,
"AwaitWDPhTerminated")
/*-----
* INPUT WDPhTerminated
* #SDTREF(SDL,D:\WIP\Maintenance\4.x\System\SystemConfigurations\base_co\sdl\wdp\wdpmanagement.spr(Termination),2018(30,115),1)
------*/
case 8:
XDEBUG_LABEL(AwaitWDPhTerminated_WDPhTerminated)
XAT_FIRST_SYMBOL(8, 5457)
XOS_TRACE_INPUT("WDPhTerminated")
XBETWEEN_SYMBOLS(22, 5471, 1786)
/*-----
* NEXTSTATE AwaitReassembleTerminated
* #SDTREF(SDL,D:\WIP\Maintenance\4.x\System\SystemConfigurations\base_co\sdl\wdp\wdpmanagement.spr(Termination),2021(30,130),1)
------*/
XAT_LAST_SYMBOL
SDL_NEXTSTATE(AwaitReassembleTerminated, z477_AwaitReassembleTerminated,
"AwaitReassembleTerminated")
/*-----
* INPUT ReassembleTerminated
* #SDTREF(SDL,D:\WIP\Maintenance\4.x\System\SystemConfigurations\base_co\sdl\wdp\wdpmanagement.spr(Termination),2030(130,115),1)
------*/
case 9:
XDEBUG_LABEL(AwaitReassembleTerminated_ReassembleTerminated)
XAT_FIRST_SYMBOL(9, 5458)
XOS_TRACE_INPUT("ReassembleTerminated")
XBETWEEN_SYMBOLS(23, 5472, 1804)
/*-----
* OUTPUT Ready
* #SDTREF(SDL,D:\WIP\Maintenance\4.x\System\SystemConfigurations\base_co\sdl\wdp\wdpmanagement.spr(Termination),2039(130,130),1)
------*/
ALLOC_SIGNAL_PAR(Ready, z_StackMgr_9_Ready, yPDef_z_StackMgr_9_Ready)
yAssF_SDL_Natural(((yPDef_z_StackMgr_9_Ready *)OUTSIGNAL_DATA_PTR)->Param1,
yTstA_SDL_Natural(SDL_INTEGER_LIT(5)), XASSPARA);
SDL_OUTP_PAR(xDefaultPrioSignal, Ready, z_StackMgr_9_Ready,
TO_PROCESS(StackCtrl, z16_StackCtrl), yPDef_z_StackMgr_9_Ready, "Ready")
XBETWEEN_SYMBOLS(24, 5473, 1815)
/*-----
* NEXTSTATE AwaitStart
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -