CORDET Framework - C2 Implementation

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

Go to the source code of this file.

Macros

#define CrPsCmd3SidStart_N1   (1) /* The identifier of action node N1 in procedure CrPsCmd3SidStart */
 Make sure to include this header file only once. More...
 
#define CrPsCmd3SidStart_N2   (2) /* The identifier of action node N2 in procedure CrPsCmd3SidStart */
 
#define CrPsCmd3SidStart_N3   (3) /* The identifier of action node N3 in procedure CrPsCmd3SidStart */
 
#define CrPsCmd3SidStart_N4   (4) /* The identifier of action node N4 in procedure CrPsCmd3SidStart */
 
#define CrPsCmd3SidStart_N7   (5) /* The identifier of action node N7 in procedure CrPsCmd3SidStart */
 
#define CrPsCmd3SidStart_N8   (6) /* The identifier of action node N8 in procedure CrPsCmd3SidStart */
 

Functions

FwPrDesc_t CrPsCmd3SidStartCreate (void *prData)
 Create a new procedure descriptor. More...
 
void CrPsCmd3SidStartN1 (FwPrDesc_t prDesc)
 Action for node N1. More...
 
void CrPsCmd3SidStartN2 (FwPrDesc_t prDesc)
 Action for node N2. More...
 
void CrPsCmd3SidStartN3 (FwPrDesc_t prDesc)
 Action for node N3. More...
 
void CrPsCmd3SidStartN4 (FwPrDesc_t prDesc)
 Action for node N4. More...
 
void CrPsCmd3SidStartN7 (FwPrDesc_t prDesc)
 Action for node N7. More...
 
void CrPsCmd3SidStartN8 (FwPrDesc_t prDesc)
 Action for node N8. More...
 
FwPrBool_t CrPsCmd3SidStartG1 (FwPrDesc_t prDesc)
 Guard on the Control Flow from DECISION1 to N2. More...
 
FwPrBool_t CrPsCmd3SidStartG1E (FwPrDesc_t prDesc)
 Guard on the Control Flow from DECISION1 to DECISION3. More...
 
FwPrBool_t CrPsCmd3SidStartG2 (FwPrDesc_t prDesc)
 Guard on the Control Flow from DECISION3 to DECISION4. More...
 
FwPrBool_t CrPsCmd3SidStartG2E (FwPrDesc_t prDesc)
 Guard on the Control Flow from DECISION3 to N4. More...
 
FwPrBool_t CrPsCmd3SidStartG3 (FwPrDesc_t prDesc)
 Guard on the Control Flow from DECISION4 to N8. More...
 
FwPrBool_t CrPsCmd3SidStartG3E (FwPrDesc_t prDesc)
 Guard on the Control Flow from DECISION4 to N7. More...
 

Detailed Description

Create one instance of the CrPsCmd3SidStart procedure.

This header file declares the function to create one instance of the CrPsCmd3SidStart 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.

CrPsCmd3SidStart.png
Author
FW Profile code generator version 5.01
Date
Created on: Sep 6 2017 17:17:19
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 CrPsCmd3SidStartCreate.h.

Macro Definition Documentation

#define CrPsCmd3SidStart_N1   (1) /* The identifier of action node N1 in procedure CrPsCmd3SidStart */

Make sure to include this header file only once.

FW Profile function definitions Action node identifiers

Definition at line 43 of file CrPsCmd3SidStartCreate.h.

Function Documentation

FwPrDesc_t CrPsCmd3SidStartCreate ( 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 58 of file CrPsCmd3SidStartCreate.c.

FwPrBool_t CrPsCmd3SidStartG1 ( FwPrDesc_t  prDesc)

Guard on the Control Flow from DECISION1 to N2.

 The i-th SID is not
in the RDL 
Parameters
smDescthe procedure descriptor
Returns
1 if the guard is fulfilled, otherwise 0.

Definition at line 269 of file CrPsCmd3SidStartFunc.c.

FwPrBool_t CrPsCmd3SidStartG1E ( FwPrDesc_t  prDesc)

Guard on the Control Flow from DECISION1 to DECISION3.

Else

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

Guard on the Control Flow from DECISION1 to DECISION3.

FW Profile function definitions CrPsCmd3SidStart function definitions Guard on the Control Flow from DECISION1 to DECISION3.

Definition at line 37 of file CrPsCmd3SidStartCreate.c.

FwPrBool_t CrPsCmd3SidStartG2 ( FwPrDesc_t  prDesc)

Guard on the Control Flow from DECISION3 to DECISION4.

 The i-th SID was the last
SID in the command 
Parameters
smDescthe procedure descriptor
Returns
1 if the guard is fulfilled, otherwise 0.

Definition at line 297 of file CrPsCmd3SidStartFunc.c.

FwPrBool_t CrPsCmd3SidStartG2E ( FwPrDesc_t  prDesc)

Guard on the Control Flow from DECISION3 to N4.

Else

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

Definition at line 44 of file CrPsCmd3SidStartCreate.c.

FwPrBool_t CrPsCmd3SidStartG3 ( FwPrDesc_t  prDesc)

Guard on the Control Flow from DECISION4 to N8.

 All SIDs in the
command are invalid 
Parameters
smDescthe procedure descriptor
Returns
1 if the guard is fulfilled, otherwise 0.

Definition at line 313 of file CrPsCmd3SidStartFunc.c.

FwPrBool_t CrPsCmd3SidStartG3E ( FwPrDesc_t  prDesc)

Guard on the Control Flow from DECISION4 to N7.

Else

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

Definition at line 51 of file CrPsCmd3SidStartCreate.c.

void CrPsCmd3SidStartN1 ( FwPrDesc_t  prDesc)

Action for node N1.

Set i equal to 1

Parameters
smDescthe procedure descriptor

Definition at line 63 of file CrPsCmd3SidStartFunc.c.

void CrPsCmd3SidStartN2 ( FwPrDesc_t  prDesc)

Action for node N2.

Load invalid SID in
data pool item verFailData
Parameters
smDescthe procedure descriptor

Definition at line 135 of file CrPsCmd3SidStartFunc.c.

void CrPsCmd3SidStartN3 ( FwPrDesc_t  prDesc)

Action for node N3.

Run Command Verification
Failure Procedure to generate (1,4) 
report with failure code VER_ILL_SID
Parameters
smDescthe procedure descriptor

Definition at line 147 of file CrPsCmd3SidStartFunc.c.

void CrPsCmd3SidStartN4 ( FwPrDesc_t  prDesc)

Action for node N4.

Increment i

Parameters
smDescthe procedure descriptor

Definition at line 163 of file CrPsCmd3SidStartFunc.c.

void CrPsCmd3SidStartN7 ( FwPrDesc_t  prDesc)

Action for node N7.

Set action
outcome to 'success'
Parameters
smDescthe procedure descriptor

Definition at line 225 of file CrPsCmd3SidStartFunc.c.

void CrPsCmd3SidStartN8 ( FwPrDesc_t  prDesc)

Action for node N8.

Set action outcome to 'failure'
with failure code VER_SID_START_FD
Parameters
smDescthe procedure descriptor

Definition at line 245 of file CrPsCmd3SidStartFunc.c.

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