CORDET Framework - C2 Implementation
cordetfw-examples/src/CrConfigDemoSlave2/CrFwRepErr.c File Reference

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

Go to the source code of this file.

Functions

void CrFwRepErr (CrFwRepErrCode_t errCode, CrFwTypeId_t typeId, CrFwInstanceId_t instanceId)
 Report an error which has no parameters attached to it. More...
 
void CrFwRepErrDestSrc (CrFwRepErrCode_t errCode, CrFwTypeId_t typeId, CrFwInstanceId_t instanceId, CrFwDestSrc_t destSrc)
 Report an error which has one single parameter attached to it representing a command or report destination or source. More...
 
void CrFwRepErrInstanceIdAndDest (CrFwRepErrCode_t errCode, CrFwTypeId_t typeId, CrFwInstanceId_t instanceId, CrFwInstanceId_t secondaryInstanceId, CrFwDestSrc_t dest)
 
void CrFwRepErrSeqCnt (CrFwRepErrCode_t errCode, CrFwTypeId_t typeId, CrFwInstanceId_t instanceId, CrFwSeqCnt_t expSeqCnt, CrFwSeqCnt_t actSeqCnt)
 
void CrFwRepErrGroup (CrFwRepErrCode_t errCode, CrFwTypeId_t typeId, CrFwInstanceId_t instanceId, CrFwGroup_t group)
 Report an error which has one single parameter attached to it representing a command or report group. More...
 
void CrFwRepErrInstanceIdAndOutcome (CrFwRepErrCode_t errCode, CrFwTypeId_t typeId, CrFwInstanceId_t instanceId, CrFwInstanceId_t secondaryInstanceId, CrFwOutcome_t outcome)
 Report an error which has two parameters attached to it representing the instance identifier of a component other than the originator of the error report (the secondary instance identifier) and the outcome field of a component's data. More...
 
void CrFwRepErrPckt (CrFwRepErrCode_t errCode, CrFwTypeId_t typeId, CrFwInstanceId_t instanceId, CrFwPckt_t pckt)
 Report an error which has one parameter attached to it representing a command or report packet. More...
 
void CrFwRepErrRep (CrFwRepErrCode_t errCode, CrFwTypeId_t typeId, CrFwInstanceId_t instanceId, FwSmDesc_t rep)
 Report an error which has one parameter attached to it representing an report component. More...
 
void CrFwRepErrCmd (CrFwRepErrCode_t errCode, CrFwTypeId_t typeId, CrFwInstanceId_t instanceId, FwSmDesc_t cmd)
 Report an error which has one parameter attached to it representing a command component. More...
 
void CrFwRepErrKind (CrFwRepErrCode_t errCode, CrFwTypeId_t typeId, CrFwInstanceId_t instanceId, CrFwServType_t servType, CrFwServSubType_t servSubType, CrFwDiscriminant_t disc)
 Report an error which has three parameters attached to it representing the kind of a report or command as given by the triplet [type, sub-type, discriminant]. More...
 

Detailed Description

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

This implementation writes the error 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/CrConfigDemoSlave2/CrFwRepErr.c.

Function Documentation

void CrFwRepErr ( CrFwRepErrCode_t  errCode,
CrFwTypeId_t  typeId,
CrFwInstanceId_t  instanceId 
)

Report an error which has no parameters attached to it.

This function generate an error report without error parameters.

Parameters
errCodethe error code
instanceIdthe instance identifier of the component which raises the error report
typeIdthe type identifier of the component which raises the error report

Definition at line 29 of file cordetfw-examples/src/CrConfigDemoSlave2/CrFwRepErr.c.

void CrFwRepErrCmd ( CrFwRepErrCode_t  errCode,
CrFwTypeId_t  typeId,
CrFwInstanceId_t  instanceId,
FwSmDesc_t  cmd 
)

Report an error which has one parameter attached to it representing a command component.

This function generate an error report with one parameter.

Parameters
errCodethe error code
instanceIdthe instance identifier of the component which raises the error report
typeIdthe type identifier of the component which raises the error report
cmda component holding a command

Definition at line 83 of file cordetfw-examples/src/CrConfigDemoSlave2/CrFwRepErr.c.

void CrFwRepErrDestSrc ( CrFwRepErrCode_t  errCode,
CrFwTypeId_t  typeId,
CrFwInstanceId_t  instanceId,
CrFwDestSrc_t  destSrc 
)

Report an error which has one single parameter attached to it representing a command or report destination or source.

This function generate an error report with one parameter.

Parameters
errCodethe error code
instanceIdthe instance identifier of the component which raises the error report
typeIdthe type identifier of the component which raises the error report
destSrcthe invalid destination or source

Definition at line 34 of file cordetfw-examples/src/CrConfigDemoSlave2/CrFwRepErr.c.

void CrFwRepErrGroup ( CrFwRepErrCode_t  errCode,
CrFwTypeId_t  typeId,
CrFwInstanceId_t  instanceId,
CrFwGroup_t  group 
)

Report an error which has one single parameter attached to it representing a command or report group.

This function generate an error report with one parameter.

Parameters
errCodethe error code
instanceIdthe instance identifier of the component which raises the error report
typeIdthe type identifier of the component which raises the error report
groupthe invalid group

Definition at line 55 of file cordetfw-examples/src/CrConfigDemoSlave2/CrFwRepErr.c.

void CrFwRepErrInstanceIdAndOutcome ( CrFwRepErrCode_t  errCode,
CrFwTypeId_t  typeId,
CrFwInstanceId_t  instanceId,
CrFwInstanceId_t  secondaryInstanceId,
CrFwOutcome_t  outcome 
)

Report an error which has two parameters attached to it representing the instance identifier of a component other than the originator of the error report (the secondary instance identifier) and the outcome field of a component's data.

This function generate an error report with two parameters.

Parameters
errCodethe error code
instanceIdthe instance identifier of the component which raises the error report
typeIdthe type identifier of the component which raises the error report
secondaryInstanceIdinstance identifier of a component other than the originator of the error report
outcomeoutcome field of a component's data

Definition at line 63 of file cordetfw-examples/src/CrConfigDemoSlave2/CrFwRepErr.c.

void CrFwRepErrKind ( CrFwRepErrCode_t  errCode,
CrFwTypeId_t  typeId,
CrFwInstanceId_t  instanceId,
CrFwServType_t  servType,
CrFwServSubType_t  servSubType,
CrFwDiscriminant_t  disc 
)

Report an error which has three parameters attached to it representing the kind of a report or command as given by the triplet [type, sub-type, discriminant].

This function generate an error report with three parameters.

Parameters
errCodethe error code
instanceIdthe instance identifier of the component which raises the error report
typeIdthe type identifier of the component which raises the error report
servTypethe report or command type
servSubTypethe report or command sub-type
discthe report or command discriminant

Definition at line 89 of file cordetfw-examples/src/CrConfigDemoSlave2/CrFwRepErr.c.

void CrFwRepErrPckt ( CrFwRepErrCode_t  errCode,
CrFwTypeId_t  typeId,
CrFwInstanceId_t  instanceId,
CrFwPckt_t  pckt 
)

Report an error which has one parameter attached to it representing a command or report packet.

This function generate an error report with one parameter.

Parameters
errCodethe error code
instanceIdthe instance identifier of the component which raises the error report
typeIdthe type identifier of the component which raises the error report
pckta packet holding a command or report (this is a pointer which is only guaranteed valid during the function execution)

Definition at line 70 of file cordetfw-examples/src/CrConfigDemoSlave2/CrFwRepErr.c.

void CrFwRepErrRep ( CrFwRepErrCode_t  errCode,
CrFwTypeId_t  typeId,
CrFwInstanceId_t  instanceId,
FwSmDesc_t  rep 
)

Report an error which has one parameter attached to it representing an report component.

This function generate an error report with one parameter.

Parameters
errCodethe error code
instanceIdthe instance identifier of the component which raises the error report
typeIdthe type identifier of the component which raises the error report
repa component holding a report

Definition at line 77 of file cordetfw-examples/src/CrConfigDemoSlave2/CrFwRepErr.c.

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