CORDET Framework - C2 Implementation
|
Create one instance of the CrPsLptUpCmdStart procedure. More...
Go to the source code of this file.
Macros | |
#define | CrPsLptUpCmdStart_N1 (1) /* The identifier of action node N1 in procedure CrPsLptUpCmdStart */ |
Make sure to include this header file only once. More... | |
#define | CrPsLptUpCmdStart_N2 (2) /* The identifier of action node N2 in procedure CrPsLptUpCmdStart */ |
#define | CrPsLptUpCmdStart_N3 (3) /* The identifier of action node N3 in procedure CrPsLptUpCmdStart */ |
#define | CrPsLptUpCmdStart_N4 (4) /* The identifier of action node N4 in procedure CrPsLptUpCmdStart */ |
Functions | |
FwPrDesc_t | CrPsLptUpCmdStartCreate (void *prData) |
Create a new procedure descriptor. More... | |
void | CrPsLptUpCmdStartN1 (FwPrDesc_t prDesc) |
Action for node N1. More... | |
void | CrPsLptUpCmdStartN2 (FwPrDesc_t prDesc) |
Action for node N2. More... | |
void | CrPsLptUpCmdStartN3 (FwPrDesc_t prDesc) |
Action for node N3. More... | |
void | CrPsLptUpCmdStartN4 (FwPrDesc_t prDesc) |
Action for node N4. More... | |
FwPrBool_t | CrPsLptUpCmdStartG1 (FwPrDesc_t prDesc) |
Guard on the Control Flow from DECISION1 to N2. More... | |
FwPrBool_t | CrPsLptUpCmdStartNG2 (FwPrDesc_t prDesc) |
Guard on the Control Flow from DECISION2 to N3. More... | |
Create one instance of the CrPsLptUpCmdStart procedure.
This header file declares the function to create one instance of the CrPsLptUpCmdStart 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.
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 CrPsLptUpCmdStartCreate.h.
#define CrPsLptUpCmdStart_N1 (1) /* The identifier of action node N1 in procedure CrPsLptUpCmdStart */ |
Make sure to include this header file only once.
FW Profile function definitions Action node identifiers
Definition at line 43 of file CrPsLptUpCmdStartCreate.h.
FwPrDesc_t CrPsLptUpCmdStartCreate | ( | void * | prData | ) |
Create a new procedure descriptor.
This interface creates the procedure descriptor dynamically.
prData | the 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). |
Create the procedure
Configure the procedure
Definition at line 62 of file CrPsLptUpCmdStartCreate.c.
FwPrBool_t CrPsLptUpCmdStartG1 | ( | FwPrDesc_t | prDesc | ) |
Guard on the Control Flow from DECISION1 to N2.
LPT State Machine associated to LPT Buffer is not in state UP_TRANSFER
smDesc | the procedure descriptor |
Definition at line 138 of file CrPsLptUpCmdStartFunc.c.
void CrPsLptUpCmdStartN1 | ( | FwPrDesc_t | prDesc | ) |
Action for node N1.
Determine the identifier of the LPT Buffer
smDesc | the procedure descriptor |
Definition at line 58 of file CrPsLptUpCmdStartFunc.c.
void CrPsLptUpCmdStartN2 | ( | FwPrDesc_t | prDesc | ) |
Action for node N2.
Set action outcome to 'Failure'
smDesc | the procedure descriptor |
Definition at line 81 of file CrPsLptUpCmdStartFunc.c.
void CrPsLptUpCmdStartN3 | ( | FwPrDesc_t | prDesc | ) |
Action for node N3.
Set lptFailCode to PART_NMB_ERR
smDesc | the procedure descriptor |
Definition at line 100 of file CrPsLptUpCmdStartFunc.c.
void CrPsLptUpCmdStartN4 | ( | FwPrDesc_t | prDesc | ) |
Action for node N4.
Set action outcome to 'Success'
smDesc | the procedure descriptor |
Definition at line 115 of file CrPsLptUpCmdStartFunc.c.
FwPrBool_t CrPsLptUpCmdStartNG2 | ( | FwPrDesc_t | prDesc | ) |
Guard on the Control Flow from DECISION2 to N3.
Flag_1
smDesc | the procedure descriptor |
Definition at line 158 of file CrPsLptUpCmdStartFunc.c.