CORDET Framework - C2 Implementation
cordetfw-examples/src/CrConfigDemoMaster/CrFwRepInCmdOutcome.c File Reference

Implementation of the error reporting interface of CrFwRepErr.h for the Master Application of the CORDET Demo. More...

Go to the source code of this file.

Functions

void CrFwRepInCmdOutcome (CrFwRepInCmdOutcome_t outcome, CrFwInstanceId_t instanceId, CrFwServType_t servType, CrFwServSubType_t servSubType, CrFwDiscriminant_t disc, CrFwOutcome_t failCode, FwSmDesc_t inCmd)
 Report the outcome of the processing of an InCommand. More...
 
void CrFwRepInCmdOutcomeCreFail (CrFwRepInCmdOutcome_t outcome, CrFwOutcome_t failCode, CrFwPckt_t pckt)
 Report the a "creation failure" outcome for the processing of a packet carrying an InCommand. More...
 

Detailed Description

Implementation of the error reporting interface of CrFwRepErr.h for the Master Application of the CORDET Demo.

This implementation writes the InCommand Outcome Reports to standard output.

Author
Vaclav Cechticky vacla.nosp@m.v.ce.nosp@m.chtic.nosp@m.ky@p.nosp@m.np-so.nosp@m.ftwa.nosp@m.re.co.nosp@m.m
Alessandro Pasetti paset.nosp@m.ti@p.nosp@m.np-so.nosp@m.ftwa.nosp@m.re.co.nosp@m.m

This file is part of the CORDET Framework.

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/.

For information on alternative licensing, please contact P&P Software GmbH.

Definition in file cordetfw-examples/src/CrConfigDemoMaster/CrFwRepInCmdOutcome.c.

Function Documentation

void CrFwRepInCmdOutcome ( CrFwRepInCmdOutcome_t  outcome,
CrFwInstanceId_t  instanceId,
CrFwServType_t  servType,
CrFwServSubType_t  servSubType,
CrFwDiscriminant_t  disc,
CrFwOutcome_t  failCode,
FwSmDesc_t  inCmd 
)

Report the outcome of the processing of an InCommand.

The last parameter of this function is the InCommand whose outcome is being reported. This is a pointer variable. The owner of the pointer is the caller of the function. The function can use it in read-only mode to access the values of the command parameters.

Parameters
outcomethe outcome of the InCommand processing
instanceIdthe instance identifier of the InCommand
servTypethe service type of the InCommand
servSubTypethe service sub-type of the InCommand
discthe discriminant of the InCommand
failCodethe failure code (don't care in case of a "successful" outcome)
inCmdthe InCommand component whose outcome is being reported

Definition at line 30 of file cordetfw-examples/src/CrConfigDemoMaster/CrFwRepInCmdOutcome.c.

void CrFwRepInCmdOutcomeCreFail ( CrFwRepInCmdOutcome_t  outcome,
CrFwOutcome_t  failCode,
CrFwPckt_t  pckt 
)

Report the a "creation failure" outcome for the processing of a packet carrying an InCommand.

The "creation failure" outcome is declared when a packet carrying an InCommand is received but it is not possible to create an InCommand component to encapsulate it. The failure to create the InCommand may be due either to a lack of resources in the application or to the fact that the command kind as given by its [type, sub-type, discriminant] is illegal. The last parameter of this function is the packet which carries the incoming command for which no InCommand component could be created. This is a pointer variable. The owner of the pointer is the caller of the function. The function can use it in read-only mode to access the values of the command parameters.

Parameters
outcomethe outcome of the packet processing (always equal to crCmdAckCreFail in this version of the framework)
failCodethe failure code
pcktthe packet carrying the InCommand

Definition at line 39 of file cordetfw-examples/src/CrConfigDemoMaster/CrFwRepInCmdOutcome.c.

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