CORDET Framework - C2 Implementation
|
Implementation of the error reporting interface of CrFwRepErr.h
for the Slave 1 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... | |
Implementation of the error reporting interface of CrFwRepErr.h
for the Slave 1 Application of the CORDET Demo.
This implementation writes the InCommand Outcome Reports to standard output.
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/CrConfigDemoSlave1/CrFwRepInCmdOutcome.c.
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.
outcome | the outcome of the InCommand processing |
instanceId | the instance identifier of the InCommand |
servType | the service type of the InCommand |
servSubType | the service sub-type of the InCommand |
disc | the discriminant of the InCommand |
failCode | the failure code (don't care in case of a "successful" outcome) |
inCmd | the InCommand component whose outcome is being reported |
Definition at line 30 of file cordetfw-examples/src/CrConfigDemoSlave1/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.
outcome | the outcome of the packet processing (always equal to crCmdAckCreFail in this version of the framework) |
failCode | the failure code |
pckt | the packet carrying the InCommand |
Definition at line 64 of file cordetfw-examples/src/CrConfigDemoSlave1/CrFwRepInCmdOutcome.c.