CORDET Framework - C2 Implementation
CrDemoMaster/CrDaOutCmpTempViolation.c
Go to the documentation of this file.
1 
19 #include <stdlib.h>
20 #include "CrDaConstants.h"
21 /* Include configuration files */
22 #include "CrFwCmpData.h"
23 /* Include framework files */
24 #include "CrFwConstants.h"
25 #include "OutCmp/CrFwOutCmp.h"
26 #include "BaseCmp/CrFwBaseCmp.h"
27 #include "BaseCmp/CrFwInitProc.h"
28 #include "BaseCmp/CrFwResetProc.h"
31 #include "Pckt/CrFwPckt.h"
32 /* Include FW Profile files */
33 #include "FwPrConfig.h"
34 #include "FwPrDCreate.h"
35 #include "FwSmConfig.h"
36 #include "FwSmDCreate.h"
37 #include "FwPrCore.h"
38 
40 static char limitViolatingTemp = 0;
41 
42 /*-----------------------------------------------------------------------------------------*/
43 void CrDaOutCmpTempViolationSerialize(FwSmDesc_t smDesc) {
44  char* pcktPar = CrFwOutCmpGetParStart(smDesc);
45  CrFwOutCmpDefSerialize(smDesc);
46  pcktPar[0] = limitViolatingTemp;
47 }
48 
49 /*-----------------------------------------------------------------------------------------*/
51  limitViolatingTemp = temp;
52 }
Header file to define constants and types for the CORDET Demo.
void CrDaOutCmpTempViolationSetTemp(char temp)
Set the value of the limit violating temperature (an integer in the range 0 to 255).
Definition of the OutFactory component.
CrFwPckt_t CrFwOutCmpGetParStart(FwSmDesc_t smDesc)
Return the start address of the parameter area of the OutComponent.
Definition: CrFwOutCmp.c:381
Interface for creating and accessing a report or command packet.
Dummy Component Execution Procedure (CEP) for the Base Component.
Header file to define all invariant publicly available constants and types for the CORDET Framework...
void CrFwOutCmpDefSerialize(FwSmDesc_t smDesc)
Default implementation of the Serialize Operation for an OutComponent.
Definition: CrFwOutCmp.c:173
static char limitViolatingTemp
The limit violating temperature.
Definition of Base Component.
Component Initialization Procedure (CIP) for the Base Component.
Definition of the OutComponent Component of the framework.
void CrDaOutCmpTempViolationSerialize(FwSmDesc_t smDesc)
Implementation of the Serialize Operation for the report for a temperature violation.
Component Reset Procedure (CRP) for the Base Component.
P&P Software GmbH, Copyright 2012-2013, All Rights Reserved