CORDET Framework - C2 Implementation
CrPsPcktReroutingFailCreate.h File Reference

Create one instance of the CrPsPcktReroutingFail procedure. More...

Go to the source code of this file.

Macros

#define CrPsPcktReroutingFail_N1   (1) /* The identifier of action node N1 in procedure CrPsPcktReroutingFail */
 Make sure to include this header file only once. More...
 
#define CrPsPcktReroutingFail_N2   (2) /* The identifier of action node N2 in procedure CrPsPcktReroutingFail */
 
#define CrPsPcktReroutingFail_N3   (3) /* The identifier of action node N3 in procedure CrPsPcktReroutingFail */
 
#define CrPsPcktReroutingFail_N4   (4) /* The identifier of action node N4 in procedure CrPsPcktReroutingFail */
 
#define CrPsPcktReroutingFail_N5   (5) /* The identifier of action node N5 in procedure CrPsPcktReroutingFail */
 
#define CrPsPcktReroutingFail_N6   (6) /* The identifier of action node N6 in procedure CrPsPcktReroutingFail */
 

Functions

FwPrDesc_t CrPsPcktReroutingFailCreate (void *prData)
 Create a new procedure descriptor. More...
 
void CrPsPcktReroutingFailN1 (FwPrDesc_t prDesc)
 Action for node N1. More...
 
void CrPsPcktReroutingFailN2 (FwPrDesc_t prDesc)
 Action for node N2. More...
 
void CrPsPcktReroutingFailN3 (FwPrDesc_t prDesc)
 Action for node N3. More...
 
void CrPsPcktReroutingFailN4 (FwPrDesc_t prDesc)
 Action for node N4. More...
 
void CrPsPcktReroutingFailN5 (FwPrDesc_t prDesc)
 Action for node N5. More...
 
void CrPsPcktReroutingFailN6 (FwPrDesc_t prDesc)
 Action for node N6. More...
 
FwPrBool_t CrPsPcktReroutingFailG1 (FwPrDesc_t prDesc)
 Guard on the Control Flow from DECISION1 to N1. More...
 
FwPrBool_t CrPsPcktReroutingFailG1E (FwPrDesc_t prDesc)
 Guard on the Control Flow from DECISION1 to N2. More...
 
FwPrBool_t CrPsPcktReroutingFailG2 (FwPrDesc_t prDesc)
 Guard on the Control Flow from DECISION2 to N3. More...
 

Detailed Description

Create one instance of the CrPsPcktReroutingFail procedure.

This header file declares the function to create one instance of the CrPsPcktReroutingFail procedure. The procedure is configured with a set of function pointers representing the non-default actions and guards of the procedure. Some of these functions may also be declared in this header file in accordance with the configuration of the procedure in the FW Profile Editor. In the latter case, the user has to provide an implementation for these functions in a user-supplied body file.

This header file has been automatically generated by the FW Profile Editor. The procedure created by this file is shown in the figure below.

CrPsPcktReroutingFail.png
Author
FW Profile code generator version 5.01
Date
Created on: Jul 11 2017 18:26:2
Author
Christian Reimers chris.nosp@m.tian.nosp@m..reim.nosp@m.ers@.nosp@m.univi.nosp@m.e.ac.nosp@m..at
Markus Rockenbauer marku.nosp@m.s.ro.nosp@m.ckenb.nosp@m.auer.nosp@m.@univ.nosp@m.ie.a.nosp@m.c.at

last modification: 22.01.2018

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.

Definition in file CrPsPcktReroutingFailCreate.h.

Macro Definition Documentation

#define CrPsPcktReroutingFail_N1   (1) /* The identifier of action node N1 in procedure CrPsPcktReroutingFail */

Make sure to include this header file only once.

FW Profile function definitions Action node identifiers

Definition at line 43 of file CrPsPcktReroutingFailCreate.h.

Function Documentation

FwPrDesc_t CrPsPcktReroutingFailCreate ( void *  prData)

Create a new procedure descriptor.

This interface creates the procedure descriptor dynamically.

Parameters
prDatathe pointer to the procedure data. A value of NULL is legal (note that the default value of the pointer to the procedure data when the procedure is created is NULL).
Returns
the pointer to the procedure descriptor

Create the procedure

Configure the procedure

Definition at line 44 of file CrPsPcktReroutingFailCreate.c.

FwPrBool_t CrPsPcktReroutingFailG1 ( FwPrDesc_t  prDesc)

Guard on the Control Flow from DECISION1 to N1.

Packet encapsulates a report

Parameters
smDescthe procedure descriptor
Returns
1 if the guard is fulfilled, otherwise 0.

Definition at line 223 of file CrPsPcktReroutingFailFunc.c.

FwPrBool_t CrPsPcktReroutingFailG1E ( FwPrDesc_t  prDesc)

Guard on the Control Flow from DECISION1 to N2.

Packet encapsulates a command

Parameters
smDescthe procedure descriptor
Returns
1 if the guard is fulfilled, otherwise 0.

Definition at line 245 of file CrPsPcktReroutingFailFunc.c.

FwPrBool_t CrPsPcktReroutingFailG2 ( FwPrDesc_t  prDesc)

Guard on the Control Flow from DECISION2 to N3.

 OutFactory fails to
generate OutComponent 
Parameters
smDescthe procedure descriptor
Returns
1 if the guard is fulfilled, otherwise 0.

Definition at line 267 of file CrPsPcktReroutingFailFunc.c.

void CrPsPcktReroutingFailN1 ( FwPrDesc_t  prDesc)

Action for node N1.

Generate error report 
INLOADER_INV_DEST
Parameters
smDescthe procedure descriptor

Definition at line 59 of file CrPsPcktReroutingFailFunc.c.

void CrPsPcktReroutingFailN2 ( FwPrDesc_t  prDesc)

Action for node N2.

Retrieve an OutComponent
of type (1,10) from the OutFactory
Parameters
smDescthe procedure descriptor

Definition at line 87 of file CrPsPcktReroutingFailFunc.c.

void CrPsPcktReroutingFailN3 ( FwPrDesc_t  prDesc)

Action for node N3.

Generate error report
OUTFACTORY_FAIL
Parameters
smDescthe procedure descriptor

Definition at line 101 of file CrPsPcktReroutingFailFunc.c.

void CrPsPcktReroutingFailN4 ( FwPrDesc_t  prDesc)

Action for node N4.

Configure report (1,10)
and load it in the OutLoader
Parameters
smDescthe procedure descriptor

Definition at line 117 of file CrPsPcktReroutingFailFunc.c.

void CrPsPcktReroutingFailN5 ( FwPrDesc_t  prDesc)

Action for node N5.

Increment data pool
variable nOfReroutingFailed
Parameters
smDescthe procedure descriptor

Definition at line 170 of file CrPsPcktReroutingFailFunc.c.

void CrPsPcktReroutingFailN6 ( FwPrDesc_t  prDesc)

Action for node N6.

Update data pool variables
pcktIdRerouting, invDestRerouting
Parameters
smDescthe procedure descriptor

Definition at line 187 of file CrPsPcktReroutingFailFunc.c.

P&P Software GmbH, Copyright 2012-2013, All Rights Reserved