28 #include "FwSmDCreate.h" 29 #include "FwSmConfig.h" 36 const FwSmCounterU2_t N_OUT_OF_INACTIVE = 2;
37 const FwSmCounterU2_t N_OUT_OF_DOWN_TRANSFER = 2;
38 const FwSmCounterU2_t N_OUT_OF_UP_TRANSFER = 2;
41 FwSmDesc_t smDesc = FwSmCreate(
50 FwSmSetData(smDesc, smData);
51 FwSmAddState(smDesc, CrPsLpt_INACTIVE, N_OUT_OF_INACTIVE, NULL, NULL, NULL, NULL);
54 FwSmAddTransStaToSta(smDesc, StartUpTransfer, CrPsLpt_INACTIVE, CrPsLpt_UP_TRANSFER, NULL, NULL);
59 FwSmAddTransStaToSta(smDesc, EndUpTransfer, CrPsLpt_UP_TRANSFER, CrPsLpt_INACTIVE, NULL, NULL);
FwSmBool_t CrPsLptIsTransferFinished(FwSmDesc_t smDesc)
Guard on the transition from DOWN_TRANSFER to INACTIVE.
void CrPsLptDownTransferExitAction(FwSmDesc_t smDesc)
Exit Action for the state DOWN_TRANSFER.
FwSmBool_t CrPsLptIsFailed(FwSmDesc_t smDesc)
Guard on the transition from UP_TRANSFER to INACTIVE.
Create one instance of the CrPsLpt state machine.
void CrPsLptUpTransferDoAction(FwSmDesc_t smDesc)
Do Action for the state UP_TRANSFER.
FwSmDesc_t CrPsLptCreate(void *smData)
CrPsLpt function definitions.
void CrPsLptDownTransferEntryAction(FwSmDesc_t smDesc)
Entry Action for the state DOWN_TRANSFER.
void CrPsLptUpTransferExitAction(FwSmDesc_t smDesc)
Exit Action for the state UP_TRANSFER.
void CrPsLptLoadReport(FwSmDesc_t smDesc)
Action on the transition from UP_TRANSFER to INACTIVE.
void CrPsLptInitialization(FwSmDesc_t smDesc)
Action on the transition from Initial State to INACTIVE.
#define CrPsLpt_DOWN_TRANSFER
Make sure to include this header file only once.
void CrPsLptGenerateAbortEvent(FwSmDesc_t smDesc)
Action on the transition from DOWN_TRANSFER to INACTIVE.
void CrPsLptDownTransferDoAction(FwSmDesc_t smDesc)
Do Action for the state DOWN_TRANSFER.
void CrPsLptUpTransferEntryAction(FwSmDesc_t smDesc)
Entry Action for the state UP_TRANSFER.
#define Execute
The identifiers of transition commands (triggers)